Fix test-vm bootstrapping

This commit is contained in:
Johannes Meyer 2014-02-05 13:20:50 +01:00
parent 984ffb7421
commit 6bc1f3cf8d
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ SSH="ssh $SSH_OPTIONS $user@$host"
$SSH "mkdir /vagrant"
scp -qr ../../.vagrant-puppet $user@$host:/vagrant
$SSH "groupadd vagrant"
$SSH "useradd vagrant"
$SSH "su -c 'mkdir -p -m 0700 ~/.ssh' vagrant"
$SSH "su -c \"echo '`cat ~/.ssh/id_rsa.pub`' >> ~/.ssh/authorized_keys\" vagrant"
$SSH "echo '10.10.27.1 packages.icinga.org' >> /etc/hosts"
$SSH "puppet apply --modulepath=/vagrant/.vagrant-puppet/modules" \
" /vagrant/.vagrant-puppet/manifests/default.pp"