Permalink
Browse files

Remove unneeded puppet3 dir

  • Loading branch information...
1 parent d7ddfaa commit a7d2ba238cd06e40decee16cc0766b38aab234ce @GregSutcliffe committed Nov 19, 2012
Showing with 0 additions and 309 deletions.
  1. +0 −103 puppet3/PKGBUILD
  2. +0 −12 puppet3/fileserver.conf
  3. +0 −26 puppet3/hiera.yaml
  4. +0 −45 puppet3/puppet
  5. +0 −32 puppet3/puppet.conf
  6. +0 −46 puppet3/puppet.install
  7. +0 −45 puppet3/puppetmaster
View
@@ -1,103 +0,0 @@
-# Puppet: Installer: Arch
-# Maintainer : Greg Sutcliffe <puppet-aur (at) emeraldreverie (dot) org>
-# Contributor: Hyacinthe Cartiaux <hyacinthe (dot) cartiaux (at) free (dot) fr>
-# Contributor: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
-# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
-# Contributor: Miah Johnson <miah (at) chia-pet dot org>
-# Contributor: Dave Simons <miouhpi (at) Gmail (dot) com>
-# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com>
-
-# RC style, reserved for later use
-#pkgname=puppet3
-#_rc=8
-#_pkgver=3.0.0
-#pkgver=${_pkgver}_rc${_rc}
-
-pkgname=puppet3
-pkgver=3.0.1
-pkgrel=1
-_hieraver=1.1.1
-pkgdesc="A system for automating system administration tasks."
-arch=("any")
-url="http://puppetlabs.com/projects/puppet/"
-license=("APACHE")
-depends=("ruby" "ruby-shadow" "facter")
-backup=("etc/puppet/puppet.conf")
-options=(emptydirs)
-provides=("puppet")
-conflicts=("puppet")
-install="puppet.install"
-source=(http://puppetlabs.com/downloads/puppet/puppet-${pkgver//_/-}.tar.gz
- http://downloads.puppetlabs.com/hiera/hiera-puppet-1.0.0rc3.tar.gz
- http://downloads.puppetlabs.com/hiera/hiera-${_hieraver}.tar.gz
- http://downloads.puppetlabs.com/hiera/hiera-json-0.4.0.tgz
- fileserver.conf
- puppet
- puppet.conf
- puppetmaster
- hiera.yaml)
-md5sums=('2117e3a1964ac54fcd36d926eed3db94'
- '6829fb5735e179b90b0491971d9b46a8'
- '20f485d09d5ab39e6d4e4f27e0dd97af'
- '389be2d95502d41d26da330207a33db3'
- 'ffacd9bfb9c7656a3a345dbc5eb0e67a'
- '59dbf39e251bc4877e7604a5876c642d'
- 'a7d61d20e46b411eb50ad5279987584a'
- '4c507c580cb28d7a5adc9ea6b3626657'
- 'c2f380cdcffab3956fe9f6e261d6ea32')
-
-package() {
- cd $srcdir/puppet-${pkgver//_/-}
-
- # Install
- ruby ./install.rb \
- --destdir=$pkgdir \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --mandir=/usr/share/man
-
- # Hiera is essential for Puppet3
- install -d $pkgdir/usr/lib/ruby/site_ruby/1.9.1/lib/
- cp -r $srcdir/hiera-${_hieraver}/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
- cp -r $srcdir/hiera-json-0.4.0/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
- cp -r $srcdir/hiera-json-0.4.0/spec* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/hiera/backend/
- cp -r $srcdir/hiera-puppet-1.0.0rc3/lib/* $pkgdir/usr/lib/ruby/site_ruby/1.9.1/
- install -d $pkgdir/usr/bin/
- install -Dp -m0755 $srcdir/hiera-${_hieraver}/bin/* $pkgdir/usr/bin/
- install -Dp -m0755 $srcdir/hiera-puppet-1.0.0rc3/bin/* $pkgdir/usr/bin/
-
- # Set up vim and emacs
- install -Dp -m0644 ext/vim/ftdetect/puppet.vim $pkgdir/usr/share/vim/vimfiles/ftdetect/puppet.vim
- install -Dp -m0644 ext/vim/syntax/puppet.vim $pkgdir/usr/share/vim/vimfiles/syntax/puppet.vim
- install -Dp -m0644 ext/emacs/puppet-mode.el $pkgdir/usr/share/emacs/site-lisp/puppet-mode.el
- install -Dp -m0644 ext/emacs/puppet-mode-init.el $pkgdir/usr/share/emacs/site-lisp/site-start.d/puppet-mode-init.el
-
- # Configuration and rc scripts
- install -d $pkgdir/etc/{puppet,rc.d}
- install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf
- install -m 644 $srcdir/fileserver.conf $pkgdir/etc/puppet/fileserver.conf
-
- # Setup tmpfiles.d config
- install -d $pkgdir/etc/tmpfiles.d
- echo "D /var/run/puppet 0755 puppet puppet -" > $pkgdir/etc/tmpfiles.d/puppet.conf
-
- # Configuration for hiera / symlink is there to use hiera within puppet.
- install -m 644 $srcdir/hiera.yaml $pkgdir/etc/
- ln -snf /etc/hiera.yaml ${pkgdir}/etc/puppet/hiera.yaml
-
- # Systemd files
- install -Dm 644 $srcdir/puppet-${pkgver//_/-}/ext/systemd/puppetagent.service $pkgdir/usr/lib/systemd/system/puppetagent.service
- install -Dm 644 $srcdir/puppet-${pkgver//_/-}/ext/systemd/puppetmaster.service $pkgdir/usr/lib/systemd/system/puppetmaster.service
-
- # Create puppet homedir and hieradir
- install -d $pkgdir/var/lib/puppet
- install -d $pkgdir/var/lib/hiera
-
- install -D $srcdir/puppet $pkgdir/etc/rc.d/puppet
- install -D $srcdir/puppetmaster $pkgdir/etc/rc.d/puppetmaster
-
- # Copy the LICENSE file in the usual directory
- install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
- install -m 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-}
View
@@ -1,12 +0,0 @@
-# This file consists of arbitrarily named sections/modules
-# defining where files are served from and to whom
-
-# Define a section 'files'
-# Adapt the allow/deny settings to your needs. Order
-# for allow/deny does not matter, allow always takes precedence
-# over deny
-# [files]
-# path /var/lib/puppet/files
-# allow *.example.com
-# deny *.evil.example.com
-# allow 192.168.0.0/24
View
@@ -1,26 +0,0 @@
----
-:backend:
- - yaml
- - json
- - puppet
-
-:hierarchy:
- - defaults
- - global
-
-:yaml:
-# datadir is empty here, so hiera uses its defaults:
-# - /var/lib/hiera on *nix
-# - %CommonAppData%\PuppetLabs\hiera\var on Windows
-# When specifying a datadir, make sure the directory exists.
- :datadir:
-
-:json:
-# datadir is empty here, so hiera uses its defaults:
-# - /var/lib/hiera on *nix
-# - %CommonAppData%\PuppetLabs\hiera\var on Windows
-# When specifying a datadir, make sure the directory exists.
- :datadir:
-
-:puppet:
- :datasource: data
View
@@ -1,45 +0,0 @@
-#!/bin/bash
-DAEMON=$(type -p puppetd)
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[ -f /etc/conf.d/puppet ] && . /etc/conf.d/puppet
-
-PID=$(pidof -xo %PPID $DAEMON)
-case "$1" in
- start)
- stat_busy "Starting Puppet Daemon"
- if [ -z "$PID" ]; then
- [ -f /var/run/puppet.pid ] && rm -f /var/run/puppet.pid
- $DAEMON $PUPPETD_ARGS
- fi
- if [ ! -z "$PID" -o $? -gt 0 ]; then
- stat_fail
- else
- PID=$(pidof -xo %PPID $DAEMON)
- echo $PID > /var/run/puppet.pid
- add_daemon puppet
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Puppet Daemon"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon puppet
- rm -f /var/run/puppet.pid
- stat_done
- fi
- ;;
- restart)
- $0 stop
- if [ ! -z $PID ]; then
- while ps -p $PID > /dev/null; do sleep 1; done
- fi
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
View
@@ -1,32 +0,0 @@
-[main]
- # The Puppet var directory
- # The default value is '/var/lib/puppet'
- vardir = /var/lib/puppet
-
- # The Puppet log directory.
- # The default value is '$vardir/log'.
- logdir = /var/log/puppet
-
- # Where Puppet PID files are kept.
- # The default value is '$vardir/run'.
- rundir = /var/run/puppet
-
- # Where SSL certificates are kept.
- # The default value is '$confdir/ssl'.
- pluginsync=true
-
-
-[agent]
- # The file in which puppetd stores a list of the classes
- # associated with the retrieved configuratiion. Can be loaded in
- # the separate ``puppet`` executable using the ``--loadclasses``
- # option.
- # The default value is '$confdir/classes.txt'.
- classfile = $vardir/classes.txt
-
- # Where puppetd caches the local configuration. An
- # extension indicating the cache format is added automatically.
- # The default value is '$confdir/localconfig'.
- localconfig = $vardir/localconfig
-
-#[master]
View
@@ -1,46 +0,0 @@
-# Puppet: Installer: Arch
-# Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
-# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
-# Contributor: Miah Johnson <Miah (at) chia-pet dot org>
-
-pre_install() {
- getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null
- getent passwd puppet &>/dev/null || useradd -r -u 52 -g puppet -d /var/lib/puppet -s /sbin/nologin -c "Puppet" puppet &>/dev/null || :
-}
-
-pre_upgrade() {
- pre_install
- usermod -d /var/lib/puppet puppet &>/dev/null || :
-}
-
-post_install() {
- :
-}
-
-pre_remove() {
-if [ -f /var/run/puppetmasterd.pid ]; then
- PIDOF=$(pidof -xo %PPID puppetmasterd)
- PIDFILE=$(cat /var/run/puppetmasterd.pid)
- if [ $PIDOF -eq $PIDFILE ]; then
- /etc/rc.d/puppetmaster stop
- fi
-fi
-
-if [ -f /var/run/puppetd.pid ]; then
- PIDOF=$(pidof -xo %PPID puppetd)
- PIDFILE=$(cat /var/run/puppetd.pid)
- if [ $PIDOF -eq $PIDFILE ]; then
- /etc/rc.d/puppet stop
- fi
-fi
-}
-
-post_remove() {
- # Remove user and group
- userdel puppet
-}
-
-op=$1
-shift
-
-$op "$@"
View
@@ -1,45 +0,0 @@
-#!/bin/bash
-DAEMON=$(type -p puppetmasterd)
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-[ -f /etc/conf.d/puppetmaster ] && . /etc/conf.d/puppetmaster
-
-PID=$(pidof -xo %PPID $DAEMON)
-case "$1" in
- start)
- stat_busy "Starting Puppet Master Daemon"
- if [ -z "$PID" ]; then
- [ -f /var/run/puppetmaster.pid ] && rm -f /var/run/puppetmaster.pid
- $DAEMON $PUPPETMASTER_ARGS
- fi
- if [ ! -z "$PID" -o $? -gt 0 ]; then
- stat_fail
- else
- PID=$(pidof -xo %PPID $DAEMON)
- echo $PID > /var/run/puppetmaster.pid
- add_daemon puppetmaster
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Puppet Master Daemon"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon puppetmaster
- rm -f /var/run/puppetmaster.pid
- stat_done
- fi
- ;;
- restart)
- $0 stop
- if [ ! -z $PID ]; then
- while ps -p $PID > /dev/null; do sleep 1; done
- fi
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac

0 comments on commit a7d2ba2

Please sign in to comment.