|
| 1 | +# The top level settings are used as module |
| 2 | +# and system configuration. |
| 3 | + |
| 4 | +# A set of users which may be applied and/or used by various modules |
| 5 | +# when a 'default' entry is found it will reference the 'default_user' |
| 6 | +# from the distro configuration specified below |
| 7 | +# users: |
| 8 | +# - default |
| 9 | + |
| 10 | +# If this is set, 'root' will not be able to ssh in and they |
| 11 | +# will get a message to login instead as the above $user (debian) |
| 12 | +disable_root: true |
| 13 | +apt_preserve_sources_list: true |
| 14 | + |
| 15 | +# This will cause the set+update hostname module to not operate (if true) |
| 16 | +preserve_hostname: false |
| 17 | + |
| 18 | +# Example datasource config |
| 19 | +# datasource: |
| 20 | +# Ec2: |
| 21 | +# metadata_urls: [ 'blah.com' ] |
| 22 | +# timeout: 5 # (defaults to 50 seconds) |
| 23 | +# max_wait: 10 # (defaults to 120 seconds) |
| 24 | +datasource_list: [ NoCloud ] |
| 25 | + |
| 26 | +# The modules that run in the 'init' stage |
| 27 | +cloud_init_modules: |
| 28 | + - migrator |
| 29 | + - seed_random |
| 30 | + - bootcmd |
| 31 | + - write-files |
| 32 | + - growpart |
| 33 | + - resizefs |
| 34 | + - disk_setup |
| 35 | + - mounts |
| 36 | + - set_hostname |
| 37 | + - update_hostname |
| 38 | + - update_etc_hosts |
| 39 | + - ca-certs |
| 40 | + - rsyslog |
| 41 | + - users-groups |
| 42 | + - ssh |
| 43 | + |
| 44 | +# The modules that run in the 'config' stage |
| 45 | +cloud_config_modules: |
| 46 | +# Emit the cloud config ready event |
| 47 | +# this can be used by upstart jobs for 'start on cloud-config'. |
| 48 | + - emit_upstart |
| 49 | + - ssh-import-id |
| 50 | + - locale |
| 51 | + - set-passwords |
| 52 | + - grub-dpkg |
| 53 | + - apt-pipelining |
| 54 | + - apt-configure |
| 55 | + - ntp |
| 56 | + - timezone |
| 57 | + - disable-ec2-metadata |
| 58 | + - runcmd |
| 59 | + - byobu |
| 60 | + |
| 61 | +# The modules that run in the 'final' stage |
| 62 | +cloud_final_modules: |
| 63 | + - package-update-upgrade-install |
| 64 | + - fan |
| 65 | + - puppet |
| 66 | + - chef |
| 67 | + - salt-minion |
| 68 | + - mcollective |
| 69 | + - rightscale_userdata |
| 70 | + - scripts-vendor |
| 71 | + - scripts-per-once |
| 72 | + - scripts-per-boot |
| 73 | + - scripts-per-instance |
| 74 | + - scripts-user |
| 75 | + - ssh-authkey-fingerprints |
| 76 | + - keys-to-console |
| 77 | + - phone-home |
| 78 | + - final-message |
| 79 | + - power-state-change |
| 80 | + |
| 81 | +# System and/or distro specific settings |
| 82 | +# (not accessible to handlers/transforms) |
| 83 | +system_info: |
| 84 | + # This will affect which distro class gets used |
| 85 | + distro: debian |
| 86 | + # Default user name + that default users groups (if added/used) |
| 87 | + default_user: |
| 88 | + name: debian |
| 89 | + lock_passwd: True |
| 90 | + gecos: Debian |
| 91 | + groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video] |
| 92 | + sudo: ["ALL=(ALL) NOPASSWD:ALL"] |
| 93 | + shell: /bin/bash |
| 94 | + # Other config here will be given to the distro class and/or path classes |
| 95 | + paths: |
| 96 | + cloud_dir: /var/lib/cloud/ |
| 97 | + templates_dir: /etc/cloud/templates/ |
| 98 | + upstart_dir: /etc/init/ |
| 99 | + ssh_svcname: ssh |
0 commit comments