From a2e75f6d01688026b7ccfe5d71a11fff6205a287 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 16 Jun 2012 20:44:58 -0700 Subject: 1. Fix the welcome_msg name to welcome_message (oops) 2. Adjust that name in the cloud.cfg 3. Add in the ability to specify a dictionary that is the transform instead of a list which makes the config look nicer when users have custom transforms with arguments and such. --- config/cloud.cfg | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/cloud.cfg b/config/cloud.cfg index 147e0500..0e431962 100644 --- a/config/cloud.cfg +++ b/config/cloud.cfg @@ -18,9 +18,13 @@ preserve_hostname: false # timeout: 5 # (defaults to 50 seconds) # max_wait: 10 # (defaults to 120 seconds) -# The transform modules that run in the 'init' stage +# The transform that run in the 'init' stage cloud_init_modules: - - welcome_msg +# This is the hash way of specifying a transform + - name: welcome_message +# This argument list will get passed to the transform when activated + args: + - init - bootcmd - resizefs - set_hostname @@ -30,7 +34,7 @@ cloud_init_modules: - rsyslog - ssh - # The transform modules that run in the 'config' stage + # The transforms that run in the 'config' stage cloud_config_modules: - mounts - ssh-import-id @@ -49,7 +53,7 @@ cloud_config_modules: - runcmd - byobu -# The transform modules that run in the 'final' stage +# The transforms that run in the 'final' stage cloud_final_modules: - rightscale_userdata - scripts-per-once -- cgit v1.2.3