Name: training-books-ms
Owner: CloudBees
Description: null
Created: 2016-01-05 09:41:37.0
Updated: 2018-05-11 17:49:08.0
Pushed: 2017-08-21 19:02:34.0
Homepage: null
Size: 52990
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
nsible
pip install passlib
=$(python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())") # Use cb as password
rt INSTANCES=1
rt AWS_ACCESS_KEY_ID='[YOUR_ACCESS_KEY_ID]'
rt AWS_SECRET_ACCESS_KEY='[YOUR_SECRET_ACCESS_KEY]'
ort PATH_TO_PEM=~/.ssh/jenkins-training-key.pem
ort PATH_TO_PEM=~/.ssh/jenkins-docker-training.pem # PEM created through CB AWS console
rt PATH_TO_PEM=~/.ssh/jenkins.pem # CB PEM
"
dentials]
access_key_id = $AWS_ACCESS_KEY_ID
secret_access_key = $AWS_SECRET_ACCESS_KEY
/.boto
ansible-playbook aws.yml \
--private-key=$PATH_TO_PEM \
--extra-vars "hosts_group=ec2hosts password=$PASS instances=$INSTANCES preload=true"
ansible-playbook aws.yml \
--private-key=$PATH_TO_PEM \
-i ec2.py \
--limit tag_Name_jenkins_docker_training \
--extra-vars "hosts_group=tag_Name_jenkins_docker_training password=$PASS"
./ec2.py --list
ANCE_IP=[INSTANCE_IP]
ssh -i $PATH_TO_PEM ubuntu@$INSTANCE_IP