File tree Expand file tree Collapse file tree 6 files changed +19
-30
lines changed
Expand file tree Collapse file tree 6 files changed +19
-30
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ deps-powervs: deps-common
143143deps-ignition : # # Installs/checks dependencies for generating Ignition files
144144deps-ignition :
145145 hack/ensure-jq.sh
146- hack/ensure-ct .sh
146+ hack/ensure-butane .sh
147147
148148.PHONY : deps-nutanix
149149deps-nutanix : # # Installs/checks dependencies for Nutanix builds
@@ -1155,7 +1155,7 @@ json-sort: ## Sort all JSON files alphabetically
11551155.PHONY : gen-ignition
11561156ignition_files = bootstrap-pass-auth bootstrap-cloud
11571157gen-ignition : deps-ignition # # Generates Ignition files from CLC
1158- for f in $( ignition_files) ; do (ct < packer/files/flatcar/clc/$$ f.yaml | jq ' .' > packer/files/flatcar/ignition/$$ f.json) || exit 1; done
1158+ for f in $( ignition_files) ; do (butane --pretty --strict < packer/files/flatcar/clc/$$ f.yaml | jq ' .' > packer/files/flatcar/ignition/$$ f.json) || exit 1; done
11591159
11601160# # --------------------------------------
11611161# # ISO checksum updates
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ set -o pipefail
2020
2121[[ -n ${DEBUG:- } ]] && set -o xtrace
2222
23- _version=" v0.9.3 "
23+ _version=" v0.25.1 "
2424
2525# Change directories to the parent directory of the one in which this
2626# script is located.
@@ -33,11 +33,11 @@ if command -v ct >/dev/null 2>&1; then exit 0; fi
3333mkdir -p .local/bin && cd .local/bin
3434
3535if [[ ${HOSTOS} == " linux" ]]; then
36- _binfile=" ct- ${_version} -x86_64-unknown-linux-gnu"
36+ _binfile=" butane -x86_64-unknown-linux-gnu"
3737elif [[ ${HOSTOS} == " darwin" ]]; then
38- _binfile=" ct- ${_version} -x86_64-apple-darwin"
38+ _binfile=" butane -x86_64-apple-darwin"
3939fi
40- _bin_url=" https://github.com/flatcar/container-linux-config-transpiler /releases/download/${_version} /${_binfile} "
41- curl -SsL " ${_bin_url} " -o ct
42- chmod 0755 ct
43- echo " 'ct ' has been installed to $( pwd) , make sure this directory is in your \$ PATH"
40+ _bin_url=" https://github.com/coreos/butane /releases/download/${_version} /${_binfile} "
41+ curl -SsL " ${_bin_url} " -o butane
42+ chmod 0755 butane
43+ echo " 'butane ' has been installed to $( pwd) , make sure this directory is in your \$ PATH"
Original file line number Diff line number Diff line change 22# authorize SSH keys (typically cloud providers such as AWS or Azure). On such platforms, no SSH
33# configuration needs to be done via Ignition. The actions in this file are performed before Packer
44# provisioners (e.g. Ansible) are executed.
5+ variant : flatcar
6+ version : 1.1.0
57systemd :
68 units :
79 - name : docker.service
8- enable : true
10+ enabled : true
911 # Mask update-engine and locksmithd to disable automatic updates during image creation.
1012 - name : update-engine.service
1113 mask : true
Original file line number Diff line number Diff line change 11# This file is used for initial provisioning of a Flatcar machine on platforms which use SSH
22# password authentication during the build process. The actions in this file are performed before
33# Packer provisioners (e.g. Ansible) are executed.
4+ variant : flatcar
5+ version : 1.1.0
46passwd :
57 users :
68 - name : builder
@@ -13,7 +15,7 @@ passwd:
1315systemd :
1416 units :
1517 - name : docker.service
16- enable : true
18+ enabled : true
1719 # Mask update-engine and locksmithd to disable automatic updates during image creation.
1820 - name : update-engine.service
1921 mask : true
Original file line number Diff line number Diff line change 11{
22 "ignition" : {
3- "config" : {},
4- "security" : {
5- "tls" : {}
6- },
7- "timeouts" : {},
8- "version" : " 2.3.0"
3+ "version" : " 3.4.0"
94 },
10- "networkd" : {},
11- "passwd" : {},
12- "storage" : {},
135 "systemd" : {
146 "units" : [
157 {
16- "enable " : true ,
8+ "enabled " : true ,
179 "name" : " docker.service"
1810 },
1911 {
Original file line number Diff line number Diff line change 11{
22 "ignition" : {
3- "config" : {},
4- "security" : {
5- "tls" : {}
6- },
7- "timeouts" : {},
8- "version" : " 2.3.0"
3+ "version" : " 3.4.0"
94 },
10- "networkd" : {},
115 "passwd" : {
126 "users" : [
137 {
2115 }
2216 ]
2317 },
24- "storage" : {},
2518 "systemd" : {
2619 "units" : [
2720 {
28- "enable " : true ,
21+ "enabled " : true ,
2922 "name" : " docker.service"
3023 },
3124 {
You can’t perform that action at this time.
0 commit comments