Initial Chef repository

This commit is contained in:
Greg Karékinian
2015-07-21 19:45:23 +02:00
parent 7e5401fc71
commit ee4079fa85
1151 changed files with 185163 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
directory '/opt/scripts' do
action :create
mode '0755'
owner 'root'
group 'root'
end
directory '/opt/local/etc/snmp/conf.d' do
action :create
mode '0755'
owner 'root'
group 'root'
end
template '/opt/scripts/SMFServicesOK.sh' do
path '/opt/scripts/SMFServicesOK.sh'
source 'SMFServicesOK.sh.erb'
mode '0755'
end
template 'SMFServicesOK.snmpd.conf' do
path '/opt/local/etc/snmp/conf.d/SMFServicesOK.snmpd.conf'
source 'SMFServicesOK.snmpd.conf.erb'
mode '0644'
end

View File

@@ -0,0 +1,7 @@
## These libraries need to be installed when the cookbook
# is loaded, otherwise they are not available when the
# cookbook runs.
chef_gem 'builder'
require 'builder'