diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/cloud.cfg | 38 | ||||
-rw-r--r-- | config/cloud.cfg.d/05_logging.cfg | 6 |
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 |