diff options
Diffstat (limited to 'app-admin/puppetdb')
-rw-r--r-- | app-admin/puppetdb/Manifest | 24 | ||||
-rw-r--r-- | app-admin/puppetdb/files/puppetdb.initd | 67 | ||||
-rw-r--r-- | app-admin/puppetdb/metadata.xml | 11 | ||||
-rw-r--r-- | app-admin/puppetdb/puppetdb-3.0.1.ebuild | 105 |
4 files changed, 205 insertions, 2 deletions
diff --git a/app-admin/puppetdb/Manifest b/app-admin/puppetdb/Manifest index 21b6ec454af8..f3c117db6528 100644 --- a/app-admin/puppetdb/Manifest +++ b/app-admin/puppetdb/Manifest @@ -1,4 +1,24 @@ -AUX puppetdb.initd 1848 SHA256 038ba1db22e0ccb519b2fd2b4379760d0214f3419c5af3b38afa47fb7f755d86 SHA512 78224cb91cc7300108169e87feaed830a631f4b34ee9f9c724617b16d880011b5684dfea5dfc44da3e5e0bc5e43a605caee861734c8470b711c16cf14a0ea1de WHIRLPOOL a9e385cc35c352cab0a5645f98b4227da0fb3ccd12dbd3a6c7b0ea9b7b3563620983cf008f7cba5f7fa240406eba2f66cd9cf10924587dd3992f914ea147c6cc +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX puppetdb.initd 1957 SHA256 3f8b8dcdd9633ab6ec0cd1a115d38036c65cb51916940cb415315c77b8d3326b SHA512 56aaa5c3de8a6b1f447b6aeddb5379da33d2d645a8606edcf64785cfb12c887e54a1b512c555fa29eed3854fe5b5057dacbdc261a5b5a8e497d0ea463b025053 WHIRLPOOL 056fb0d1955a004a88a3981830bc80fbe8634ee3df33e2a9468fc62b322d2ce1548776b2a384fb469527b77e87001f34e4c5e5517cb53fc1a93af99406c05cdd DIST puppetdb-3.0.1.tar.gz 24693952 SHA256 b5e86d36845c62d75c078816cffd5d38d97f014da8886506819b21a6c2719366 SHA512 00960de13270a8063de1845f7f0c42a3fa4bdec10ab2b8f66ce0dba27acda1b78974c57c0f3c6e2c09187f63e85d799b94f95de563bcbc179e9d692470a1e902 WHIRLPOOL ec136a91b2712b9249defaff6ea24b6f1ed917e519850515d8c0b995c5dcbc049550b2ac9efbe585c197a5747edcdb10e490a016de2067b593c833e02d8a7426 -EBUILD puppetdb-3.0.1.ebuild 3183 SHA256 e6d3cd7bd31a2b21d47570e7ddf534b4dabf6d7f9f8ffa1bea7660c846b78c53 SHA512 2a193a6da5b322d6364bc87ad0bc915e6ce8d543d78a73e70bf5b45ee1f90a60417b062517c531fced36b9f0c712dd2773c7dd98fca332c94dadccc235babbdd WHIRLPOOL 990421ac325d63ce18ced58fa2aafda8606aeb81d8273dce4ec601bb696fb6161ae9759258472b6d1ce234c781e58dee9c87eadb964656ca3d8bbaf35acb1abf +EBUILD puppetdb-3.0.1.ebuild 3168 SHA256 38d38bc62f4839b52a692e682b0e4943926a3a09777fa7139580021755ca7b55 SHA512 6971d45a60ede916b4022ab749c756f8bbc2b4c7ae4f9d449c5d1ccf4a0531da7b2a393f29d16d78f14f9e2ba5617e72db8a736642c5a6f0e840c174ee7e52aa WHIRLPOOL a2c0945fc44db880f7117fd0ad4ccfb3b91c0f67eb3007fa758c2f597b313f713ad4bebe8ceb143b38bc957dad1bff1347f652c0750999a8fc89632b9a967cde +MISC ChangeLog 398 SHA256 95608919dcaed78a4a37ec3c542af2baa0dbd38ce3c475ce48a8770fefc2278f SHA512 d35742d5b89e1b041f110cb00ac69c446d8c5b1c30b5a82c24301ddd411ea9d0dad77fbe77d0f5dc3269031b2d9646dbaf35dffb0e1279d03bd514efb6377029 WHIRLPOOL 3ae6c01a06fbf02e48b14c2a643edda4cd1c7372b03c9ca7cdd264b726e80a08059461820112326fc168ea02a9f2cc782fa2ee11f903c283543bff55907f8089 MISC metadata.xml 471 SHA256 dadbeec45a119b1377e968440695bf20e2c71842eff8aabfc682101e75560dd7 SHA512 20492c379725a963a261add53895c794108c2b3832203179befd581c9cc2c7e2dc72a85ded8033601f4fbd0c5ba2e058096b9292435de812bc8823b86ed32074 WHIRLPOOL 1d987b3086bb668f411cf6b4a3e63bbf918f3b2bdb97bcd6d72570a239a4611c4d56ef20a46534c70b4d037578ef09c0bf5e23f8f02569f3b1253e4802a7a7eb +-----BEGIN PGP SIGNATURE----- + +iQIcBAEBCAAGBQJVqgYHAAoJEGSje+quGaTosPQQAL80nEOX8jnjP170EydWVPDp +zE/8St+udnIR1Y3KGi0DGoNYJrL+Fr1NgKutWa8tzJwJjv+nPn08r8WbeDIxFM6W +cqurozyJSO5j1FjGRfZEXPm9LqgjNk00iw/R5wjzIoyNQiK0UziUktj3X+3it8Ns +Poa3kRO8dXk20T6YJhMvEg6KTV5ln0gXvWBLCd3g6PLcOPs52pOOrlE7AwzRGOf6 +5yYDARzCgXmQ61yD6vALeOC9PsDrxSOaPdZ3QfbwLmBmftQBwWMDtCRoc3Cmg1uJ +pvUNibeDG4MMRvipprN5eH8HgSKXzCUrQ7ttfqjTNoHyoSfSNDH3e2bPsKN2WTF0 +/tgVTqOEAfxfdbAkJUNr0QYFefgGgrRWVdqmGnrdMk2op+mZJK8Wxn1Z7h357tPO +SIdqjVxpnc4cU/7OoeHulZkaIhOgC1ydNbzZW3erffqNgT3jlPRrALjDmIEXlpHQ +DIxS2M7INPeD6AgcoyoolyBriszMR8vXFQf0dLgnT/7uMJet6F8CHz31oBPNksMk +izW+0QygqXAy1wFiMWYMFOd9+/3gt/Tj0fKaHO5YsYZOusY5BDCqA1dRbU8EUMjJ +KKV7wZ7H4IqPfwuZ/BrTcgrWayzxGmu2iRjsaQ4Fwti1jQl6KWH1sVh2r+7h0QqE +N/L6okMdsM/PCUJVN/Qq +=MB+l +-----END PGP SIGNATURE----- diff --git a/app-admin/puppetdb/files/puppetdb.initd b/app-admin/puppetdb/files/puppetdb.initd new file mode 100644 index 000000000000..a48453353bdf --- /dev/null +++ b/app-admin/puppetdb/files/puppetdb.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/puppetdb/files/puppetdb.initd,v 1.1 2015/07/18 07:52:38 prometheanfire Exp $ + +extra_commands="checkconfig" + +LOGDIR="/var/log/puppetlabs/puppetdb" +RUNDIR="/run/puppetlabs/puppetdb" + +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}/puppetdb.jar' clojure.main -m puppetlabs.puppetdb.main \ + --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" + + EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError \ + -XX:HeapDumpPath=/var/log/puppetlabs/puppetdb -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" +} + +start() { + checkconfig || return 1 + + daemon --user $USER --pidfile $PIDFILE "$EXEC >> /var/log/puppetlabs/puppetdb/puppetdb-daemon.log 2>&1 &" + + ebegin "Starting PuppetDB" + start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ + --exec ${EXEC} --pidfile "${RUNDIR}/puppetdb.pid" \ + -- >> "${LOGDIR}/puppetdb-daemon.log" + local retval=$? + if [ $retval -ne 0 ]; then + ewarn "Error starting puppetdb." + fi + eend $retval +} + +stop() { + ebegin "Stopping PuppetDB" + start-stop-daemon --stop --pidfile "${RUNDIR}/puppetdb.pid" + eend $? +} diff --git a/app-admin/puppetdb/metadata.xml b/app-admin/puppetdb/metadata.xml new file mode 100644 index 000000000000..d238fa9a06d9 --- /dev/null +++ b/app-admin/puppetdb/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <longdescription lang="en"> + PuppetDB collects data generated by Puppet. It enables advanced Puppet features like exported resources, and can be the foundation for other applications that use Puppet’s data. + </longdescription> +</pkgmetadata> diff --git a/app-admin/puppetdb/puppetdb-3.0.1.ebuild b/app-admin/puppetdb/puppetdb-3.0.1.ebuild new file mode 100644 index 000000000000..0902da152dc3 --- /dev/null +++ b/app-admin/puppetdb/puppetdb-3.0.1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/puppetdb/puppetdb-3.0.1.ebuild,v 1.1 2015/07/18 07:52:37 prometheanfire Exp $ + +EAPI=5 + +inherit multilib systemd user + +DESCRIPTION="PuppetDB collects data generated by Puppet." +HOMEPAGE="http://docs.puppetlabs.com/puppetdb/" +SRC_URI="https://downloads.puppetlabs.com/puppetdb/puppetdb-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +# will need the same keywords as puppet +KEYWORDS="~amd64 ~x86" + +RDEPEND+="virtual/jdk:1.7" +DEPEND+="" + +initdir=/etc/init.d +unitdir=/usr/lib/systemd/system +tmpfilesdir=/usr/lib/tmpfiles.d +datadir=/usr/share +real_name=puppetdb +projdatadir=/usr/share/puppetdb +confdir=/etc +projconfdir=/etc/puppetlabs/puppetdb +bindir=/opt/puppetlabs/server/apps/puppetdb/bin +uxbindir=/opt/puppetlabs/bin +symbindir=/opt/puppetlabs/server/bin +app_prefix=/opt/puppetlabs/server/apps/puppetdb +app_data=/opt/puppetlabs/server/data/puppetdb + +app_logdir=/var/log/puppetlabs/puppetdb +rundir=/run/puppetlabs/puppetdb + +pkg_setup() { + enewgroup puppetdb + enewuser puppetdb -1 -1 /opt/puppetlabs/server/data/puppetdb "puppetdb" +} + +src_prepare() { + sed -i 's/sysconfig/conf\.d/g' ext/redhat/puppetdb.service || die + sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetdb || die + sed -i 's/sysconfig/conf\.d/g' install.sh || die +} + +src_compile() { + einfo "not compiling" +} + +src_install() { + dodir /opt/puppetlabs/server/data/puppetdb + insinto /opt/puppetlabs/server/apps/puppetdb + insopts -m0744 + doins ext/ezbake-functions.sh + insopts -m0644 + doins ext/ezbake.manifest + doins puppetdb.jar + insinto /etc/puppetlabs/puppetdb + doins ext/config/logback.xml + doins ext/config/bootstrap.cfg + doins ext/config/request-logging.xml + insinto /etc/puppetlabs/puppetdb/conf.d + doins ext/config/conf.d/jetty.ini + doins ext/config/conf.d/repl.ini + doins ext/config/conf.d/database.ini + doins ext/config/conf.d/config.ini + insopts -m0755 + insinto /opt/puppetlabs/server/apps/puppetdb/scripts + doins install.sh + insinto /opt/puppetlabs/server/apps/puppetdb/cli/apps + doins ext/cli/foreground + doins ext/cli/ssl-setup + doins ext/cli/export + doins ext/cli/config-migration + doins ext/cli/foreground + doins ext/cli/anonymize + doins ext/cli/import + insinto opt/puppetlabs/server/apps/puppetdb/bin + doins ext/bin/puppetdb + insopts -m0644 + dodir /opt/puppetlabs/server/bin + dosym ../apps/puppetdb/bin/puppetdb /opt/puppetlabs/server/bin/puppetdb + dodir /opt/puppetlabs/bin + dosym ../server/apps/puppetdb/bin/puppetdb /opt/puppetlabs/bin/puppetdb + # init type tasks + newconfd ext/default puppetdb + systemd_dounit ext/redhat/puppetdb.service + systemd_newtmpfilesd ext/puppetdb.tmpfiles.conf puppetdb.conf + newinitd "${FILESDIR}/puppetdb.initd" puppetdb + # misc + insinto /etc/logrotate.d + newins ext/puppetdb.logrotate.conf puppetdb + fowners -R puppetdb:puppetdb /opt/puppetlabs/server/data/puppetdb + fperms -R 770 /opt/puppetlabs/server/data/puppetdb +} + +pkg_postinst() { + elog "to install please run '/opt/puppetlabs/server/bin/puppetdb ssl-setup'" + elog + elog "to upgrade please run '/opt/puppetlabs/server/bin/puppetdb config-migration'" +} |