Created
June 20, 2013 06:07
-
-
Save lithix-src/5820623 to your computer and use it in GitHub Desktop.
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
Relevant File Content: | |
---------------------- | |
/mnt/cache/chef/cookbooks/chef-server/recipes/rubygems-install.rb: | |
195: ["rhel", "fedora"] => "sysconfig" | |
196: ) | |
197: | |
198: chef_version = node['chef_packages']['chef']['version'] | |
199: gems_dir = node['languages']['ruby']['gems_dir'] | |
200: | |
201: server_services.each do |svc| | |
202>> conf_content = IO.read("#{gems_dir}/gems/chef-#{chef_version}/distro/#{dist_dir}/etc/#{conf_dir}/#{svc}") | |
203: | |
204: template "/etc/init.d/#{svc}" do | |
205: source "#{dist_dir}/init.d/#{svc}.erb" | |
206: mode 00755 | |
207: end | |
208: | |
209: file "/etc/#{conf_dir}/#{svc}" do | |
210: content conf_content | |
211: mode 00644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment