OpenShift Terraform
Ansible playbook to install OpenShift using Terraform supported providers.
Dependencies
- Terraform (v0.8.5)
- Ansible (v2.2.1.0)
- AWS Command Line Interface
- Red Hat Customer Portal Activation Key
Required
The following settings must be set before usage.
group_vars/all
default_domain_name: "${INSERT_VALUE_HERE}"
default_user: "${INSERT_VALUE_HERE}"
aws_access_key_id: "${INSERT_VALUE_HERE}"
aws_secret_access_key: "${INSERT_VALUE_HERE}"
roles/terraform.infra.aws/defaults/main.yml
aws_route53_zone_id: "${INSERT_VALUE_HERE}"
roles/openshift.prereq/defaults/main.yml
rhel_rhsm_activationkey: "${INSERT_VALUE_HERE}"
rhel_rhsm_org_id: "${INSERT_VALUE_HERE}"
roles/openshift.config/defaults/main.yml
openshift_cluster_admin_username: "${INSERT_VALUE_HERE}"
openshift_cluster_admin_password: "${INSERT_VALUE_HERE}"
inventory
master.ose.${INSERT_VALUE_HERE}
node.[0:1].ose.${INSERT_VALUE_HERE}
Usage
Provision
ansible-playbook -i inventory site.yml
Destroy the cluster & provider resources
cd $(pwd)/.terraform
terraform destroy