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
script "install_something" do | |
interpreter "bash" | |
user "root" | |
cwd "/tmp" | |
code <<-EOH | |
yum-config-manager --add-repo http://download.opensuse.org/repositories/home:/fengshuo:/zeromq/CentOS_CentOS-6/home:fengshuo:zeromq.repo | |
yum -y install yum-utils |
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-logstash/attributes/kibana.rb | |
#new attributes..an array will contain hash "index" => "haproxy-%Y.%m.%d" , "port" => "80" | |
default['logstash']['kibana']['smart_index_pattern'] = [] | |
#our settings in our cookbook | |
#fao-logstash/attributes/server.rb | |
set['logstash']['kibana']['smart_index_pattern'] = [{ "index" => "haproxy-%Y.%m.%d" , "port" => "80" }, | |
{ "index" => "java-%Y.%m.%d","port" => "81" }] |
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
# attributes/default.rb | |
set['rvm']['user_installs'] = [ | |
{ 'user' => 'eugenio', | |
'default_ruby' => 'ruby', | |
'rubies' => ['1.9.2', '1.8.7'] | |
} | |
] |
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
include_recipe "tomcat::base" | |
include_recipe "ark" | |
gb_user = node['geobatch']['user'] | |
user gb_user do | |
action :create | |
supports :manage_home => true | |
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
iugin@emarzolab01:~/chef-repo/site-cookbooks/geobatch/attributes$ cat default.rb | |
default['geobatch']['temp_dir'] = '/tmp/geobatch' | |
default['geobatch']['config_dir'] = '/data/geobatch/GEOBATCH_CONFIG_DIR/' | |
default['geobatch']['ip'] = node["ipaddress"] | |
default['geobatch']['user'] = 'geobatch' | |
default['geobatch']['jvm_heap'] = '1024m' |