summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/backports7
-rwxr-xr-xshare/hydractl/install-puppet5
-rwxr-xr-xshare/hydractl/puppet-reset5
-rwxr-xr-xshare/hydractl/puppet-reset-stored2
-rwxr-xr-xshare/hydractl/puppet-trigger3
-rwxr-xr-xshare/hydractl/requirements2
-rwxr-xr-xshare/hydractl/upgrade3
7 files changed, 27 insertions, 0 deletions
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