aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-05 10:13:03 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-05 10:13:03 -0200
commit127baf80fa9a2c9fb1216507faa816a2e1d4c101 (patch)
tree748929d5309d7da9503e4a0de9539ba84f681404 /share/hydractl
parent39ba666cb9c97ce984a6f99e3ab86bc7aec0eeda (diff)
downloadhydra-127baf80fa9a2c9fb1216507faa816a2e1d4c101.tar.gz
hydra-127baf80fa9a2c9fb1216507faa816a2e1d4c101.tar.bz2
Copyright info and minor fixes
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/backports13
-rwxr-xr-xshare/hydractl/backup-copy-site13
-rwxr-xr-xshare/hydractl/backup-copy-sites13
-rwxr-xr-xshare/hydractl/backup-restore13
-rwxr-xr-xshare/hydractl/backup-restore-gitosis13
-rwxr-xr-xshare/hydractl/backup-restore-site13
-rwxr-xr-xshare/hydractl/backup-restore-svn13
-rwxr-xr-xshare/hydractl/backup-site13
-rwxr-xr-xshare/hydractl/backup-sites13
-rwxr-xr-xshare/hydractl/init13
-rwxr-xr-xshare/hydractl/ms-mailkey18
-rwxr-xr-xshare/hydractl/provision13
-rwxr-xr-xshare/hydractl/puppet-finger13
-rwxr-xr-xshare/hydractl/puppet-install16
-rwxr-xr-xshare/hydractl/puppet-reset-agent13
-rwxr-xr-xshare/hydractl/puppet-reset-master13
-rwxr-xr-xshare/hydractl/puppet-reset-stored15
-rwxr-xr-xshare/hydractl/puppet-trigger16
-rwxr-xr-xshare/hydractl/remove-dep14
-rwxr-xr-xshare/hydractl/requirements15
-rwxr-xr-xshare/hydractl/upgrade16
21 files changed, 289 insertions, 3 deletions
diff --git a/share/hydractl/backports b/share/hydractl/backports
index 44437dd..1f0b91e 100755
--- a/share/hydractl/backports
+++ b/share/hydractl/backports
@@ -2,6 +2,19 @@
#
# Add backports to sources.list.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Get distro codename.
DISTRO="`lsb_release -cs`"
diff --git a/share/hydractl/backup-copy-site b/share/hydractl/backup-copy-site
index 8eccecd..b94ee84 100755
--- a/share/hydractl/backup-copy-site
+++ b/share/hydractl/backup-copy-site
@@ -2,6 +2,19 @@
#
# Copy a site backup between servers.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-copy-sites b/share/hydractl/backup-copy-sites
index 19b41d1..aebfcaf 100755
--- a/share/hydractl/backup-copy-sites
+++ b/share/hydractl/backup-copy-sites
@@ -2,6 +2,19 @@
#
# Copy multiple sites.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Basic parameters.
SERVER="$1"
diff --git a/share/hydractl/backup-restore b/share/hydractl/backup-restore
index 438d1a6..85a3d4f 100755
--- a/share/hydractl/backup-restore
+++ b/share/hydractl/backup-restore
@@ -2,6 +2,19 @@
#
# Backup restoration.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-restore-gitosis b/share/hydractl/backup-restore-gitosis
index 826dd6e..a10b95f 100755
--- a/share/hydractl/backup-restore-gitosis
+++ b/share/hydractl/backup-restore-gitosis
@@ -2,6 +2,19 @@
#
# Gitosis backup restoration.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index 55fec8e..8643a5c 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -2,6 +2,19 @@
#
# Restore a website from backup.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-restore-svn b/share/hydractl/backup-restore-svn
index 1529348..1425fdf 100755
--- a/share/hydractl/backup-restore-svn
+++ b/share/hydractl/backup-restore-svn
@@ -2,6 +2,19 @@
#
# Subversion backup restoration.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-site b/share/hydractl/backup-site
index 914e3e4..77bc023 100755
--- a/share/hydractl/backup-site
+++ b/share/hydractl/backup-site
@@ -2,6 +2,19 @@
#
# Backup a site.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/backup-sites b/share/hydractl/backup-sites
index 883566e..438564b 100755
--- a/share/hydractl/backup-sites
+++ b/share/hydractl/backup-sites
@@ -2,6 +2,19 @@
#
# Pack multiple websites.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
if [ -z "$1" ]; then
sites="`ls /var/sites`"
diff --git a/share/hydractl/init b/share/hydractl/init
index 3ce9a8b..cc14d32 100755
--- a/share/hydractl/init
+++ b/share/hydractl/init
@@ -2,6 +2,19 @@
#
# Bootstrap a new hydra using the current host as a starting point.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
hydractl puppet-install
diff --git a/share/hydractl/ms-mailkey b/share/hydractl/ms-mailkey
index d1323b7..a7b69f6 100755
--- a/share/hydractl/ms-mailkey
+++ b/share/hydractl/ms-mailkey
@@ -1,3 +1,19 @@
#!/bin/bash
-# Email monkeysphere key
+#
+# Email monkeysphere key.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+
/usr/bin/mail -s "monkeysphere host pgp key for $HOSTNAME" root < /var/lib/monkeysphere/host_keys.pub.pgp
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 09fa799..f12bb5a 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -2,6 +2,19 @@
#
# System installer.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/puppet-finger b/share/hydractl/puppet-finger
index cb84335..af83cc9 100755
--- a/share/hydractl/puppet-finger
+++ b/share/hydractl/puppet-finger
@@ -2,6 +2,19 @@
#
# Check puppet fingerprints, hydractl perspective.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/puppet-install b/share/hydractl/puppet-install
index 0d0e141..63027b0 100755
--- a/share/hydractl/puppet-install
+++ b/share/hydractl/puppet-install
@@ -1,4 +1,20 @@
#!/bin/bash
+#
+# Install puppet and puppetmaster.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
apt-get update
apt-get install puppet puppetmaster
diff --git a/share/hydractl/puppet-reset-agent b/share/hydractl/puppet-reset-agent
index eb7181e..1aff2d8 100755
--- a/share/hydractl/puppet-reset-agent
+++ b/share/hydractl/puppet-reset-agent
@@ -2,6 +2,19 @@
#
# Reset puppet SSL setup and register again.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
/etc/init.d/puppet stop
rm -rf /var/lib/puppet/ssl
diff --git a/share/hydractl/puppet-reset-master b/share/hydractl/puppet-reset-master
index 5a4386e..a1e0e5e 100755
--- a/share/hydractl/puppet-reset-master
+++ b/share/hydractl/puppet-reset-master
@@ -2,6 +2,19 @@
#
# Reset puppet master and start over again.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Stop services
/etc/init.d/puppet stop
diff --git a/share/hydractl/puppet-reset-stored b/share/hydractl/puppet-reset-stored
index 090917f..ec7cea7 100755
--- a/share/hydractl/puppet-reset-stored
+++ b/share/hydractl/puppet-reset-stored
@@ -1,7 +1,20 @@
#!/bin/bash
#
-# Reset puppet stored configs
+# Reset puppet stored configs.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/puppet-trigger b/share/hydractl/puppet-trigger
index cb399d1..1f964db 100755
--- a/share/hydractl/puppet-trigger
+++ b/share/hydractl/puppet-trigger
@@ -1,4 +1,20 @@
#!/bin/bash
+#
+# Triggers puppet agend execution.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
if [ -e '/var/run/puppet/agent.pid' ]; then
kill -USR1 `cat /var/run/puppet/agent.pid`
diff --git a/share/hydractl/remove-dep b/share/hydractl/remove-dep
index e38f452..f5f2537 100755
--- a/share/hydractl/remove-dep
+++ b/share/hydractl/remove-dep
@@ -6,6 +6,20 @@
# http://www.heirbaut.nl/2011/02/06/remove-build-dependencies-after-apt-get-build-dep/
# http://www.webupd8.org/2010/10/undo-apt-get-build-dep-remove-build.html
# http://mikebeach.org/2011/04/undo-apt-get-build-dep/
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
# Load.
source $APP_BASE/lib/hydra/functions || exit 1
diff --git a/share/hydractl/requirements b/share/hydractl/requirements
index dbfcf7f..ccebab8 100755
--- a/share/hydractl/requirements
+++ b/share/hydractl/requirements
@@ -2,8 +2,21 @@
#
# Get all needed requirements.
#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
-REQUIREMENTS="lsb_releas facter"
+REQUIREMENTS="lsb-release facter"
# Check for requirements.
for req in "$REQUIREMENTS"; do
diff --git a/share/hydractl/upgrade b/share/hydractl/upgrade
index f129b79..81c38ae 100755
--- a/share/hydractl/upgrade
+++ b/share/hydractl/upgrade
@@ -1,3 +1,19 @@
#!/bin/bash
+#
+# Run a system upgrade.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
aptitude safe-upgrade -y