Salt Cloud - Install¶
Note
I followed the instructions in
Salt-Cloud to Spin Up DigitalOcean Resources which uses
salt-cloud
on the master
. This worked very nicely.
See Digital Ocean for instructions.
Warning
The following notes are the old instructions.
Important
These instructions should install version 2015.8.3 (Beryllium)
Install dependencies:
sudo apt-get install build-essential python-m2crypto sshpass python-software-properties
If the instructions above do not install version 2015.8.3, then try this:
sudo -i
wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
Add the following line to /etc/apt/sources.list
:
# vim /etc/apt/sources.list
deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main
sudo apt-get update
sudo apt-get install salt-cloud
Configuration files¶
Warning
The configuration files are kept securely and should never be copied to a public repository e.g. DropBox, GitHub or BitBucket
Note
Replace patrick
with your User Name (Checklist)
Note
Replace yb
with your Company Abbreviation (Checklist)
sudo -i
cd /etc/salt/cloud.profiles.d/
sudo ln -s /home/patrick/repo/dev/module/deploy/salt-cloud/yb.profiles.conf .
cd /etc/salt/cloud.providers.d/
sudo ln -s /home/patrick/repo/dev/module/deploy/salt-cloud/yb.providers.conf .
Create a Server¶
You can now follow the appropriate instructions for creating your own cloud server: