Sha256: 3e14dab4a194a18dbe0e28842769bf8002faa0803788dedd2f3a2f54aee540b7

Contents?: true

Size: 767 Bytes

Versions: 34

Compression:

Stored size: 767 Bytes

Contents

require 'daddy/itamae'

service 'god' do
  user 'root'
  action :stop
end

gem_package 'god' do
  user 'root'
end

case os_version
when /rhel-6\.(.*?)/
  template '/etc/init.d/god' do
    user 'root'
    owner 'root'
    group 'root'
    mode '755'
  end
else
  #raise I18n.t('itamae.errors.unsupported_os_version', :os_version => os_version)
  raise "サポートしていないOSバージョンです。#{os_version}"
end

directory '/etc/god' do
  user 'root'
  owner 'root'
  group 'root'
  mode '755'
end

template '/etc/god/master.conf' do
  user 'root'
  owner 'root'
  group 'root'
  mode '644'
end

template '/etc/logrotate.d/god' do
  user 'root'
  owner 'root'
  group 'root'
  mode '644'
end

service 'god' do
  user 'root'
  action [:enable, :start]
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
daddy-0.9.9 itamae/cookbooks/god/install.rb
daddy-0.9.8 itamae/cookbooks/god/install.rb
daddy-0.9.7 itamae/cookbooks/god/install.rb
daddy-0.9.6 itamae/cookbooks/god/install.rb
daddy-0.9.5 itamae/cookbooks/god/install.rb
daddy-0.9.4 itamae/cookbooks/god/install.rb
daddy-0.9.3 itamae/cookbooks/god/install.rb
daddy-0.9.2 itamae/cookbooks/god/install.rb
daddy-0.9.1 itamae/cookbooks/god/install.rb
daddy-0.9.0 itamae/cookbooks/god/install.rb
daddy-0.8.1 itamae/cookbooks/god/install.rb
daddy-0.8.0 itamae/cookbooks/god/install.rb
daddy-0.7.9 itamae/cookbooks/god/install.rb
daddy-0.7.8 itamae/cookbooks/god/install.rb
daddy-0.7.7 itamae/cookbooks/god/install.rb
daddy-0.7.6 itamae/cookbooks/god/install.rb
daddy-0.7.5 itamae/cookbooks/god/install.rb
daddy-0.7.4 itamae/cookbooks/god/install.rb
daddy-0.7.3 itamae/cookbooks/god/install.rb
daddy-0.7.2 itamae/cookbooks/god/install.rb