| | |
| | | = OCP Client VM (ocp-clientvm) Standard Config |
| | | = OCP 4 HA Lab |
| | | |
| | | == Config Description |
| | | |
| | | The following config includes: |
| | | |
| | | * One bastion host for installation (ClientVM) |
| | | * DNS and other AWS resources for OCP4 |
| | | * SSH access setup |
| | | |
| | | == Review the Env_Type variable file |
| | | |
| | | * This file link:./env_vars.yml[./env_vars.yml] contains all the variables you need to define to control the deployment of your environment. |
| | | * This file link:./env_vars.yml[./env_vars.yml] contains all the variables you need to define to control the deployment of your environment. These are the deafults. |
| | | |
| | | * Override the defaults for your environment by creating your own myenvironment-variables.yml file, as below. |
| | | |
| | | == Running Ansible Playbook |
| | | |
| | |
| | | |
| | | `ansible-playbook ansible/main.yaml -e @myenvironment-variables.yml -e@judd_secret.yml` |
| | | |
| | | === Running with Env from command line |
| | | |
| | | You can run the playbook with the following arguments to overwrite the default variable values: |
| | | |
| | | [source,bash] |
| | | ---- |
| | | GUID=sborenstest1 |
| | | REGION=us-east-1 |
| | | KEYNAME=ocpkey |
| | | ENVTYPE="ocp4-ha-lab" |
| | | CLOUDPROVIDER=ec2 |
| | | HOSTZONEID='Z3IHLWJZOU9SRT' |
| | | BASESUFFIX='.example.opentlc.com' |
| | | OSRELEASE=3.11.43 |
| | | REPO_VERSION=3.11 |
| | | |
| | | ansible-playbook ansible/main.yml \ |
| | | -e "guid=${GUID}" \ |
| | | -e "env_type=${ENVTYPE}" \ |
| | | -e "osrelease=${OSRELEASE}" \ |
| | | -e "repo_version=${REPO_VERSION}" \ |
| | | -e "cloud_provider=${CLOUDPROVIDER}" \ |
| | | -e "aws_region=${REGION}" \ |
| | | -e "HostedZoneId=${HOSTZONEID}" \ |
| | | -e "key_name=${KEYNAME}" \ |
| | | -e "subdomain_base_suffix=${BASESUFFIX}" \ |
| | | -e "software_to_deploy=none" -e@../secret.yml |
| | | |
| | | |
| | | |
| | | === To Delete an environment |
| | | ---- |
| | | REGION=us-east-1 |
| | | KEYNAME=ocpkey |
| | | GUID=testclientvm1 |
| | | ENVTYPE="ocp-clientvm" |
| | | CLOUDPROVIDER=ec2 |
| | | HOSTZONEID='Z186MFNM7DX4NF' |
| | | |
| | | ansible-playbook ./configs/${ENVTYPE}/destroy_env.yml \ |
| | | -e "guid=${GUID}" \ |
| | | -e "env_type=${ENVTYPE}" \ |
| | | -e "cloud_provider=${CLOUDPROVIDER}" \ |
| | | -e "aws_region=${REGION}" \ |
| | | -e "HostedZoneId=${HOSTZONEID}" \ |
| | | -e "key_name=${KEYNAME}" \ |
| | | -e "subdomain_base_suffix=${BASESUFFIX}" |
| | | ---- |
| | | `ansible-playbook ansible/config/${ENV_TYPE}/main.yaml -e @/home/myself/myenvironment-variables.yml -e@/home/myself/my_secret.yml` |