summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-07-06 17:31:01 -0400
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2012-07-06 21:35:18 +0000
commite026be5963d2ff5066dcc2636efecc62b73323a3 (patch)
tree547af4849a69768634631e4f6db9084f4a0558f6 /config
parentd6912c88515c3582977001838ba1b3451832ec0b (diff)
downloadcloud-init-git-e026be5963d2ff5066dcc2636efecc62b73323a3.tar.gz
0.7.0~bzr564-0ubuntu1 (patches unapplied)
Imported using git-ubuntu import.
Diffstat (limited to 'config')
-rw-r--r--config/cloud.cfg38
-rw-r--r--config/cloud.cfg.d/05_logging.cfg6
2 files changed, 40 insertions, 4 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
diff --git a/config/cloud.cfg.d/05_logging.cfg b/config/cloud.cfg.d/05_logging.cfg
index 2e7ac2ed..410a0650 100644
--- a/config/cloud.cfg.d/05_logging.cfg
+++ b/config/cloud.cfg.d/05_logging.cfg
@@ -1,4 +1,4 @@
-## this yaml formated config file handles setting
+## This yaml formated config file handles setting
## logger information. The values that are necessary to be set
## are seen at the bottom. The top '_log' are only used to remove
## redundency in a syslog and fallback-to-file case.
@@ -53,5 +53,9 @@ _log:
args=("/dev/log", handlers.SysLogHandler.LOG_USER)
log_cfgs:
+# These will be joined into a string that defines the configuration
- [ *log_base, *log_syslog ]
+# These will be joined into a string that defines the configuration
- [ *log_base, *log_file ]
+# A file path can also be used
+# - /etc/log.conf