Links
https://github.com/kelseyhightower/kubernetes-the-hard-way
Configure OpenStack application credentials
mkdir -p ~/.config/openstack
cat <<EOF> ~/.config/openstack/clouds.yaml
clouds:
dev-foo:
auth_type: "v3applicationcredential"
auth:
auth_url: https://keystone.service.dev.example.com/v3
application_credential_id: "YOUR_CREDENTIAL_ID"
application_credential_secret: "YOUR_CREDENTIAL_PASS"
EOF
Install Terraform
cat <<EOF> /tmp/install-terraform.yml
---
- hosts: localhost
tasks:
- name: Get latest Terraform version
uri:
url: https://checkpoint-api.hashicorp.com/v1/check/terraform
register: response
- set_fact:
terraform_download_url: "{{ response.json.current_download_url }}"
terraform_version: "{{ response.json.current_version }}"
- name: Download Terraform {{ terraform_version }}
unarchive:
src: "{{ terraform_download_url }}terraform_{{ terraform_version }}_{{ ansible_system | lower }}_amd64.zip"
remote_src: yes
dest: ~/bin
creates: ~/bin/terraform
mode: 0550
EOF
ansible-playbook /tmp/install-terraform.yml
Create test env on OpenStack