Skip to content

Commit

Permalink
updated three-tier-app to have public dns names
Browse files Browse the repository at this point in the history
  • Loading branch information
sborenst committed Nov 1, 2017
1 parent c441f08 commit 00ffb60
Show file tree
Hide file tree
Showing 5 changed files with 1,192 additions and 793 deletions.
2 changes: 1 addition & 1 deletion ansible/configs/three-tier-app/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ GUID=ec2test3tapp1
ENVTYPE="three-tier-app"
CLOUDPROVIDER=ec2
HOSTZONEID='Z3IHLWJZOU9SRT'
REPO_PATH='https://admin.example.com/repos/ocp/3.5/'
REPO_PATH='https://admin.example.com/repos/ocp/3.6/'
BASESUFFIX='.example.opentlc.com'
DEPLOYER_REPO_PATH=`pwd`
Expand Down
75 changes: 71 additions & 4 deletions ansible/configs/three-tier-app/env_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install_bastion: true
install_common: true
software_to_deploy: none

repo_version: "3.5"
repo_version: "3.6"

### If you want a Key Pair name created and injected into the hosts,
# set `set_env_authorized_key` to true and set the keyname in `env_authorized_key`
Expand Down Expand Up @@ -69,17 +69,85 @@ subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"
## Environment Sizing

bastion_instance_type: "t2.medium"
support_instance_type: "t2.medium"

frontend_instance_type: "t2.small"
app_instance_type: "{{frontend_instance_type}}"
appdb_instance_type: "{{frontend_instance_type}}"
support_instance_type: "t2.small"


support_instance_count: 1

frontend_instance_count: 1
app_instance_count: 2
appdb_instance_count: 1
support_instance_count: 1

instances:
- name: "frontend"
count: "{{frontend_instance_count}}"
public_dns: true
loadbalancer: true
ansible_group: ac
flavor:
"ec2": "{{frontend_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "frontends"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "frontend"
- key: "owner"
value: "{{ email | default(unknownuser) }}"

- name: "app"
count: "{{app_instance_count}}"
public_dns: true
ansible_group: ipa
flavor:
"ec2": "{{app_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "apps"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "rhel"
- key: "owner"
value: "{{ email | default(unknownuser) }}"
key_name: "{{key_name}}"
- name: "appdb"
count: "{{appdb_instance_count}}"
public_dns: true
ansible_group: rhssos
flavor:
"ec2": "{{appdb_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "appdbs"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "rhel"
- key: "owner"
value: "{{ email | default(unknownuser) }}"
key_name: "{{key_name}}"
- name: "support"
count: "{{support_instance_count}}"
public_dns: true
ansible_group: support
flavor:
"ec2": "{{support_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "support"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "rhel"
- key: "owner"
value: "{{ email | default(unknownuser) }}"
key_name: "{{key_name}}"

###### VARIABLES YOU SHOULD ***NOT*** CONFIGURE FOR YOUR DEPLOYEMNT
###### You can, but you usually wouldn't need to.
Expand Down Expand Up @@ -120,7 +188,6 @@ create_internal_dns_entries: true
zone_internal_dns: "{{guid}}.internal."
chomped_zone_internal_dns: "{{guid}}.internal"
zone_public_dns: "{{subdomain_base}}."
cloudapps_dns: '*.apps.{{subdomain_base}}.'
frontend_public_dns: "frontendlb.{{subdomain_base}}."
#tower_public_dns: "tower.{{subdomain_base}}."
bastion_public_dns: "bastion.{{subdomain_base}}."
Expand Down
Loading

0 comments on commit 00ffb60

Please sign in to comment.