| # The top level settings are used as module |
| # and system configuration. |
| |
| # A set of users which may be applied and/or used by various modules |
| # when a 'default' entry is found it will reference the 'default_user' |
| # from the distro configuration specified below |
| |
| # users: |
| # - default |
| |
| # If this is set, 'root' will not be able to ssh in and they |
| # will get a message to login instead as the above $user (ubuntu) |
| # TODO(qzheng): Consider to set it to true for released versions. |
| disable_root: false |
| |
| # Use the GCE Cloud Config for Cloud-init |
| datasource_list: [ GCE, NoCloud, None ] |
| |
| # This will cause the set+update hostname module to not operate (if true) |
| preserve_hostname: true |
| |
| # Example datasource config |
| # datasource: |
| # Ec2: |
| # metadata_urls: [ 'blah.com' ] |
| # timeout: 5 # (defaults to 50 seconds) |
| # max_wait: 10 # (defaults to 120 seconds) |
| |
| # Lakitu specific: Lakitu has a "stateless" cloud-init, so the following modules |
| # are all executed upon reboot. Therefore, the concept of module run frequency |
| # in lakitu is different from Ubuntu. There are only two run frequencies "always" |
| # and "once" in lakitu. If we rerun cloud-init without rebooting the instance, |
| # modules with "always" frequency will be rerun, while modules with "once" |
| # frequency will not. |
| |
| |
| # The modules that run in the 'init' stage |
| cloud_init_modules: |
| - [bootcmd, once] |
| - [update_etc_hosts, always] |
| - [users-groups, once] |
| - [write-files, always] |
| - [rsyslog, once] |
| |
| # The modules that run in the 'config' stage |
| cloud_config_modules: |
| # Emit the cloud config ready event |
| # this can be used by upstart jobs for 'start on cloud-config'. |
| - [emit_upstart, always] |
| - [mounts, once] |
| - [ssh-import-id, once] |
| - [timezone, once] |
| - [disable-ec2-metadata, always] |
| - [runcmd, always] |
| |
| # The modules that run in the 'final' stage |
| cloud_final_modules: |
| - [rightscale_userdata, once] |
| - [scripts-vendor, once] |
| - [scripts-per-once, once] |
| - [scripts-per-boot, once] |
| - [scripts-per-instance, once] |
| - [scripts-user, always] |
| - [ssh-authkey-fingerprints, once] |
| - [keys-to-console, once] |
| - [phone-home, once] |
| - [final-message, always] |
| |
| # System and/or distro specific settings |
| # (not accessible to handlers/transforms) |
| system_info: |
| paths: |
| cloud_dir: /var/lib/cloud/ |
| templates_dir: /etc/cloud/templates/ |
| upstart_dir: /etc/init/ |