summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/deploy13
-rwxr-xr-xshare/hydra/import-key13
-rwxr-xr-xshare/hydra/mass13
-rwxr-xr-xshare/hydra/module-update13
-rwxr-xr-xshare/hydra/module-verify13
-rwxr-xr-xshare/hydra/newkeys13
-rwxr-xr-xshare/hydra/nodes13
-rwxr-xr-xshare/hydra/puppet-finger13
-rwxr-xr-xshare/hydra/register13
-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
30 files changed, 406 insertions, 3 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 2c7ec31..190028c 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -2,6 +2,19 @@
#
# Deploy hydra suite on multiple nodes.
#
+# 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/hydra/import-key b/share/hydra/import-key
index 3cddaef..5658728 100755
--- a/share/hydra/import-key
+++ b/share/hydra/import-key
@@ -2,6 +2,19 @@
#
# Import a key into nodes.
#
+# 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/hydra/mass b/share/hydra/mass
index 9bd83f9..7afe598 100755
--- a/share/hydra/mass
+++ b/share/hydra/mass
@@ -2,6 +2,19 @@
#
# Execute commands on multiple nodes.
#
+# 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/>.
# Issue commands with pssh
function mass_pssh {
diff --git a/share/hydra/module-update b/share/hydra/module-update
index 1b0563e..8b6c741 100755
--- a/share/hydra/module-update
+++ b/share/hydra/module-update
@@ -2,6 +2,19 @@
#
# Update a puppet module
#
+# 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/hydra/module-verify b/share/hydra/module-verify
index 2d0587b..cdc6b29 100755
--- a/share/hydra/module-verify
+++ b/share/hydra/module-verify
@@ -2,6 +2,19 @@
#
# Verify a puppet module
#
+# 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/hydra/newkeys b/share/hydra/newkeys
index 63d8254..b697208 100755
--- a/share/hydra/newkeys
+++ b/share/hydra/newkeys
@@ -2,6 +2,19 @@
#
# Create keys for new nodes.
#
+# 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/>.
function hydra_newkeys {
# Generates ssh and gpg keys for new nodes
diff --git a/share/hydra/nodes b/share/hydra/nodes
index 84eb7f0..455b00b 100755
--- a/share/hydra/nodes
+++ b/share/hydra/nodes
@@ -2,6 +2,19 @@
#
# Node tool.
#
+# 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 a list of puppet node files
function hydra_node_files {
diff --git a/share/hydra/puppet-finger b/share/hydra/puppet-finger
index 0381535..a96800b 100755
--- a/share/hydra/puppet-finger
+++ b/share/hydra/puppet-finger
@@ -2,6 +2,19 @@
#
# Check puppet fingerprints, hydra 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/hydra/register b/share/hydra/register
index 40a1390..48b027e 100755
--- a/share/hydra/register
+++ b/share/hydra/register
@@ -2,6 +2,19 @@
#
# Register an existing hydra
#
+# 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/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