summaryrefslogtreecommitdiffstats
path: root/recipes-support/puppet/puppet_5.4.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/puppet/puppet_5.4.0.bb')
-rw-r--r--recipes-support/puppet/puppet_5.4.0.bb54
1 files changed, 54 insertions, 0 deletions
diff --git a/recipes-support/puppet/puppet_5.4.0.bb b/recipes-support/puppet/puppet_5.4.0.bb
new file mode 100644
index 0000000..54574e4
--- /dev/null
+++ b/recipes-support/puppet/puppet_5.4.0.bb
@@ -0,0 +1,54 @@
1SUMMARY = "Open source Puppet is a configuration management system"
2HOMEPAGE = "https://puppetlabs.com/puppet/puppet-open-source"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=7c9045ec00cc0d6b6e0e09ee811da4a0"
5
6SRC_URI = " \
7 https://downloads.puppetlabs.com/puppet/puppet-${PV}.tar.gz \
8 file://add_puppet_gemspec.patch \
9 file://puppet.conf \
10 file://puppet.init \
11 file://puppet.service \
12"
13SRC_URI[md5sum] = "e26702fbfb464121d8d60e639ea254d9"
14SRC_URI[sha256sum] = "8db3a89c9ced01b43c57f89e42d099a763d02f38bcea5d6c73e1245556932bb2"
15
16inherit ruby update-rc.d systemd
17
18DEPENDS += " \
19 ruby \
20 facter \
21"
22
23RDEPENDS_${PN} += " \
24 ruby \
25 facter \
26 ruby-shadow \
27 bash \
28"
29
30RUBY_INSTALL_GEMS = "puppet-${PV}.gem"
31
32INITSCRIPT_NAME = "${BPN}"
33INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
34
35SYSTEMD_AUTO_ENABLE = "enable"
36SYSTEMD_PACKAGES = "${PN}"
37SYSTEMD_SERVICE_${PN} = "${BPN}.service"
38
39do_install_append() {
40 install -d ${D}${sysconfdir}/puppet
41 install -d ${D}${sysconfdir}/puppet/manifests
42 install -d ${D}${sysconfdir}/puppet/modules
43
44 install -m 655 ${S}/conf/auth.conf ${D}${sysconfdir}/puppet/
45 install -m 655 ${S}/conf/fileserver.conf ${D}${sysconfdir}/puppet/
46 install -m 655 ${S}/conf/environment.conf ${D}${sysconfdir}/puppet/
47 install -m 655 ${WORKDIR}/puppet.conf ${D}${sysconfdir}/puppet/
48
49 install -d ${D}${systemd_unitdir}/system
50 install -m 0644 ${WORKDIR}/puppet.service ${D}${systemd_unitdir}/system
51
52 install -d ${D}${sysconfdir}/init.d
53 install -m 0755 ${WORKDIR}/puppet.init ${D}${sysconfdir}/init.d/puppet
54}