Skip to content

Instantly share code, notes, and snippets.

@rshsmi
Last active December 24, 2018 15:10
Show Gist options
  • Save rshsmi/13e6dbf621006feee6698093278a25ad to your computer and use it in GitHub Desktop.
Save rshsmi/13e6dbf621006feee6698093278a25ad to your computer and use it in GitHub Desktop.
Mutiple run of Ignition
# Upload an WMware Image to the Datastore, Boot up the image:
at boot 'e'
coreos.autologin=tty1
set user/pass
# Set password
$ sudo passwd core
# To update if needed
$ update_engine_client -check_for_update
# Manually add enter kernel parameter to grub for ifgnition multi-run
$ cd /usr/share/oem
$ vim grub.cfg
# CoreOS GRUB settings
set oem_id="vmware"
set linux_append="$linux_append coreos.first_boot=1"
# A sample ignition file
$ vim config.ign
{
"ignition": { "version": "2.2.0" },
"storage": {
"files": [{
"filesystem": "root",
"path": "/etc/hostname",
"mode": 420,
"contents": { "source": "data:,hostname-test1" }
}]
}
}
$reboot
# TODO
(The template is connecting to network and is sshachable (DHCP is non-existence))
packer can clone the template to do the modofication based on what suggested in L12-32 and create custom coreos.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment