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 11, 2017
1 parent
182a765
commit b5810f9
Showing
13 changed files
with
71 additions
and
97 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
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
--- | ||
- hosts: localhost | ||
connection: local | ||
gather_facts: False | ||
force_handlers: True | ||
vars: | ||
cf_zone: uservices.cloud | ||
pre_tasks: | ||
- name: get KubeNow version (git describe --tags) | ||
command: git describe --tags | ||
register: git_describe | ||
- set_fact: | ||
current_version: "v{{git_describe.stdout | replace('\n','') | replace('.', '')}}" | ||
roles: | ||
- test-packer | ||
- test-terraform | ||
- test-core |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,16 @@ | ||
- name: "render cloudflare configuration" | ||
template: | ||
args: | ||
src: "{{playbook_dir}}/secrets-kubenow/cloudflare/conf.yml.j2" | ||
dest: "{{playbook_dir}}/../playbooks/roles/cloudflare/vars/conf.yml" | ||
notify: "clean Cloudflare" | ||
|
||
- name: "run install-core.yml playbook" | ||
command: ansible-playbook playbooks/install-core.yml | ||
args: | ||
chdir: "{{playbook_dir}}/.." | ||
|
||
- name: "run infra-test.yml playbook" | ||
command: ansible-playbook playbooks/infra-test.yml | ||
args: | ||
chdir: "{{playbook_dir}}/.." |
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,16 @@ | ||
- name: "get packer image id (openstack)" | ||
listen: "delete image" | ||
shell: > | ||
glance image-list | | ||
grep 'kubenow-{{current_version}}' | | ||
awk '{print $2;}' | | ||
tr -d "\n" | ||
register: get_image_id | ||
when: host_cloud == "openstack" | ||
|
||
- name: "delete packer image (openstack)" | ||
listen: "delete image" | ||
command: glance image-delete {{get_image_id.stdout}} | ||
args: | ||
chdir: "{{playbook_dir}}/.." | ||
when: host_cloud == "openstack" |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
packer/build-{{host_cloud}}.json | ||
args: | ||
chdir: "{{playbook_dir}}/.." | ||
notify: "delete image" |
Submodule secrets-kubenow
updated
from de9df3 to dc5ce0