You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #141 from cloudymax/cloudbase-support
- Adds support for cloudbase-init syntax
- fixes issue where wireguard configs supplied as secrets would not render
- we now just grab the whole users[] array to avoid having to define every single possible option
- fix default wireguard type declaration
- remove some superfluous comments
- add more reasonable default network data example
Breaking Changes:
- `ssh_import_id: []` and `ssh_authorized_keys: []` removed from default user values, should be commented our or removed when not in-use to avoid a templating error
- new value `cloudbase: true/false` required
| boot_cmd | list |`[]`| Run arbitrary commands early in the boot process See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#bootcmd|
22
22
| ca_certs | list |`[]`| Add CA certificates See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#ca-certificates|
23
+
| cloudbase | bool |`false`||
23
24
| debug | bool |`false`| when enabled job sleeps to allow user to exec into the container |
| network.config | string |`"disabled"`| disable cloud-init’s network configuration capability and rely on other methods such as embedded configuration or other customisations. |
| network.config | string |`"enabled"`| disable cloud-init’s network configuration capability and rely on other methods such as embedded configuration or other customisations. |
| package_reboot_if_required | bool |`false`| Update, upgrade, and install package See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#package-update-upgrade-install|
40
41
| package_update | bool |`true`||
@@ -45,11 +46,9 @@ A Helm chart that generates cloud-init config files
45
46
| secret_name | string |`"my-userdata"`| secret in which to save the user-data file, must be unique within namespace |
46
47
| serviceAccount | object |`{"create":true,"existingServiceAccountName":"some-other-sa","name":"my-service-account"}`| Choose weather to create a service-account or not. Once a SA has been created you should set this to false on subsequent runs, or use a uniqne name per vm. |
47
48
| swap | object |`{"enabled":false,"filename":"/swapfile","maxsize":"1G","size":"1G"}`| creates a swap file using human-readable values. |
48
-
| users | list |`[{"groups":"users, admin, docker, sudo, kvm","lock_passwd":false,"name":"$USERNAME","password":"random","shell":"/bin/bash","ssh_authorized_keys":[],"ssh_import_id":[],"sudo":"ALL=(ALL) NOPASSWD:ALL"}]`| user configuration options See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#users-and-groups do NOT use 'admin' as username - it conflicts with multiele cloud-images |
49
-
| users[0].password | string |`"random"`| When set to 'random' a password will be generated for the user. |
50
-
| users[0].ssh_authorized_keys | list |`[]`| provider user ssh pub key as plaintext |
51
-
| users[0].ssh_import_id | list |`[]`| import user ssh public keys from github, gitlab, or launchpad See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#ssh|
52
-
| wireguard | list |`[]`| add wireguard configuration from existing secret or as plain-text See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#wireguard|
49
+
| users | list |`[{"groups":"users, admin, docker, sudo, kvm","lock_passwd":false,"name":"$USERNAME","passwd":"random","shell":"/bin/bash","sudo":"ALL=(ALL) NOPASSWD:ALL"}]`| user configuration options See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#users-and-groups You are advised NOT to use 'admin' as username for linux systems because it conflicts with multiple cloud-images default user configurations When using with cloudbase-init syntax the use of "Admin" as a username is fine. |
50
+
| users[0].passwd | string |`"random"`| When set to 'random' a password will be generated for the user. When empty "" we will look for an env-var named <$USERNAME>_PASSWORD Passing plain-text passwords is not supported. |
51
+
| wireguard | object |`{"interfaces":[]}`| add wireguard configuration from existing secret or as plain-text See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#wireguard|
53
52
| write_files | list |`[]`| Write arbitrary files to disk. Files my be provided as plain-text or downloaded from a url See https://cloudinit.readthedocs.io/en/latest/reference/modules.html#write-files|
0 commit comments