Changes between Version 60 and Version 61 of CloudPlugin
- Timestamp:
- Aug 1, 2012, 1:45:24 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CloudPlugin
v60 v61 26 26 1. Install the plugin (after downloading and unzipping): 27 27 {{{ 28 #!sh 28 29 cd cloudplugin/0.12 29 30 sudo python setup.py install … … 34 35 2. Enable the plugin in {{{trac.ini}}}: 35 36 {{{ 37 #!ini 36 38 [components] 37 39 cloud.* = enabled … … 42 44 3. Configure the main {{{trac.ini}}} section. A minimal configuration would look like this: 43 45 {{{ 46 #!ini 44 47 [cloud] 45 48 aws_key = <aws-access-key> … … 54 57 4. Optional {{{trac.ini}}} configurations (details below). 55 58 {{{ 59 #!ini 56 60 [cloud] 57 61 rds_username = <rds-master-username> … … 73 77 You can optionally configure notifications to jabber/xmpp for commands and environments via the {{{jabber_*}}} options. To enable for only deployments, for example, set a {{{notify_jabber}}} param in the {{{[cloud.environments]}}} section as follows: 74 78 {{{ 79 #!ini 75 80 [cloud.environments] 76 81 notify_jabber = deploy … … 79 84 If you wanted to include audits, simply set the value to {{{deploy, audit}}} instead. To enable jabber notifications for other commands, list which ones to enable in the {{{[cloud.commands]}}} section: 80 85 {{{ 86 #!ini 81 87 [cloud.commands] 82 88 notify_jabber = apacherestart, apachestop, apachestart … … 107 113 108 114 {{{ 115 #!ini 109 116 [cloud.instance] 110 117 ... … … 115 122 ==== Labels and such ==== 116 123 {{{ 124 #!ini 117 125 [cloud.instance] 118 126 title = EC2 Instances … … 127 135 The fields shown in each view can be configured. Fields are first defined much like Trac custom fields but prefixed with {{{field.}}}: 128 136 {{{ 137 #!ini 129 138 [cloud.instance] 130 139 .. … … 151 160 You may prefer to define a select (or multiselect) field's options by using a chef search index (e.g., the built-in {{{node}}} or {{{role}}}, or a [http://wiki.opscode.com/display/chef/Data+Bags data bag]) instead of listing them in the {{{trac.ini}}} file. For example, a field defined like this: 152 161 {{{ 162 #!ini 153 163 [cloud.instance] 154 164 .. … … 178 188 In addition to field definitions, you can define which fields should be viewed in which views, their order, and whether or not a field should be read-only in that view. Example: 179 189 {{{ 190 #!ini 180 191 [cloud.instance] 181 192 .. … … 208 219 To help manage many ec2 instances, you can define commands to be run on them in the "Commands" section. The command resource type is configured similarly to ec2 and rds instances. Their data is maintained in a chef data bag. An example command may look this this: 209 220 {{{ 221 #!sh 210 222 /usr/bin/ssh -i %(keypair_pem)s root@%(host)s "service apache2 restart" 211 223 }}}