11Capify Cloud
22====================================================
33
4- capify-cloud is used to generate capistrano namespaces using ec2 tags and a hack with Brightbox groups (in development).
4+ capify-cloud is used to generate capistrano namespaces using ec2 tags and a hack with Brightbox server-groups to emulate tags.
5+ Tags are simulated on Brightbox using a server_group containing a ":" (e.g. Roles: web )
56
6- eg: If you have three servers on amazon's ec2.
7+ eg: If you have 2 servers on amazon's ec2 and a DB server at Brightbox
78
89 server-1 Tag: Roles => "web", Options => "cron,resque, db"
9- server-2 Tag : Roles => "db"
10+ server-2 Server-Group : Roles:db
1011 server-3 Tag: Roles => "web,db, app"
1112
1213Installing
@@ -48,15 +49,15 @@ Will generate
4849
4950``` ruby
5051task :server - 2 do
51- role :db , {server- 2 public dns fetched from Amazon }
52+ role :db , {server- 2 public or private IP , fetched from Brightbox }
5253end
5354
5455task :server - 3 do
5556 role :db , {server- 3 public dns fetched from Amazon }
5657end
5758
5859task :db do
59- role :db , {server- 2 public dns fetched from Amazon }
60+ role :db , {server- 2 public or private IP , fetched from Brightbox }
6061 role :db , {server- 3 public dns fetched from Amazon }
6162end
6263```
@@ -152,21 +153,30 @@ cloud_roles :name=>:app, :options=>{ :default => true }
152153
153154would be the equivalent of 'cap app web deploy'
154155
155- Ec2 config
156+ Cloud config
156157====================================================
157158
158159This gem requires 'config/cloud.yml' in your project.
159160The yml file needs to look something like this:
160-
161+
161162``` ruby
162- :aws_access_key_id : " YOUR ACCESS KEY"
163- :aws_secret_access_key : " YOUR SECRET"
164- :aws_params :
165- :region : ' eu-west-1'
166- :load_balanced : true
167- :project_tag : " YOUR APP NAME"
163+ :cloud_providers : [' AWS' , ' Brightbox' ]
164+
165+ :AWS :
166+ :aws_access_key_id : " YOUR ACCESS KEY"
167+ :aws_secret_access_key : " YOUR SECRET"
168+ :params :
169+ :region : ' eu-west-1'
170+ :load_balanced : true
171+ :project_tag : " YOUR APP NAME"
172+
173+ :Brightbox :
174+ :brightbox_client_id : " YOUR CLIENT ID"
175+ :brightbox_secret : " YOUR SECRET"
168176```
169- aws_access_key_id, aws_secret_access_key, and region are required. Other settings are optional.
177+ aws_access_key_id, aws_secret_access_key, and region are required for AWS. Other settings are optional.
178+ brightbox_client_id and brightbox_secret: are required for Brightbox.
179+ If you do not specify a cloud_provider, AWS is assumed.
170180
171181If : load_balanced is set to true, the gem uses pre and post-deploy
172182hooks to deregister the instance, reregister it, and validate its
@@ -179,8 +189,8 @@ running against those instances with a "Project" tag set to the value
179189
180190## Development
181191
182- Source hosted at [ GitHub] ( http://github.com/forward /capify-cloud ) .
183- Report Issues/Feature requests on [ GitHub Issues] ( http://github.com/forward /capify-cloud/issues ) .
192+ Source hosted at [ GitHub] ( http://github.com/ncantor /capify-cloud ) .
193+ Report Issues/Feature requests on [ GitHub Issues] ( http://github.com/ncantor /capify-cloud/issues ) .
184194
185195### Note on Patches/Pull Requests
186196
@@ -194,4 +204,4 @@ Report Issues/Feature requests on [GitHub Issues](http://github.com/forward/capi
194204
195205## Copyright
196206
197- Copyright (c) 2012 Forward. See [ LICENSE] ( https://github.com/forward /capify-cloud/blob/master/LICENSE ) for details.
207+ Original version: Copyright (c) 2012 Forward. See [ LICENSE] ( https://github.com/ncantor /capify-cloud/blob/master/LICENSE ) for details.
0 commit comments