diff --git a/config/samples/e2e/bases/ignition/ignition-secret.yaml b/config/samples/e2e/bases/ignition/ignition-secret.yaml new file mode 100644 index 000000000..eb53bc20a --- /dev/null +++ b/config/samples/e2e/bases/ignition/ignition-secret.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +data: + ignition.yaml: eyJpZ25pdGlvbiI6eyJ2ZXJzaW9uIjoiMy4zLjAifSwicGFzc3dkIjp7InVzZXJzIjpbeyJncm91cHMiOlsid2hlZWwiXSwiaG9tZURpciI6Ii9ob21lL3lvdXItdXNlciIsIm5hbWUiOiJ5b3VyLXVzZXIiLCJwYXNzd29yZEhhc2giOiJ5b3VyLXB3LWhhc2giLCJzaGVsbCI6Ii9iaW4vYmFzaCJ9XX0sInN0b3JhZ2UiOnsiZGlyZWN0b3JpZXMiOlt7Imdyb3VwIjp7Im5hbWUiOiJ5b3VyLXVzZXIifSwicGF0aCI6Ii9ob21lL3lvdXItdXNlci8uc3NoIiwidXNlciI6eyJuYW1lIjoieW91ci11c2VyIn0sIm1vZGUiOjQ0OH1dLCJmaWxlcyI6W3sicGF0aCI6Ii9ldGMvc3lzdGVtZC9yZXNvbHZlZC5jb25mLmQvZG5zLmNvbmYiLCJjb250ZW50cyI6eyJjb21wcmVzc2lvbiI6IiIsInNvdXJjZSI6ImRhdGE6LCU1QlJlc29sdmUlNUQlMEFETlMlM0QxLjEuMS4xJTBBIn0sIm1vZGUiOjQyMH0seyJncm91cCI6eyJuYW1lIjoieW91ci11c2VyIn0sInBhdGgiOiIvaG9tZS95b3VyLXVzZXIvLnNzaC9hdXRob3JpemVkX2tleXMiLCJ1c2VyIjp7Im5hbWUiOiJ5b3VyLXVzZXIifSwiY29udGVudHMiOnsiY29tcHJlc3Npb24iOiIiLCJzb3VyY2UiOiJkYXRhOix5b3VyLXNzaC1rZXkifSwibW9kZSI6Mzg0fSx7InBhdGgiOiIvaW5zdGFsbC1uZ2lueC5zaCIsImNvbnRlbnRzIjp7ImNvbXByZXNzaW9uIjoiIiwic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INytwR1lDdGhMTjFZMHJOV0RHcHBsUHNyOG82c0dJMW5YZGVsMjgrak1abVAyekJpeFdwNUxuTHFhS093Njd5ektJNkQzdUVlcCtEYzc1LzUxMTc0UGpoNTkvNTI5ZlFVNWovRXZ3QUFBUC8vbFFMTVdpOEVBQUE9In0sIm1vZGUiOjQzOH1dfSwic3lzdGVtZCI6eyJ1bml0cyI6W3siZW5hYmxlZCI6dHJ1ZSwibmFtZSI6InNzaC5zZXJ2aWNlIn0seyJjb250ZW50cyI6IltVbml0XVxuRGVzY3JpcHRpb249SW5zdGFsbCBuZ2lueFxuW1NlcnZpY2VdXG5UeXBlPW9uZXNob3RcblJlbWFpbkFmdGVyRXhpdD15ZXNcbkV4ZWNTdGFydD0vaW5zdGFsbC1uZ2lueC5zaFxuW0luc3RhbGxdXG5XYW50ZWRCeT1tdWx0aS11c2VyLnRhcmdldFxuIiwiZW5hYmxlZCI6dHJ1ZSwibmFtZSI6Imluc3RhbGwtbmdpbnguc2VydmljZSJ9XX19Cg== +kind: Secret +metadata: + creationTimestamp: null + name: ignition diff --git a/config/samples/e2e/bases/ignition/ignition.yaml b/config/samples/e2e/bases/ignition/ignition.yaml new file mode 100644 index 000000000..d57218764 --- /dev/null +++ b/config/samples/e2e/bases/ignition/ignition.yaml @@ -0,0 +1,57 @@ + +variant: fcos +version: 1.4.0 +passwd: + users: + - name: your-user + home_dir: /home/your-user + groups: + - wheel + shell: /bin/bash + password_hash: your-pw-hash +storage: + directories: + - path: /home/your-user/.ssh + mode: 0700 + user: + name: your-user + group: + name: your-user + files: + - path: /etc/systemd/resolved.conf.d/dns.conf + mode: 0644 + contents: + inline: | + [Resolve] + DNS=1.1.1.1 + - path: /home/your-user/.ssh/authorized_keys + mode: 0600 + user: + name: your-user + group: + name: your-user + contents: + inline: your-ssh-key + - path: /install-nginx.sh + mode: 0777 + contents: + local: install-nginx.sh + - path: /var/www/html/index.html + mode: 0666 + contents: + local: index.html +systemd: + units: + - name: ssh.service + enabled: true + - name: install-nginx.service + enabled: true + contents: | + [Unit] + Description=Install nginx + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/install-nginx.sh + [Install] + WantedBy=multi-user.target diff --git a/config/samples/e2e/bases/ignition/index.html b/config/samples/e2e/bases/ignition/index.html new file mode 100644 index 000000000..d81182c71 --- /dev/null +++ b/config/samples/e2e/bases/ignition/index.html @@ -0,0 +1,31 @@ + +