summaryrefslogtreecommitdiff
path: root/vagrant
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-12-23 17:09:10 +0100
committervarac <varacanero@zeromail.org>2015-12-23 17:09:10 +0100
commit04290d038eaf02d666c406d489c2442aa9b1e50b (patch)
treea78e03aa4438895c1345d5b6cce50e90b33c1b38 /vagrant
parent14b40366ba6ce03af9b624d27e626bb4ef5b342b (diff)
Vagrant: use couchdb, create .ssh dir
Diffstat (limited to 'vagrant')
-rwxr-xr-xvagrant/configure-leap.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/configure-leap.sh b/vagrant/configure-leap.sh
index 332bdddf..5915ec94 100755
--- a/vagrant/configure-leap.sh
+++ b/vagrant/configure-leap.sh
@@ -27,6 +27,7 @@ $SUDO echo -e '\n@log = "/var/log/leap/deploy.log"' >> Leapfile
if [ ! -e /home/${USER}/.ssh/id_rsa ]; then
$SUDO ssh-keygen -f /home/${USER}/.ssh/id_rsa -P ''
+ mkdir /root/.ssh
cat /home/${USER}/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
fi
@@ -37,7 +38,7 @@ chown ${USER}:${USER} ${PROVIDERDIR}/files/nodes/${NODE}/${NODE}_ssh.pub
$LEAP $OPTS add-user --self
$LEAP $OPTS cert ca
$LEAP $OPTS cert csr
-$LEAP $OPTS node add $NODE ip_address:"$(facter ipaddress)" services:"$services" tags:production
+$LEAP $OPTS node add $NODE ip_address:"$(facter ipaddress)" services:"$services" couch.master:true couch.pwhash_alg:pbkdf2 tags:production
echo '{ "webapp": { "admins": ["testadmin"] } }' > services/webapp.json
$LEAP $OPTS compile