Skip to content

Commit

Permalink
Update autoinstall format to
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Jun 14, 2024
1 parent abe10d0 commit ee4c9fe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/validate_autoinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
pip install check-jsonschema yamllint yq
- name: Lint attended autoinstall.yaml
run: yamllint iso/preseeds/ubuntu/autoinstall.yaml
run: yamllint -c .yamllint iso/preseeds/ubuntu/autoinstall.yaml

- name: Lint unattended autoinstall.yaml
run: yamllint iso/preseeds/ubuntu/autoinstall_unattended.yaml
run: yamllint -c .yamllint iso/preseeds/ubuntu/autoinstall_unattended.yaml

- name: Download JSON schema
run: curl -o schema.json https://raw.githubusercontent.com/canonical/subiquity/main/autoinstall-schema.json
Expand Down
6 changes: 6 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# .yamllint
extends: default

rules:
line-length:
max: 150
5 changes: 3 additions & 2 deletions iso/preseeds/ubuntu/autoinstall.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#cloud-config
# cloud-config
---
autoinstall:
version: 1
interactive-sections:
Expand Down Expand Up @@ -26,5 +27,5 @@ autoinstall:
- "cp -a /cdrom/dappnode/scripts/rc.local /target/etc/rc.local"
- "chmod +x /target/usr/src/dappnode/scripts/dappnode_install_pre.sh"
- "touch /target/usr/src/dappnode/.firstboot"
- "cp -ar /etc/netplan/* /target/etc/netplan/" # Necessary for prerequisites
- "cp -ar /etc/netplan/* /target/etc/netplan/" # Necessary for prerequisites
- "curtin in-target --target=/target -- /usr/src/dappnode/scripts/dappnode_install_pre.sh UPDATE"
8 changes: 5 additions & 3 deletions iso/preseeds/ubuntu/autoinstall_unattended.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#cloud-config
# cloud-config
---
autoinstall:
version: 1

Expand Down Expand Up @@ -28,6 +29,7 @@ autoinstall:
- intel-microcode
- iucode-tool
- iptables

timezone: UTC

late-commands:
Expand All @@ -37,6 +39,6 @@ autoinstall:
- "cp -a /cdrom/dappnode/scripts/rc.local /target/etc/rc.local"
- "chmod +x /target/usr/src/dappnode/scripts/dappnode_install_pre.sh"
- "touch /target/usr/src/dappnode/.firstboot"
- "cp -ar /etc/netplan/* /target/etc/netplan/" # Necessary for prerequisites
- "cp -ar /etc/netplan/* /target/etc/netplan/" # Necessary for prerequisites
- "curtin in-target --target=/target -- /usr/src/dappnode/scripts/dappnode_install_pre.sh UPDATE"
# TODO: Handle /etc/network/interfaces and /etc/network/devhotplug
# TODO: Handle /etc/network/interfaces and /etc/network/devhotplug

0 comments on commit ee4c9fe

Please sign in to comment.