mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-15 22:34:21 +03:00
We should not rollback our test setup during upgrade test.
The only reason to do that would be for incompatible changes in the test
inventory, and we already checkout master for those (${CI_JOB_NAME}.yml)
Also do some cleanup by removing unnecessary intermediary variables
29 lines
717 B
Makefile
29 lines
717 B
Makefile
init-packet:
|
|
mkdir -p $(HOME)/.ssh
|
|
echo $(PACKET_VM_SSH_PRIVATE_KEY) | base64 -d > $(HOME)/.ssh/id_rsa
|
|
chmod 400 $(HOME)/.ssh/id_rsa
|
|
|
|
create-tf:
|
|
./scripts/create-tf.sh
|
|
|
|
delete-tf:
|
|
./scripts/delete-tf.sh
|
|
|
|
create-packet: init-packet
|
|
ansible-playbook cloud_playbooks/create-packet.yml -c local \
|
|
$(ANSIBLE_LOG_LEVEL) \
|
|
-e @"files/${CI_JOB_NAME}.yml" \
|
|
-e test_name="$(subst .,-,$(CI_PIPELINE_ID)-$(CI_JOB_ID))" \
|
|
-e branch="$(CI_COMMIT_BRANCH)" \
|
|
-e pipeline_id="$(CI_PIPELINE_ID)" \
|
|
-e inventory_path=$(INVENTORY_DIR)
|
|
|
|
delete-packet: ;
|
|
|
|
create-vagrant:
|
|
vagrant up
|
|
cp $(CI_PROJECT_DIR)/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory $(INVENTORY_DIR)
|
|
|
|
delete-vagrant:
|
|
vagrant destroy -f
|