-
Notifications
You must be signed in to change notification settings - Fork 34
/
recipe-aws.rb
46 lines (38 loc) · 1.11 KB
/
recipe-aws.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class PuppetOmnibus < FPM::Cookery::Recipe
homepage 'https://github.com/andytinycat/puppet-omnibus'
section 'Utilities'
name 'puppet-omnibus'
version '3.7.3'
description 'Puppet Omnibus package'
revision 0
vendor 'fpm'
maintainer '<[email protected]>'
license 'Apache 2.0 License'
source '', :with => :noop
omnibus_package true
omnibus_dir "/opt/#{name}"
omnibus_recipes 'libyaml',
'ruby',
'puppet',
'aws'
# Set up paths to initscript and config files per platform
platforms [:ubuntu, :debian] do
config_files '/etc/puppet/puppet.conf',
'/etc/init.d/puppet',
'/etc/default/puppet'
end
platforms [:fedora, :redhat, :centos] do
config_files '/etc/puppet/puppet.conf',
'/etc/init.d/puppet',
'/etc/sysconfig/puppet'
end
omnibus_additional_paths config_files
def build
# Nothing
end
def install
# Set paths to package scripts
self.class.post_install builddir('post-install')
self.class.pre_uninstall builddir('pre-uninstall')
end
end