Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

RFE: Allow ignition_file to append to a file #39

Open
nhi-vanye opened this issue Jul 10, 2018 · 2 comments
Open

RFE: Allow ignition_file to append to a file #39

nhi-vanye opened this issue Jul 10, 2018 · 2 comments

Comments

@nhi-vanye
Copy link

It would be nice to allow appending content to files rather than over-writing the existing content

The use case is to add environment variables to /etc/profile.env to set the HTTP_PROXY variable so the newly deployed OS can access the internet.

@IvanovOleg
Copy link

Ignition works only during the first VM startup. That's why even you change the content of the file and suppress the recreation of the VM (due to the custom data change) you will never get an expected result.

@captn3m0
Copy link

The current ignition version (since 2.2.0) supports appending to files:

append (boolean): whether to append to the specified file. Creates a new file if nothing exists at the path. Cannot be set if overwrite is set to true.

Spec: https://coreos.com/ignition/docs/latest/configuration-v2_3.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants