Skip to content

Commit

Permalink
fix inventory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ant31 committed Feb 12, 2018
1 parent c187ae2 commit 7a20d69
Show file tree
Hide file tree
Showing 20 changed files with 351 additions and 528 deletions.
862 changes: 341 additions & 521 deletions .gitlab-ci.yml

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions tests/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
INVENTORY=$(PWD)/../inventory/sample/hosts.ini

$(HOME)/.ssh/id_rsa:
mkdir -p $(HOME)/.ssh
echo $(PRIVATE_KEY) | base64 -d > $(HOME)/.ssh/id_rsa
Expand All @@ -17,33 +19,33 @@ create-gce: init-gce
-e gce_credentials_file=$(HOME)/.ssh/gce.json \
-e gce_project_id=$(GCE_PROJECT_ID) \
-e gce_service_account_email=$(GCE_ACCOUNT) \
-e inventory_path=$(PWD)/../inventory/sample/hosts.ini \
-e inventory_path=$(INVENTORY) \
-e test_id=$(TEST_ID) \
-e preemptible=$(GCE_PREEMPTIBLE)


delete-gce:
ansible-playbook -i ../inventory/sample/hosts.ini cloud_playbooks/delete-gce.yml -c local \
ansible-playbook -i $(INVENTORY) cloud_playbooks/delete-gce.yml -c local \
$(LOG_LEVEL) \
-e @"files/${CI_JOB_NAME}.yml" \
-e test_id=$(TEST_ID) \
-e gce_project_id=$(GCE_PROJECT_ID) \
-e gce_service_account_email=$(GCE_ACCOUNT) \
-e gce_credentials_file=$(HOME)/.ssh/gce.json \
-e inventory_path=$(PWD)/inventory/sample/hosts.ini
-e inventory_path=$(INVENTORY)

create-do: init-do
ansible-playbook cloud_playbooks/create-do.yml -i local_inventory/hosts.cfg -c local \
${LOG_LEVEL} \
-e @"files/${CI_JOB_NAME}.yml" \
-e inventory_path=${PWD}/../inventory/hosts.ini \
-e inventory_path=$(INVENTORY) \
-e test_id=${TEST_ID}


delete-do:
ansible-playbook -i ../inventory/sample/hosts.ini cloud_playbooks/create-do.yml -c local \
ansible-playbook -i $(INVENTORY) cloud_playbooks/create-do.yml -c local \
$(LOG_LEVEL) \
-e @"files/${CI_JOB_NAME}.yml" \
-e state=absent \
-e test_id=${TEST_ID} \
-e inventory_path=${PWD}/../inventory/inventory.ini \
-e inventory_path=$(INVENTORY)
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ bootstrap_os: ubuntu
kube_network_plugin: canal
deploy_netchecker: true
kubedns_min_replicas: 1
cloud_provider: 'do'
# cloud_provider: 'do'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ apache-libcloud==2.2.1
boto==2.9.0
tox
dopy
PyCrypto

0 comments on commit 7a20d69

Please sign in to comment.