summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-22 16:29:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-22 16:29:40 -0300
commitfec2db557dcad1f52a1ffa8b612629a0b8b4c054 (patch)
tree5e1305477007f7720027fa5974824937aa4ffe63 /share
parent9d4d507a6c86412f1815efc1e9345f37f0956465 (diff)
downloadhydra-fec2db557dcad1f52a1ffa8b612629a0b8b4c054.tar.gz
hydra-fec2db557dcad1f52a1ffa8b612629a0b8b4c054.tar.bz2
App skeleton
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/init12
-rwxr-xr-xshare/hydra/register3
-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
9 files changed, 42 insertions, 0 deletions
diff --git a/share/hydra/init b/share/hydra/init
new file mode 100755
index 0000000..f1b4afe
--- /dev/null
+++ b/share/hydra/init
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+hydra backports
+hydra install_puppet
+
+mkdir -p /etc/puppet/modules
+git clone git://git.sarava.org/puppet-bootstrap /etc/puppet/modules/bootstrap
+
+# TODO: edit /etc/puppet/modules/bootstrap/manifests/site.pp to suit your needs.
+
+puppetd --no-daemonize --debug --verbose --onetime /etc/puppet/modules/bootstrap/manifests/init.pp
+puppetd --no-daemonize --debug --verbose
diff --git a/share/hydra/register b/share/hydra/register
new file mode 100755
index 0000000..5364f58
--- /dev/null
+++ b/share/hydra/register
@@ -0,0 +1,3 @@
+#!/bin/bash
+# Register an existing hydra
+# TODO
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