butane icon indicating copy to clipboard operation
butane copied to clipboard

Add local file embedding for SSH keys, systemd units and dropins

Open travier opened this issue 4 years ago • 1 comments

With https://github.com/coreos/fcct/pull/99, we can use the following FCC to embed files from a directory in a config:

storage:
  files:
    contents:
      local: foo.conf

I would like to use a similar mechanism to embed:

  • SSH Keys
  • systemd units
  • systemd dropins

travier avatar Dec 21 '20 15:12 travier

Not sure if this came up before, though some YAML parsers allow support for custom tags like !include: myfile which would solve this at a more generic level. (Edit: looking at https://github.com/go-yaml/yaml/pull/433, it seems like this is supported.)

jlebon avatar Dec 21 '20 21:12 jlebon