Created
March 31, 2010 14:05
-
-
Save sud0n1m/350348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudonim:common/ $ cap rubber:create_staging [18:15:06] | |
triggering load callbacks | |
* executing `rubber:init' | |
** Auto role: web => production.foo.com, {:platform=>"linux"} | |
** Auto role: haproxy => production.foo.com, {:platform=>"linux"} | |
** Auto role: app => production.foo.com, {:platform=>"linux"} | |
** Auto role: passenger => production.foo.com, {:platform=>"linux"} | |
** Auto role: apache => production.foo.com, {:platform=>"linux"} | |
** Auto role: db => production.foo.com, {:platform=>"linux", :primary=>true} | |
** Auto role: mysql_master => production.foo.com, {:platform=>"linux"} | |
** Auto role: app => web01.foo.com, {:platform=>"linux"} | |
** Auto role: passenger => web01.foo.com, {:platform=>"linux"} | |
** Auto role: apache => web01.foo.com, {:platform=>"linux"} | |
* executing `rubber:create_staging' | |
The production environment already has instances, Are you SURE you want to create a staging instance that may interact with them [y/N]?: y | |
Hostname to use for staging instance [production]: test01 | |
Roles to use for staging instance [web,app,db:primary=true]: | |
* executing `rubber:create' | |
* Creating new security group: foobar_production_haproxy | |
* Creating new security group: foobar_production_production | |
* Creating new security group: foobar_production_web01 | |
* Creating new security group: foobar_production_web | |
* Creating new rule: {"source_ips"=>["0.0.0.0/0"], "protocol"=>"tcp", "from_port"=>"80", "to_port"=>"80"} | |
* Creating new rule: {"source_ips"=>["0.0.0.0/0"], "protocol"=>"tcp", "from_port"=>"443", "to_port"=>"443"} | |
* Creating new security group: foobar_production_apache | |
* Creating new security group: foobar_production_default | |
* Creating new rule: {"source_group_account"=>"147936037270", "source_group_name"=>"foobar_production_default"} | |
* Creating new rule: {"source_ips"=>["0.0.0.0/0"], "protocol"=>"tcp", "from_port"=>"22", "to_port"=>"22"} | |
* Creating new security group: foobar_production_app | |
* Creating new security group: foobar_production_web_tools | |
* Creating new rule: {"source_ips"=>["0.0.0.0/0"], "protocol"=>"tcp", "from_port"=>"8080", "to_port"=>"8080"} | |
* Creating new rule: {"source_ips"=>["0.0.0.0/0"], "protocol"=>"tcp", "from_port"=>"8443", "to_port"=>"8443"} | |
* Creating new security group: foobar_production_db | |
* Creating new security group: foobar_production_test01 | |
* Creating new security group: foobar_production_mysql_master | |
* Creating new security group: foobar_production_passenger | |
** Creating instance ami-ccf615a5/m1.small/foobar_production_default,foobar_production_web,foobar_production_test01,foobar_production_haproxy,foobar_production_app,foobar_production_passenger,foobar_production_apache,foobar_production_db,foobar_production_mysql_master/Default | |
** Instance i-3d078756 created | |
Waiting for instance to start............... | |
** Instance running, fetching hostname/ip data | |
* executing `rubber:setup_static_ips' | |
* executing `rubber:setup_local_aliases' | |
** Writing out aliases into local machines /etc/hosts, sudo access needed | |
Password: | |
** Auto role: web => test01.bar.com, {:platform=>"linux"} | |
** Auto role: haproxy => test01.bar.com, {:platform=>"linux"} | |
** Auto role: app => test01.bar.com, {:platform=>"linux"} | |
** Auto role: passenger => test01.bar.com, {:platform=>"linux"} | |
** Auto role: apache => test01.bar.com, {:platform=>"linux"} | |
** Auto role: db => test01.bar.com, {:platform=>"linux", :primary=>true} | |
** Auto role: mysql_master => test01.bar.com, {:platform=>"linux"} | |
** Auto role: web => production.foo.com, {:platform=>"linux"} | |
** Auto role: haproxy => production.foo.com, {:platform=>"linux"} | |
** Auto role: app => production.foo.com, {:platform=>"linux"} | |
** Auto role: passenger => production.foo.com, {:platform=>"linux"} | |
** Auto role: apache => production.foo.com, {:platform=>"linux"} | |
** Auto role: db => production.foo.com, {:platform=>"linux", :primary=>true} | |
** Auto role: mysql_master => production.foo.com, {:platform=>"linux"} | |
** Auto role: app => web01.foo.com, {:platform=>"linux"} | |
** Auto role: passenger => web01.foo.com, {:platform=>"linux"} | |
** Auto role: apache => web01.foo.com, {:platform=>"linux"} | |
* executing `rubber:_get_ip' | |
* executing "ifconfig eth0 | awk 'NR==2 {print $2}' | awk -F: '{print $2}'" | |
servers: ["184.73.79.187"] | |
** Failed to connect to test01 (184.73.79.187), retrying | |
* executing `rubber:_get_ip' | |
* executing "ifconfig eth0 | awk 'NR==2 {print $2}' | awk -F: '{print $2}'" | |
servers: ["184.73.79.187"] | |
** Failed to connect to test01 (184.73.79.187), retrying | |
* executing `rubber:_get_ip' | |
* executing "ifconfig eth0 | awk 'NR==2 {print $2}' | awk -F: '{print $2}'" | |
servers: ["184.73.79.187"] | |
** Failed to connect to test01 (184.73.79.187), retrying | |
* executing `rubber:_get_ip' | |
* executing "ifconfig eth0 | awk 'NR==2 {print $2}' | awk -F: '{print $2}'" | |
servers: ["184.73.79.187"] | |
** Failed to connect to test01 (184.73.79.187), retrying | |
* executing `rubber:_get_ip' | |
* executing "ifconfig eth0 | awk 'NR==2 {print $2}' | awk -F: '{print $2}'" | |
servers: ["184.73.79.187"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment