Taken from Leechseed and stripped down for use with salt-cloud. Intended to launch a salt-master equipped with everything salt-cloud needs to deploy the rest of the environment.
Setting the environment variables in your keys.sh file will give miniseed what it needs to authenticate to AWS and launch your environment.
$ python -m seed -a package-deploy-keys -p aws_master -x /path/to/place/export
You're going to need these items to deploy the salt-cloud master:
AWS_ACCESS_KEY_ID=''
AWS_SECRET_ACCESS_KEY=''
BITBUCKET_ID=''
BITBUCKET_PASSWORD=''
ROUTE53_KEY=''
ROUTE53_SECRET=''
R53_MIN_KEY=''
R53_MIN_SECRET=''
SALT_CLOUD_KEY=''
GIT_PKEY=''
DNS_DOMAIN='dev.next.opinionlab.com'
export AWS_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY
export ROUTE53_KEY
export ROUTE53_SECRET
export SALT_CLOUD_KEY
export GIT_PKEY
export BITBUCKET_ID
export BITBUCKET_PASSWORD
export DNS_DOMAIN
# Fedora
#export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt
#OSX: run the bash script found here to install the ca-bundle:
#https://gist.github.com/1stvamp/2158128
#export SSL_CERT_FILE=/usr/share/curl/ca-bundle.crt
With your map_file, cloud, and cloud.profile configured for your deployment, run the following: