diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2015-07-18 23:25:12 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2015-07-18 23:25:12 +0000 |
commit | c884701bb68d57e9a42b814dcb76ed8e4d5bb015 (patch) | |
tree | 11e710c1898643ec83aa890be9ffc4dde350a575 /app-admin | |
parent | initial add of puppet-server (diff) | |
download | historical-c884701bb68d57e9a42b814dcb76ed8e4d5bb015.tar.gz historical-c884701bb68d57e9a42b814dcb76ed8e4d5bb015.tar.bz2 historical-c884701bb68d57e9a42b814dcb76ed8e4d5bb015.zip |
initial add of puppet-server
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0x33ED3FD25AFC78BA
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/puppetserver/Manifest | 24 | ||||
-rw-r--r-- | app-admin/puppetserver/files/puppetserver.initd | 67 | ||||
-rw-r--r-- | app-admin/puppetserver/metadata.xml | 14 | ||||
-rw-r--r-- | app-admin/puppetserver/puppetserver-2.1.1.ebuild | 106 |
4 files changed, 209 insertions, 2 deletions
diff --git a/app-admin/puppetserver/Manifest b/app-admin/puppetserver/Manifest index b98f743628f0..f178eda6e9c6 100644 --- a/app-admin/puppetserver/Manifest +++ b/app-admin/puppetserver/Manifest @@ -1,4 +1,24 @@ -AUX puppetserver.initd 1906 SHA256 5d72a4e64c65de07cbca58a011311e86a69739ab550fbe3f7f8d84ff22ae88ae SHA512 6551aaba2bb59e468c9ff8ba83d4ac0ff30c9d76c26f394a407c2424f1eaacbdd29ada36752b4d0e6c41775b5354dbafac5364bc6df388141beef47fd0903d9b WHIRLPOOL 487ddb09da49a1c400047c0b73b3834bb663e013e8e4a8e52a5a425ae3ecfa0334311580fcb04b35709762b3673221b83b0096b48db7deed3a1a85a1e1113511 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX puppetserver.initd 1906 SHA256 0fe33079f9ffec950ff940e3f86961dad8ff4fba25341276cb2b65e2ee39dff1 SHA512 feadf6a5f0b2ea4525d9670f88b4bc6c3ccb1a0c97d3c71405d39dac5992c2284b471630aeb3a187360e5ca3283cd3c8cb8a64088f58726590913d76bdb3d90e WHIRLPOOL 47e0898c933939b5337838569da2b8913d53fa03ae83d714c77a18690ad4acf9c9c8866b552d26e6dcf16040cc3c76ffb2321e4c8d7bc34735f317daadb7d78b DIST puppetserver-2.1.1.tar.gz 42547364 SHA256 206db88de533ebf0071a3d957aa21145500abb7748897b01f0de8e5d57dbff0c SHA512 850276fdd67f77f4c8e67be920ca4685fb267d6c90ed1eea41792c5f500ad4b199c198a4367a0faeb55d7aaf85ad531f50bd6704562c1c26bce499265d03a3d5 WHIRLPOOL aabce9259f99926788b9ff16e1b547e4f3c543a54c50a0bd3b0ef0e27eb5b1042981b5bbc73339b28b063798da3cd2453f45a40fcc77f9019f8db40fb5216f28 -EBUILD puppetserver-2.1.1.ebuild 3700 SHA256 6b1b1a43ec14cc0a8183425cbc40baa4a710373932325e9cdd9181238ad19d67 SHA512 d73de4a6314468cc340a15f50fac216ef3aa7c182732cd273cb931d9b680c29cc4b225e276e3c589b6c31d16c9e09b57795d44e3ff1fad96e1cee4973d76ca58 WHIRLPOOL 0557269f2e8128cde7bac123a69d30aa97b4ef5a33438df3b2497eba666fad4e9fbaca5b4199cf2b99c8a09bb1ba94f386e3e8722fb78a1d1fb340f5a9cefc32 +EBUILD puppetserver-2.1.1.ebuild 3700 SHA256 c3e780ee18184245f6877ef3fef4af9d0fa7d83963024fdf8db47aa5eb4ff7fc SHA512 0d80af19b37d7cc7094986bd1cbff16afa1face039392de884cd6c4434b55897df1a5e253684c832923fd1c753850ca5f03cfdefc8b33aa58d35a35df8ec18cf WHIRLPOOL abf2874230eb39dca7fa3d9d2b1dd742ea381b6ecd4b4fc97b6c71a61a435e1d49e13ee79f392e3f7fa6e74ed113f1e603fc1da58d661820775460a9194e7a59 +MISC ChangeLog 420 SHA256 216c77ae394c06cab54b657ef762f2b4b988782e512883e40615b52c2e4f35b0 SHA512 b6164dd9e0cb44a59b6858203c118924aa87db178bb79d757250d289ca53a4c93375dfbbe51d00972c43b74452fdb2269cf9895d4328001309f3b1dbcab52bf6 WHIRLPOOL 9286317e39cad15059e731721e1f9db68a7d7fefdc0af26fa1f5a737870ac9ada3c8463ac8fd4caadfbfa4fb9af2c99f9f4077d08488bd079c10a8dea4cce718 MISC metadata.xml 454 SHA256 4f640f42641af82a71290f85aab764c908f2db917457ecc3ade37b83160ef6f4 SHA512 68b9c9c957a39f1019530f36bfd55e0054ca4a271c5a40766c9f3ef5fb21daf54526edf69c7dca0bd1c523968e466634947599513010c6263781196221379993 WHIRLPOOL 9f3b571a51c54ade327a3cbb00266fa213d2f63abb7fc6d811c87b62e57e7f445bf702cbf52f6cb5d2908c01696aa0b616cc40172c25fb478a0d2b09e848361e +-----BEGIN PGP SIGNATURE----- + +iQIcBAEBCAAGBQJVquCKAAoJEGSje+quGaToMZQP/0nWQRgXWr16pM7QO2xajnZJ +z/cqSY8dMsbfDXH7p8mqWCzuANXUNiR1t2ht+P7sRaetROesrxAeLKBhtjJHZDrE ++T5GNyJqiaj4R0qD65F2iq3ttu2u/NJjyabaR1AQj1kwTXDsStwpAVaGCMRRkypO +jv8gtFIkiGC5aeF45FBcmvZZ+XjSjTOc1QH03jhtxY7kksE8cryUUsOTnzX/k/mr +bsBPZ2NGX1cF0IEz2dvzErhtHySeS+VTdayANxQOJiflGlYocEsL/vEhf+ryj4Wb +z+D65Dgbl6PIZj679+EXRjoIUph7nj6HK+P+y0VYnaNKj8tQ+nTrmnC0IktgylWq +dxR7YjQdC5hx4PCX7PKHZq3IcaprTtvkCZg5LVaxaFuSZFwz+Lwpv+5aDQtmUy07 +LKKiVGmlfx3IHmornJMpZ41/qdcj5g416v0Lt5BPdAeB3PzccKgMNbCzZDGecF3P +pZbx7LGbFR/3/RXYRJW4ZtjZ7ivKUUDXL8zR+qT7dduQITYLpIt+m7dNMUsKuOCA +0UBF+8jc6Lik5D6VDcqxRoFDBHqSRVgnBZr6KZpAWoESn00KDMPwCk1e+Kya+yAZ +jpwhoGL+90PfTJlJY7vsioYaMTXWbxfRjfNcesrSf4mDkR0XchgGMZ5WkS/TkJT4 +FhLfex6DJFvsZW9toBPa +=tnE+ +-----END PGP SIGNATURE----- diff --git a/app-admin/puppetserver/files/puppetserver.initd b/app-admin/puppetserver/files/puppetserver.initd new file mode 100644 index 000000000000..aa4571fd804d --- /dev/null +++ b/app-admin/puppetserver/files/puppetserver.initd @@ -0,0 +1,67 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppetserver/files/puppetserver.initd,v 1.1 2015/07/18 23:24:56 prometheanfire Exp $ + +extra_commands="checkconfig" + +LOGDIR="/var/log/puppetlabs/puppetserver" +RUNDIR="/run/puppetlabs/puppetserver" + +checkconfig() { + if [ ! -x $JAVA_BIN ]; then + eerror "Missing JAVA_BIN." + eend 1 + fi + if [ ! -d $INSTALL_DIR ]; then + eerror "Missing INSTALL_DIR." + eend 1 + fi + if [ ! -a $BOOTSTRAP_CONFIG ]; then + eerror "Missing BOOTSTRAP_CONFIG." + eend 1 + fi + if [ ! -e $CONFIG ]; then + eerror "Missing CONFIG." + eend 1 + fi + if [ ! -n $USER ]; then + eerror "Missing USER." + eend 1 + fi + if [ ! -n $GROUP ]; then + eerror "Missing GROUP." + eend 1 + fi + + checkpath -d -m 0700 -o "${USER}:${GROUP}" "${LOGDIR}" + checkpath -d -m 0755 -o "${USER}:${GROUP}" "${RUNDIR}" + + + + JAVA_ARGS="${JAVA_ARGS} -cp '${INSTALL_DIR}/puppet-server-release.jar' clojure.main -m \ + puppetlabs.trapperkeeper.main --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" + + EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError \ + -XX:HeapDumpPath=/var/log/puppetlabs/puppetserver -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" +} + +start() { + checkconfig || return 1 + + ebegin "Starting PuppetDB" + start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ + --exec ${EXEC} --pidfile "${RUNDIR}/puppetserver.pid" \ + -- >> "${LOGDIR}/puppetserver-daemon.log" + local retval=$? + if [ $retval -ne 0 ]; then + ewarn "Error starting puppetserver." + fi + eend $retval +} + +stop() { + ebegin "Stopping PuppetDB" + start-stop-daemon --stop --pidfile "${RUNDIR}/puppetserver.pid" + eend $? +} diff --git a/app-admin/puppetserver/metadata.xml b/app-admin/puppetserver/metadata.xml new file mode 100644 index 000000000000..e25100b94a84 --- /dev/null +++ b/app-admin/puppetserver/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <use> + <flag name="puppetdb">Adds support for connecting to puppetdb</flag> + </use> + <longdescription lang="en"> + Puppet Server is the next-generation application for managing Puppet agents. + </longdescription> +</pkgmetadata> diff --git a/app-admin/puppetserver/puppetserver-2.1.1.ebuild b/app-admin/puppetserver/puppetserver-2.1.1.ebuild new file mode 100644 index 000000000000..8b57d0dfa8a6 --- /dev/null +++ b/app-admin/puppetserver/puppetserver-2.1.1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppetserver/puppetserver-2.1.1.ebuild,v 1.1 2015/07/18 23:24:56 prometheanfire Exp $ + +EAPI=5 + +inherit multilib systemd user + +DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents." +HOMEPAGE="http://docs.puppetlabs.com/puppetserver/" +SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="puppetdb" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+=" + virtual/jdk:1.7 + app-admin/puppet-agent[puppetdb?]" +DEPEND+="" + +pkg_setup() { + enewgroup puppet + enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet" +} + +src_prepare() { + sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetserver.service || die + sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetserver || die + sed -i 's/sysconfig/conf\.d/g' install.sh || die + sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die + sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die + sed -i 's/var\/run/run/g' install.sh || die +} + +src_compile() { + einfo "not compiling" +} + +src_install() { + insinto /opt/puppetlabs/server/apps/puppetserver + insopts -m0774 + doins ext/ezbake-functions.sh + insopts -m0644 + doins ext/ezbake.manifest + doins puppet-server-release.jar + insinto /etc/puppetlabs/puppetserver + doins ext/config/logback.xml + doins ext/config/bootstrap.cfg + doins ext/config/request-logging.xml + insinto /etc/puppetlabs/puppetserver/conf.d + doins ext/config/conf.d/puppetserver.conf + doins ext/config/conf.d/ca.conf + doins ext/config/conf.d/global.conf + doins ext/config/conf.d/web-routes.conf + doins ext/config/conf.d/webserver.conf + insopts -m0755 + insinto /opt/puppetlabs/server/apps/puppetserver/scripts + doins install.sh + insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps + doins ext/cli/irb + doins ext/cli/foreground + doins ext/cli/gem + doins ext/cli/ruby + insinto /opt/puppetlabs/server/apps/puppetserver/bin + doins ext/bin/puppetserver + insopts -m0644 + dodir /opt/puppetlabs/server/bin + dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver + dodir /opt/puppetlabs/bin + dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver + # other sys stuff + dodir /etc/puppetlabs/code + # needed for systemd + dodir /var/log/puppetlabs/puppetserver + dodir /etc/puppetlabs/puppet/ssl + fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl + fperms -R 771 /etc/puppetlabs/puppet/ssl + # init type tasks + newconfd ext/default puppetserver + systemd_dounit ext/redhat/puppetserver.service + newinitd "${FILESDIR}/puppetserver.initd" puppetserver + # misc + insinto /etc/logrotate.d + newins ext/puppetserver.logrotate.conf puppetserver + # cleanup + dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems + fowners -R puppet:puppet /opt/puppetlabs/server/data + fperms -R 775 /opt/puppetlabs/server/data/puppetserver + fperms -R 700 /var/log/puppetlabs/puppetserver +} + +pkg_postinst() { + elog "to install you may want to run the following:" + elog + elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver" + elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver" + elog "puppet config set --section master rundir /run/puppetlabs/puppetserver" + elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid" + elog "puppet config set --section master codedir /etc/puppetlabs/code" + elog + elog "the jruby needs it's own puppet gem installed..." + elog "/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver gem install puppet" +} |