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
deploy "/home/amsrv/app/Cornice" do | |
repo "[email protected]:Aslan/TestApp.git" | |
revision "HEAD" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234" | |
user "amsrv" | |
group "amsrv" | |
enable_submodules true | |
migrate true | |
migration_command "rake db:migrate --trace" | |
symlink_before_migrate "config/database.yml" => "config/database.yml" | |
environment "RAILS_ENV" => "production" |
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
aws_ebs_volume "my_ebs_volume" do | |
aws_access_key node[:aws][:aws_access_key_id] | |
aws_secret_access_key node[:aws][:aws_secret_access_key] | |
size 50 | |
device "/dev/sdi" | |
volume_id node[:ebs][:volume_id] | |
action [ :create, :attach ] | |
provider "aws_ebs_volume" | |
end |
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
# complain if no snapshot id provided | |
# | |
snapshot_id = node[:channels][:database][:snapshot_id] rescue nil | |
raise "No snapshot id specified." if snapshot_id.blank? | |
device = node[:channels][:database][:device] rescue nil | |
raise "No device specified for the database volume" if device.blank? | |
# mount ebs volume | |
# |
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
{ | |
"run_list": [ | |
"role[app_server, app_server_db]" | |
] | |
} |
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
{ | |
"validation_token": "my token", | |
"attributes": { | |
"run_list": [ | |
"role[app_server]" | |
] | |
}, | |
"chef_server": "path to my chef server" | |
} |
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
root@domU-12-31-39-07-49-D2:/var/run# chef-client -l debug | |
INFO: Starting Chef Run | |
DEBUG: Loading plugin os | |
DEBUG: Loading plugin ruby | |
DEBUG: Loading plugin languages | |
DEBUG: Loading plugin kernel | |
DEBUG: ---- Begin uname -s STDOUT ---- | |
DEBUG: Linux | |
DEBUG: ---- End uname -s STDOUT ---- | |
DEBUG: ---- Begin uname -s STDERR ---- |
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
root@domU-12-31-39-03-49-02:/opt/poolparty/poolparty# /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/cloud-show | |
PoolParty core loadtime: 0.750003 | |
Cloud: hello_world | |
---------------------------- | |
Running Instances: 0 | |
Minimum instances: 1 | |
Maximum instances: 1 | |
Running on: ec2 | |
Keypair: sv_keypair | |
Security group: sandbox-hello_world |
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
pool :sandbox do | |
cloud :hello_world do | |
instances 1..1 | |
using :ec2 | |
# Update with the path to your EC2 keypair | |
# If you don't have one, create with: | |
# $ ec2-create-keypair NAME > /path/to/your/keypairs/<NAME> | |
keypair "/root/.ect/sv_keypair" |
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
root@domU-12-31-39-03-49-02:/opt/poolparty/poolparty# /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/cloud-show | |
PoolParty core loadtime: 0.772026 | |
Error contacting AWS: No :access_key_id provided | |
Cloud: hello_world | |
---------------------------- | |
Running Instances: 0 | |
Minimum instances: 1 | |
Maximum instances: 1 | |
Running on: ec2 | |
Keypair: sv_keypair |
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
root@domU-12-31-39-03-49-02:/opt/poolparty/poolparty# /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/cloud-start | |
PoolParty core loadtime: 0.691513 | |
/usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/vendor/gems/dslify/lib/dslify.rb:77:in `method_missing': undefined method `user_data' for #<PoolParty::Cloud:0xb7b2110c> (NoMethodError) | |
from /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/base.rb:25:in `method_missing' | |
from ./clouds.rb:13 | |
from /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/base.rb:13:in `instance_eval' | |
from /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/base.rb:13:in `initialize' | |
from /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/pool.rb:7:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/poolparty-1.4.7/bin/../lib/poolparty/pool.rb:7:in `cloud' | |
from ./clouds.rb:3 |