mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 22:19:33 +01:00
4a469513dd
* Requires poseidon v0.11+ and Flatcar Linux 3185.0.0+ (action required) * Previously, Flatcar Linux configs have been parsed as Container Linux Configs to Ignition v2.2.0 specs by poseidon/ct * Flatcar Linux starting in 3185.0.0 now supports Ignition v3.x specs (which are rendered from Butane Configs, like Fedora CoreOS) * poseidon/ct v0.11.0 adds support for the flatcar Butane Config variant so that Flatcar Linux can use Ignition v3.x Rel: * [Flatcar Support](https://flatcar-linux.org/docs/latest/provisioning/ignition/specification/#ignition-v3) * [poseidon/ct support](https://github.com/poseidon/terraform-provider-ct/pull/131)
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
variant: flatcar
|
|
version: 1.0.0
|
|
systemd:
|
|
units:
|
|
- name: installer.service
|
|
enabled: true
|
|
contents: |
|
|
[Unit]
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/opt/installer
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
# Avoid using the standard SSH port so terraform apply cannot SSH until
|
|
# post-install. But admins may SSH to debug disk install problems.
|
|
# After install, sshd will use port 22 and users/terraform can connect.
|
|
- name: sshd.socket
|
|
dropins:
|
|
- name: 10-sshd-port.conf
|
|
contents: |
|
|
[Socket]
|
|
ListenStream=
|
|
ListenStream=2222
|
|
storage:
|
|
files:
|
|
- path: /opt/installer
|
|
mode: 0500
|
|
contents:
|
|
inline: |
|
|
#!/bin/bash -ex
|
|
curl --retry 10 "${ignition_endpoint}?mac=${mac}&os=installed" -o ignition.json
|
|
flatcar-install \
|
|
-d ${install_disk} \
|
|
-C ${os_channel} \
|
|
-V ${os_version} \
|
|
${baseurl_flag} \
|
|
-i ignition.json
|
|
udevadm settle
|
|
systemctl reboot
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
- "${ssh_authorized_key}"
|