forked from kubenow/KubeNow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marco Capuccini
committed
Jan 13, 2017
1 parent
f3f1861
commit 5a58b71
Showing
7 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,8 @@ install: | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | | ||
sudo apt-key add - | ||
- sudo apt-get update && sudo apt-get install google-cloud-sdk | ||
# Install AWS deps | ||
- sudo pip install awscli | ||
|
||
# TEST ENV LOGIN | ||
# Source CityCloud RC file | ||
|
@@ -76,7 +78,10 @@ install: | |
- > | ||
gcloud auth login [email protected] | ||
--project phenomenal-1145 -q | ||
# AWS login | ||
- source test/secrets-kubenow/host_cloud/aws.sh | ||
|
||
script: | ||
- ansible-playbook -e "host_cloud=openstack" test/integration-test.yml | ||
- ansible-playbook -e "host_cloud=gce" test/integration-test.yml | ||
- ansible-playbook -e "host_cloud=aws" test/integration-test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- name: "get AMI id" | ||
shell: > | ||
aws ec2 describe-images --owners self | ||
--query 'Images[*].{ID:ImageId}' | ||
--filters "Name=name,Values=kubenow-{{current_version}}" | | ||
grep -Eo "(?i)\\b[a-z]+-[a-z0-9]+" | ||
register: get_ami_id | ||
|
||
- set_fact: | ||
aws_ami_id: "{{get_ami_id.stdout | replace('\n','')}}" | ||
|
||
- name: "get AMI snapshot id" | ||
shell: > | ||
aws ec2 describe-images --owners self | ||
--query 'Images[*].BlockDeviceMappings[*].Ebs.SnapshotId' | ||
--filters "Name=name,Values=kubenow-{{current_version}}" | | ||
grep -Eo "(?i)\\b[a-z]+-[a-z0-9]+" | ||
register: get_snap_id | ||
|
||
- set_fact: | ||
aws_snap_id: "{{get_snap_id.stdout | replace('\n','')}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule secrets-kubenow
updated
from 2850d8 to eaba85