Skip to content

Commit

Permalink
added ans-tower-lab install tower
Browse files Browse the repository at this point in the history
  • Loading branch information
sborenst committed Nov 2, 2017
1 parent bc1ba6f commit ab2bef0
Show file tree
Hide file tree
Showing 12 changed files with 1,602 additions and 1,036 deletions.
2 changes: 1 addition & 1 deletion ansible/configs/ans-tower-lab/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ansible-playbook \
-e "[email protected]" \
-e "install_ipa_client=false" \
-e "repo_method=file" -e "own_repo_path=${REPO_PATH}" -e "repo_version=${REPO_VERSION}" \
-e "software_to_deploy=none"
-e "software_to_deploy=tower"
Expand Down
138 changes: 130 additions & 8 deletions ansible/configs/ans-tower-lab/env_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

repo_method: file # Other Options are: file, satellite and rhn
windows_password: 'jVMijRwLbI02gFCo2xkjlZ9lxEA7bm7zgg=='

tower_admin_password: 'r3dh4t1!'
# Do you want to run a full yum update
update_packages: false
#If using repo_method: satellite, you must set these values as well.
Expand Down Expand Up @@ -68,23 +68,144 @@ subdomain_base: "{{subdomain_base_short}}{{subdomain_base_suffix}}"

## Environment Sizing



bastion_instance_type: "t2.medium"

tower_instance_count: 3
tower_instance_type: "t2.large"

support_instance_count: 2
support_instance_type: "t2.medium"

frontend_instance_count: 1
frontend_instance_type: "t2.small"

app_instance_count: 2
app_instance_type: "{{frontend_instance_type}}"

appdb_instance_count: 1
appdb_instance_type: "{{frontend_instance_type}}"

tower_instance_count: 3
support_instance_count: 2
activedirectory_instance_count: 1
activedirectory_instance_type: "t2.large"

instances:
- name: "tower"
count: "{{tower_instance_count}}"
public_dns: true
loadbalancer: true
ansible_group: towers
flavor:
"ec2": "{{tower_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "towers"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "linux"
- key: "owner"
value: "{{ email | default(unknownuser) }}"
- name: "activedirectory"
count: "{{activedirectory_instance_count}}"
public_dns: true
ansible_group: ad
flavor:
"ec2": "{{activedirectory_instance_type}}"
ImageId: WIN2012R2AMI
UserData: |
UserData:
"Fn::Base64":
"Fn::Join":
- ""
- - "<powershell>\n"
- "$admin = [adsi]('WinNT://./administrator, user')\n"
- "$admin.PSBase.Invoke('SetPassword', 'jVMijRwLbI02gFCo2xkjlZ9lxEA7bm7zgg==')\n"
- "$scriptPath=((New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1'))\n"
- "Invoke-Command -ScriptBlock ([scriptblock]::Create($scriptPath)) -ArgumentList '-skipNetworkProfileCheck'\n"
- "</powershell>"
tags:
- key: "AnsibleGroup"
value: "activedirectories,windows"
- key: "Project"
value: "{{project_tag}}"
# - key: "{{project_tag}}"
# value: "windows"
- key: "ostype"
value: "windows"
- key: "owner"
value: "{{ email | default(unknownuser) }}"

- name: "frontend"
count: "{{frontend_instance_count}}"
public_dns: true
loadbalancer: true
ansible_group: frontends
flavor:
"ec2": "{{frontend_instance_type}}"
tags:
- key: "AnsibleGroup"
value: "frontends"
- key: "Project"
value: "{{project_tag}}"
- key: "ostype"
value: "linux"
- 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}}"




frontend_instance_count: 1
app_instance_count: 2
appdb_instance_count: 1

windows_instance_type: "t2.large"
windows_instance_count: 1

install_win_ssh: true
install_win_ad: true
Expand All @@ -110,6 +231,7 @@ rhel_repos:
- rhel-7-server-rpms
- rhel-7-server-extras-rpms
- epel-release-latest-7

## Currently there is no NFS created for this Environment - See ocp-workshop for clues.
# ## NFS Server settings
# nfs_vg: nfsvg
Expand Down
Loading

0 comments on commit ab2bef0

Please sign in to comment.