Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Puppet 3.1.0.rc2 #10

Open
wants to merge 6 commits into from

2 participants

@aboe76

No description provided.

@GregSutcliffe

Awesome, thanks! I'm about to head to Puppet Camp Ghent, but I'll get this merged/tested/uploaded as soon as I can.

@aboe76
aboe76 and others added some commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 10, 2012
Commits on Jan 11, 2013
  1. @aboe76

    Updated facter to 1.6.17

    aboe76 authored committed
    Updated puppet to 3.0.2
    Updated ruby-hiera to 1.1.2
Commits on Jan 30, 2013
  1. @aboe76

    updated to 3.1.0.rc2

    aboe76 authored
Commits on Feb 9, 2013
  1. @aboe76

    Merge remote-tracking branch 'upstream/master'

    aboe76 authored
    Conflicts:
    	foreman-proxy/PKGBUILD
    	puppet/PKGBUILD
Commits on Mar 4, 2013
  1. @aboe76

    Add armv6h to ruby-shadow

    authored aboe76 committed
This page is out of date. Refresh to see the latest.
View
46 foreman/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
+
+pkgname=foreman
+pkgver=1.1
+pkgrel=1
+pkgdesc="Infrastruce management app built on Ruby-on_rails. Integrates with Puppet for complete lifecycle management or real or virtual servers"
+arch=('any')
+url="http://theforeman.org"
+license=('GPL3')
+depends=('ruby' 'ruby-bundler')
+conflicts=('foreman-git')
+backup=("etc/foreman/settings.yaml")
+options=(emptydirs)
+install="foreman.install"
+source=(https://github.com/theforeman/foreman/archive/${pkgver}.tar.gz
+ foreman.systemd
+ foreman.tmpfiles.conf)
+noextract=()
+md5sums=('defdfd2daec51abca4aee4ff6c68199c'
+ 'c99762a8f6a0594965f54dcab5cf726a'
+ 'f6d26c35bf3b9a7c71105e72053785a1')
+
+package() {
+ cd $srcdir/foreman-${pkgver}
+
+ # Main codebase
+ install -d -m0755 $pkgdir/usr/share/foreman/
+ cp -r ./ $pkgdir/usr/share/foreman/
+
+ # Symlink config file to etc
+ install -Dp -m0644 config/settings.yaml.example $pkgdir/etc/foreman/settings.yaml
+ ln -sv /etc/foreman/settings.yaml $pkgdir/usr/share/foreman/config/settings.yaml
+ install -Dp -m0644 config/database.yaml.example $pkgdir/etc/foreman/database.yaml
+ ln -sv /etc/foreman/database.yaml $pkgdir/usr/share/foreman/config/database.yaml
+
+ # logdirs
+ install -d -m0755 $pkgdir/usr/share/foreman/logs
+ install -d -m0755 $pkgdir/var/log/foreman
+
+ # systemd
+ install -Dm 644 $srcdir/foreman.systemd $pkgdir/usr/lib/systemd/system/foreman.service
+ install -Dm 644 $srcdir/foreman.tmpfiles.conf $pkgdir/usr/lib/tmpfiles.d/foreman.conf
+
+}
+
+# vim:set ts=2 sw=2 et:
View
39 foreman/foreman.install
@@ -0,0 +1,39 @@
+# Foreman-proxy: Installer: Arch
+# Maintainer: Greg Sutcliffe <greg.sutcliffe@gmail.com>>
+
+pre_install() {
+ # Add the "foreman-proxy" user and group
+ getent group foreman-proxy &>/dev/null || groupadd -r foreman-proxy &>/dev/null
+ getent passwd foreman-proxy &>/dev/null || useradd -r -g foreman-proxy -d /usr/share/foreman-proxy -s /sbin/nologin -c "Foreman Proxy deamon user" foreman-proxy &>/dev/null || :
+}
+
+post_install() {
+ chown -R foreman-proxy:foreman-proxy /usr/share/foreman-proxy
+ chown -R foreman-proxy:foreman-proxy /var/log/foreman-proxy
+ /usr/bin/systemd-tmpfiles --create foreman-proxy.conf
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+}
+
+pre_upgrade() {
+ pre_install
+ usermod -d /usr/share/foreman-proxy foreman-proxy &>/dev/null || :
+}
+
+post_upgrade() {
+ chown -R foreman-proxy:foreman-proxy /usr/share/foreman-proxy
+ chown -R foreman-proxy:foreman-proxy /var/log/foreman-proxy
+}
+
+pre_remove() {
+ # Cleanup tmpfiles
+ rm -rf /usr/share/foreman-proxy/tmp
+ /usr/bin/systemctl --no-reload disable foreman-proxy.service >/dev/null 2>&1 || :
+ /usr/bin/systemctl stop foreman-proxy.service >/dev/null 2>&1 || :
+}
+
+post_remove() {
+ /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ # Remove user and group
+ groupdel foreman-proxy >/dev/null 2>&1
+ userdel foreman-proxy
+}
View
13 foreman/foreman.systemd
@@ -0,0 +1,13 @@
+[Unit]
+Description=Foreman Proxy
+Wants=basic.target
+After=basic.target network.target
+
+[Service]
+Type=forking
+User=foreman-proxy
+ExecStart=/usr/share/foreman-proxy/bin/smart-proxy
+PIDFile=/run/foreman-proxy/foreman-proxy.pid
+
+[Install]
+WantedBy=multi-user.target
View
1  foreman/foreman.tmpfiles.conf
@@ -0,0 +1 @@
+d /run/foreman-proxy 0755 foreman-proxy foreman-proxy -
View
4 ruby-shadow/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Thomas S Hatch <thatch45@gmail.com>
pkgname=ruby-shadow
pkgver=2.1.4
-pkgrel=5
+pkgrel=6
pkgdesc="Interface for shadow passwords for Ruby"
-arch=(i686 x86_64 arm)
+arch=(i686 x86_64 arm armv6h)
depends=('ruby')
license=('publicdomain')
url=('https://github.com/apalmblad/ruby-shadow.git')
Something went wrong with that request. Please try again.