Using Ignition after first boot?

597 views
Skip to first unread message

Eric Anderson

unread,
Oct 24, 2016, 3:35:05 PM10/24/16
to CoreOS User
From what I am reading in the docs, it appears that ignition is only executed on first boot. For further node configuration after first boot, are we to use Cloud-config or am I not understanding how to use ignition after that first boot? If so, how do you use ignition after the first boot?

david....@coreos.com

unread,
Oct 24, 2016, 3:42:24 PM10/24/16
to CoreOS User
Hi,

Ignition is usually used to write your desired configuration to disk, so there is no need to run it on later boots.  If you need to perform some operation with Ignition again, you can add coreos.first_boot=1 to the kernel boot command-line to make it run again.

Thanks.

David

Alex Crawford

unread,
Oct 24, 2016, 3:53:35 PM10/24/16
to Eric Anderson, CoreOS User
Ignition is not designed to be used for configuration management. For
that, you should use traditional CM tools (e.g. Ansible, Chef, Puppet).

-Alex
signature.asc

Brandon Philips

unread,
Oct 24, 2016, 4:21:21 PM10/24/16
to Alex Crawford, Eric Anderson, CoreOS User
Or, commonly, what is happening with Kubernetes clusters, use DaemonSets for things that were usually deployed with Configuration management: logging daemons, network daemons, monitoring daemons, etc.

Thank You,

Brandon 

Eric Anderson

unread,
Oct 25, 2016, 2:32:21 PM10/25/16
to CoreOS User, alex.c...@coreos.com, ericla...@gmail.com
Thanks for the explanation and clarification. This makes a lot of sense. I would like to think of the CoreOS nodes as immutable but we have come across instances where we needed to update SSH keys for the core user or add/remove staff accounts. Beyond those tasks, I can not imagine scenarios where we are needing to perform config management after a node has been put into production. 

Alex Crawford

unread,
Oct 25, 2016, 2:36:27 PM10/25/16
to Eric Anderson, CoreOS User
On 10/25, Eric Anderson wrote:
> I would like to think of the CoreOS nodes as immutable but we have come
> across instances where we needed to update SSH keys for the core user or
> add/remove staff accounts.

Bear in mind that coreos-cloudinit will only create accounts, so it
cannot be used for this scenario. One of the many reasons I'm looking
forward to its retirement.

-Alex
signature.asc
Reply all
Reply to author
Forward
0 new messages