This file contains 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
begin | |
server_block_data = | |
data_bag_item('customer_server_blocks', node.feedmagnet.instance_name) | |
rescue | |
log "no data bag for customer server blocks found" | |
end |
This file contains 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
In the attributes file, the value is set: | |
default['feedmagnet']['db']['host_ip'] = 'localhost' | |
```ruby | |
if node.chef_environment.include?('large') | |
nodes = search(:node, "name:#{node.feedmagnet.instance_name}*") # Three nodes are found (merry-util, merry-console, merry-db) | |
log "# nodes #{nodes.count()}" # 3 |
This file contains 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
1 user nginx; | |
2 worker_processes 1; | |
3 | |
4 events { | |
5 worker_connections 1024; | |
6 } | |
7 | |
8 http { | |
9 include /etc/nginx/mime.types; | |
10 default_type application/octet-stream; |
This file contains 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
Note that the recipe base is in the runlist first. | |
Note that after loading the cookbooks (where base should produce many lines of code for creating ssh users and such) it skips | |
not to the first command of the the kitchen::knife recipe, but third. | |
[2013-02-12T21:51:18+00:00] INFO: *** Chef 10.16.2 *** | |
[2013-02-12T21:51:22+00:00] INFO: Run List is [recipe[base], recipe[kitchen]] | |
[2013-02-12T21:51:22+00:00] INFO: Run List expands to [base, kitchen] | |
[2013-02-12T21:51:22+00:00] INFO: Starting Chef Run for openkitchen | |
[2013-02-12T21:51:22+00:00] INFO: Running start handlers |
This file contains 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
Instance ID: 2a0b5efd-6b3b-49ac-970b-73bca5be7ba5 | |
Name: merryutil | |
Flavor: 512MB Standard Instance | |
Image: Ubuntu 10.04 LTS (Lucid Lynx) | |
Waiting server....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-rackspace-0.6.3/lib/chef/knife/rackspace_base.rb:139:in `rescue in public_dns_name': undefined method `gsub' for nil:NilClass (NoMethodError) | |
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-rackspace-0.6.3/lib/chef/knife/rackspace_base.rb:136:in `public_dns_name' | |
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-rackspa |
This file contains 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
Resource Declaration: | |
--------------------- | |
# In /var/cache/chef/cookbooks/fm_one_time/recipes/pre_2_4_100.rb | |
24: bash "Double Tap on microwave" do | |
25: user "root" | |
26: cwd "/tmp" | |
27: code <<-EOH | |
28: pkill -U microwave | |
29: EOH |
This file contains 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
DEBUG: Using configuration from /opt/myuser/.chef/knife.rb | |
DEBUG: version v2 (config) | |
DEBUG: version v2 (cli) | |
DEBUG: rackspace_api_key <secret> | |
DEBUG: rackspace_username | |
DEBUG: rackspace_api_username myuser | |
DEBUG: rackspace_auth_url (config) | |
DEBUG: rackspace_auth_url auth.api.rackspacecloud.com (cli) | |
DEBUG: rackspace_endpoint https://dfw.servers.api.rackspacecloud.com/v2 (config) | |
DEBUG: rackspace_endpoint https://dfw.servers.api.rackspacecloud.com/v2 (cli) |
NewerOlder