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
Chef::Platform.platforms[:xenserver] = { | |
:default => { | |
:service => Chef::Provider::Service::Redhat, | |
:cron => Chef::Provider::Cron, | |
:package => Chef::Provider::Package::Yum, | |
:mdadm => Chef::Provider::Mdadm | |
} | |
} |
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
%w/collectd-rrdtool collectd-collection3 libxml2-devel/.each do |pkg| | |
package pkg do | |
action [:install, :upgrade] | |
end | |
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
module Domain | |
module User | |
# | |
# takes a string and gets the userdata from couch | |
# otherwise retuns whats passed in | |
# | |
def get_user(usr=nil) |
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
#!/bin/env ruby | |
foo = "someval" | |
puts "===" | |
puts foo.class === "String" | |
puts foo.class === String | |
puts "\n==" | |
puts foo.class == "String" |
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
default.foo = test |
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
cookbook_file "/tmp/somepkg.deb" | |
package "somepkg" do | |
source "/tmp/somepkg.deb" | |
end | |
# this assumes somepkg.deb is in your cookbook under files/default |
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
[Wed, 13 Oct 2010 15:42:29 +0000] ERROR: Exception handlers complete | |
[Wed, 13 Oct 2010 15:42:29 +0000] ERROR: Re-raising exception: NoMethodError - undefined method `first' for #<StringIO:0xf74be824> | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:187:in `device_real' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command/unix.rb:201:in `[]' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command/unix.rb:201:in `popen4' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:186:in `device_real' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/mount/mount.rb:42:in `load_current_resource' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:43:in `build_provider' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:50:in `run_action' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:in `converge' |
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
# | |
# Managed by chef ocfs2 recipe | |
# Local edits will be squashed | |
# | |
<% count = 0 %> | |
<% @members.sort.each do |host, ip| %> | |
node: | |
ip_port = 7777 | |
ip_address = <%= ip %> | |
number = <%= count %> |
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
Chef::Platform.platforms[:xenserver] = { | |
:default => { | |
:service => Chef::Provider::Service::Redhat, | |
:cron => Chef::Provider::Cron, | |
:package => Chef::Provider::Package::Yum, | |
:mdadm => Chef::Provider::Mdadm | |
} | |
} |
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
# mount /dev/VolGroup00/test1 /mnt/foo | |
# mount /dev/VolGroup00/test2 /mnt/foo | |
# mount | grep foo | |
/dev/mapper/VolGroup00-test1 on /mnt/foo type xfs (rw) | |
/dev/mapper/VolGroup00-test2 on /mnt/foo type xfs (rw) | |