coreos configuration file fails to transpile with ct. Cryptic error message

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to make the ignition file for a coreos vm, but ct is complaining when I try to transpile the yaml to json. The conf file that I'm trying to transpile is as such



networkd:
units:
- name: 00-eth0.network
contents: |
[Match]
enp0s3

[Network]
Address=172.17.8.248/28
Gateway=172.17.8.1
DNS=1.1.1.1


but when I run ct I get



$ ct < coreos.conf > ignition.json
error at line 3, column 7
invalid unit content: unexpected newline encountered while parsing option name


Column 7 would be the 'n' in name. What's going on here?









share







New contributor




Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I'm trying to make the ignition file for a coreos vm, but ct is complaining when I try to transpile the yaml to json. The conf file that I'm trying to transpile is as such



    networkd:
    units:
    - name: 00-eth0.network
    contents: |
    [Match]
    enp0s3

    [Network]
    Address=172.17.8.248/28
    Gateway=172.17.8.1
    DNS=1.1.1.1


    but when I run ct I get



    $ ct < coreos.conf > ignition.json
    error at line 3, column 7
    invalid unit content: unexpected newline encountered while parsing option name


    Column 7 would be the 'n' in name. What's going on here?









    share







    New contributor




    Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to make the ignition file for a coreos vm, but ct is complaining when I try to transpile the yaml to json. The conf file that I'm trying to transpile is as such



      networkd:
      units:
      - name: 00-eth0.network
      contents: |
      [Match]
      enp0s3

      [Network]
      Address=172.17.8.248/28
      Gateway=172.17.8.1
      DNS=1.1.1.1


      but when I run ct I get



      $ ct < coreos.conf > ignition.json
      error at line 3, column 7
      invalid unit content: unexpected newline encountered while parsing option name


      Column 7 would be the 'n' in name. What's going on here?









      share







      New contributor




      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I'm trying to make the ignition file for a coreos vm, but ct is complaining when I try to transpile the yaml to json. The conf file that I'm trying to transpile is as such



      networkd:
      units:
      - name: 00-eth0.network
      contents: |
      [Match]
      enp0s3

      [Network]
      Address=172.17.8.248/28
      Gateway=172.17.8.1
      DNS=1.1.1.1


      but when I run ct I get



      $ ct < coreos.conf > ignition.json
      error at line 3, column 7
      invalid unit content: unexpected newline encountered while parsing option name


      Column 7 would be the 'n' in name. What's going on here?







      systemd-networkd coreos





      share







      New contributor




      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      Elliot

      1184




      1184




      New contributor




      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Elliot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Elliot is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477797%2fcoreos-configuration-file-fails-to-transpile-with-ct-cryptic-error-message%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Elliot is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Elliot is a new contributor. Be nice, and check out our Code of Conduct.












          Elliot is a new contributor. Be nice, and check out our Code of Conduct.











          Elliot is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477797%2fcoreos-configuration-file-fails-to-transpile-with-ct-cryptic-error-message%23new-answer', 'question_page');

          );

          Post as a guest