Sha256: 9b93b93f0447cd70fb319e66f0d55344ea406c0a61a3f4d9d0aab8da23f79e06
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
alt_god = ENV['ALTERNATIVE_GOD'] god_gem = case alt_god when %r!\.gem\z! then # Ends with '.gem' { package: alt_god, version: nil } when %r!\A\S+\z! then # Matches characters without white spaces { package: alt_god, version: ENV['ALTERNATIVE_GOD_VERSION'] } else { package: 'god', version: '0.13.7' } end gem_package 'god' do package_name god_gem[:package] version god_gem[:version] user 'root' 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 service_variables = { pid: '/var/run/god.pid', config: '/etc/god/master.conf', log: '/var/log/god.log', log_level: 'info' } case "#{node.platform_family}-#{node.platform_version}" when /rhel-7\.(.*?)/ template '/etc/systemd/system/god.service' do user 'root' owner 'root' group 'root' mode '755' variables service_variables end else template '/etc/init.d/god' do user 'root' owner 'root' group 'root' mode '755' variables service_variables end end template '/etc/logrotate.d/god' do user 'root' owner 'root' group 'root' mode '644' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-god-0.1.3 | lib/itamae/plugin/recipe/god/install.rb |