-
Notifications
You must be signed in to change notification settings - Fork 270
Open
Labels
Description
I noticed at
https://github.com/coreos/fcct/blob/master/docs/configuration-v1_1.md
that systemd -> contents does not have variant for including the contents from a local file. For me it would have been convenient to have that feature.
Why not generalize the data input, so that strings and bytearrays always can be included from URLs, local files or inline?
Something like two new "datatypes":
general_text_data and general_binary_data
Just a sketch:
- general_text_data (object): the config that will replace the current.
- source (string): the URL of the config. Supported schemes are
http,https,s3,tftp, and [data][rfc2397]. Note: When usinghttp, it is advisable to use the verification option to ensure the contents haven't been modified. Mutually exclusive withinlineandlocal. - inline (string): the contents of the config. Mutually exclusive with
sourceandlocal. - local (string): a local path to the contents of the config, relative to the directory specified by the
--files-dircommand-line argument. Mutually exclusive withsourceandinline. - http_headers (list of objects): a list of HTTP headers to be added to the request. Available for
httpandhttpssource schemes only.- name (string): the header name.
- value (string): the header contents.
- verification (object): options related to the verification of the config.
- hash (string): the hash of the config, in the form
<type>-<value>where type is eithersha512orsha256.
- hash (string): the hash of the config, in the form
- source (string): the URL of the config. Supported schemes are
If it would be possible to reference the string contents of one of
passwd -> users -> ssh_authorized_keys
with a general_text_data, you could start referencing your public ssh key from Github, as they are downloadable like this
wget https://github.com/eriksjolund.keys