From fec2db557dcad1f52a1ffa8b612629a0b8b4c054 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 22 Sep 2010 16:29:40 -0300 Subject: App skeleton --- share/hydractl/backports | 7 +++++++ share/hydractl/install-puppet | 5 +++++ share/hydractl/puppet-reset | 5 +++++ share/hydractl/puppet-reset-stored | 2 ++ share/hydractl/puppet-trigger | 3 +++ share/hydractl/requirements | 2 ++ share/hydractl/upgrade | 3 +++ 7 files changed, 27 insertions(+) create mode 100755 share/hydractl/backports create mode 100755 share/hydractl/install-puppet create mode 100755 share/hydractl/puppet-reset create mode 100755 share/hydractl/puppet-reset-stored create mode 100755 share/hydractl/puppet-trigger create mode 100755 share/hydractl/requirements create mode 100755 share/hydractl/upgrade (limited to 'share/hydractl') diff --git a/share/hydractl/backports b/share/hydractl/backports new file mode 100755 index 0000000..dbf9ec1 --- /dev/null +++ b/share/hydractl/backports @@ -0,0 +1,7 @@ +#!/bin/bash + +# TODO: check debian version and if backports is enabled +# TODO: check backports key signature +echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" >> /etc/apt/sources.list +apt-get update ; apt-get install debian-backports-keyring ; apt-get update +apt-get -t lenny-backports install puppet puppetmaster diff --git a/share/hydractl/install-puppet b/share/hydractl/install-puppet new file mode 100755 index 0000000..11a0048 --- /dev/null +++ b/share/hydractl/install-puppet @@ -0,0 +1,5 @@ +#!/bin/bash + +apt-get update +# TODO: use option '-t lenny-backports' if installing from backports +apt-get install puppet puppetmaster diff --git a/share/hydractl/puppet-reset b/share/hydractl/puppet-reset new file mode 100755 index 0000000..04d02b1 --- /dev/null +++ b/share/hydractl/puppet-reset @@ -0,0 +1,5 @@ +#!/bin/bash + +/etc/init.d/puppet stop +rm -rf /var/lib/puppet/ssl +puppetd --server puppet.`facter domain` --waitforcert 60 --test --ca_port 8141 diff --git a/share/hydractl/puppet-reset-stored b/share/hydractl/puppet-reset-stored new file mode 100755 index 0000000..000933b --- /dev/null +++ b/share/hydractl/puppet-reset-stored @@ -0,0 +1,2 @@ +#!/bin/bash +# TODO: reset stored configs diff --git a/share/hydractl/puppet-trigger b/share/hydractl/puppet-trigger new file mode 100755 index 0000000..2326d37 --- /dev/null +++ b/share/hydractl/puppet-trigger @@ -0,0 +1,3 @@ +#!/bin/bash + +kill -USR1 `cat /var/run/puppet/puppetd.pid` diff --git a/share/hydractl/requirements b/share/hydractl/requirements new file mode 100755 index 0000000..dc96894 --- /dev/null +++ b/share/hydractl/requirements @@ -0,0 +1,2 @@ +#!/bin/bash +# TODO: get all needed requirements diff --git a/share/hydractl/upgrade b/share/hydractl/upgrade new file mode 100755 index 0000000..f129b79 --- /dev/null +++ b/share/hydractl/upgrade @@ -0,0 +1,3 @@ +#!/bin/bash + +aptitude safe-upgrade -y -- cgit v1.2.3