summaryrefslogtreecommitdiff
path: root/config/cloud.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/cloud.cfg')
-rw-r--r--config/cloud.cfg38
1 files changed, 35 insertions, 3 deletions
diff --git a/config/cloud.cfg b/config/cloud.cfg
index 3688f88d..5dae4047 100644
--- a/config/cloud.cfg
+++ b/config/cloud.cfg
@@ -1,8 +1,24 @@
+# The top level settings are used as module
+# and system configuration.
+
+# This user will have its password adjusted
user: ubuntu
-disable_root: 1
-preserve_hostname: False
-# datasource_list: ["NoCloud", "ConfigDrive", "OVF", "MAAS", "Ec2", "CloudStack"]
+# 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)
+disable_root: true
+
+# This will cause the set+update hostname module to not operate (if true)
+preserve_hostname: false
+
+# Example datasource config
+# datasource:
+# Ec2:
+# metadata_urls: [ 'blah.com' ]
+# timeout: 5 # (defaults to 50 seconds)
+# max_wait: 10 # (defaults to 120 seconds)
+
+# The modules that run in the 'init' stage
cloud_init_modules:
- bootcmd
- resizefs
@@ -13,6 +29,7 @@ cloud_init_modules:
- rsyslog
- ssh
+# The modules that run in the 'config' stage
cloud_config_modules:
- mounts
- ssh-import-id
@@ -31,6 +48,7 @@ cloud_config_modules:
- runcmd
- byobu
+# The modules that run in the 'final' stage
cloud_final_modules:
- rightscale_userdata
- scripts-per-once
@@ -40,3 +58,17 @@ cloud_final_modules:
- keys-to-console
- phone-home
- final-message
+
+# System and/or distro specific settings
+# (not accessible to handlers/transforms)
+system_info:
+ # This will affect which distro class gets used
+ distro: ubuntu
+ # Other config here will be given to the distro class and/or path classes
+ paths:
+ cloud_dir: /var/lib/cloud/
+ templates_dir: /etc/cloud/templates/
+ upstart_dir: /etc/init/
+ package_mirror: http://archive.ubuntu.com/ubuntu
+ availability_zone_template: http://%(zone)s.ec2.archive.ubuntu.com/ubuntu/
+ ssh_svcname: ssh