mirror of https://github.com/Icinga/icinga2.git
parent
a443e4a4fc
commit
6eb169b215
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$1" != "--force" ]; then
|
if [ "$1" != "--force" ]; then
|
||||||
echo 'This script is NOT intended to be ran by an individual user.' \
|
echo 'This script is NOT intended to be ran by an individual user.' \
|
||||||
'If you are not human, pass "--force" as the first option to it!'
|
'If you are not human, pass "--force" as the first option to it!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -lt 3 ]; then
|
if [ $# -lt 3 ]; then
|
||||||
|
@ -18,12 +18,12 @@ host=$3
|
||||||
SSH_OPTIONS="-o PasswordAuthentication=no"
|
SSH_OPTIONS="-o PasswordAuthentication=no"
|
||||||
SSH="ssh $SSH_OPTIONS $user@$host"
|
SSH="ssh $SSH_OPTIONS $user@$host"
|
||||||
|
|
||||||
$SSH "mkdir -p /tmp/icinga2/puppet-stuff"
|
$SSH "mkdir /vagrant"
|
||||||
scp -r ../../.vagrant-puppet $user@$host:/tmp/icinga2/puppet-stuff
|
scp -qr ../../.vagrant-puppet $user@$host:/vagrant
|
||||||
|
|
||||||
$SSH "groupadd vagrant"
|
$SSH "groupadd vagrant"
|
||||||
$SSH "echo '10.10.27.1 packages.icinga.org' >> /etc/hosts"
|
$SSH "echo '10.10.27.1 packages.icinga.org' >> /etc/hosts"
|
||||||
$SSH "puppet apply --modulepath=/tmp/icinga2/puppet-stuff/modules" \
|
$SSH "puppet apply --modulepath=/vagrant/.vagrant-puppet/modules" \
|
||||||
" /tmp/icinga2/puppet-stuff/manifests/default.pp"
|
" /vagrant/.vagrant-puppet/manifests/default.pp"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue