Skip to content

Commit

Permalink
Merge pull request saltstack#32 from lexual/develop
Browse files Browse the repository at this point in the history
write /etc/salt before installing salt-minion on Ubuntu deploy.
  • Loading branch information
thatch45 committed Sep 11, 2012
2 parents 0fe61a2 + 826fca3 commit 13c4142
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions saltcloud/deploy/Ubuntu.sh
@@ -1,12 +1,12 @@
#!/bin/bash

mkdir -p /etc/salt/pki
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
echo "{{ minion }}" > /etc/salt/minion

apt-get update
apt-get install -y python-software-properties
echo | add-apt-repository ppa:saltstack/salt
apt-get update
apt-get install -y salt-minion
mkdir -p /etc/salt/pki
echo '{{ vm['priv_key'] }}' > /etc/salt/pki/minion.pem
echo '{{ vm['pub_key'] }}' > /etc/salt/pki/minion.pub
echo "{{ minion }}" > /etc/salt/minion
service salt-minion restart

0 comments on commit 13c4142

Please sign in to comment.