Judd Maltin
2019-07-05 594afb079e0b95afc8e3f489390df712e4c64d4b
improve readmes for ocp4
1 files added
2 files modified
74 ■■■■■ changed files
ansible/configs/ocp4-ha-lab/README.adoc 61 ●●●● patch | view | raw | blame | history
ansible/configs/ocp4-ha-lab/sample_vars.yaml 12 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp4-workshop/README.adoc 1 ●●●● patch | view | raw | blame | history
ansible/configs/ocp4-ha-lab/README.adoc
@@ -1,8 +1,18 @@
= 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
@@ -12,51 +22,6 @@
`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`
ansible/configs/ocp4-ha-lab/sample_vars.yaml
New file
@@ -0,0 +1,12 @@
---
guid: sampleguid
env_type: ocp4-ha-lab
email: youare@redhat.com
install_ftl: false
cloud_tags: { 'Purpose': 'development' }
aws_region: us-east-2
subdomain_base_suffix: openshift.opentlc.com
repo_version: 4.1.0
osrelease: 4.1.3
HostedZoneId:
install_ocp4: false
ansible/configs/ocp4-workshop/README.adoc
@@ -21,6 +21,7 @@
* `ansible-playbook ansible/configs/${ENV_TYPE}/main.yaml -e @/home/myself/myenvironment-variables.yml -e@/home/myself/my_secret.yml`
== Sample Environmet Variables
---
env_type: ocp4-workshop
guid: myguid