Skip to content

Commit

Permalink
Clean up config:ansible-tower-implementation (redhat-cop#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshget committed Jul 3, 2020
1 parent 0867258 commit 5beab6f
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 226 deletions.
76 changes: 21 additions & 55 deletions ansible/configs/ansible-tower-implementation/default_vars.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,35 @@
---
###### VARIABLES YOU SHOULD CONFIGURE FOR YOUR DEPLOYEMNT
###### OR PASS as "-e" args to ansible-playbook command

## guid is the deployment unique identifier, it will be appended to all tags,
## files and anything that identifies this environment from another "just like it"

env_type: ansible-tower-implementation
output_dir: /tmp/workdir # Writable working scratch directory
email: "{{env_type}}@example.com"
guid: defaultguid
## Below used variables are set for config
## for more details refer to README of the config
env_type: ansible-tower-implementation # config name
output_dir: /tmp/workdir # Writable working scratch directory
email: "{{env_type}}@example.com" # default email id
guid: defaultguid # guid is the deployment unique identifier

# Project Tag for all generated resources
project_tag: "{{ env_type }}-{{ guid }}"

# Is this running from Red Hat Ansible Tower
tower_run: false

### Where to get Red Hat Repos. Only 'satellite' is supported for RHEL 8
repo_method: file

# If using satellite, these are needed and should
# come from secrets:
# satellite_url: satellite.opentlc.com
# satellite_org: # This should be stored in secrets
# satellite_activationkey: # This should be stored in secrets

# Do you want to run a full yum update
update_packages: true

# student_name. Usually comes from CloudForms
student_name: lab-user

# Install FTL
# requirements.yml should have the right version of FTL injector
# Set ftl_injector_tag to the version desired"
# ftl_injector_tag: "v0.17.0"

# To be added as an additional tag on resources
purpose: development

# Tags to be added to VMs
cloud_tags:
env_type: "{{ env_type }}"
guid: "{{ guid }}"
course_name: "{{ course_name | default( 'unknown' ) }}"
platform: "{{ platform | default( 'unknown' ) }}"
update_packages: false

### 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`
# you can use the key used to create the environment or use your own self generated key
# if you set "use_own_key" to false your PRIVATE key will be copied to the bastion. (This is {{key_name}})

use_own_key: false
set_env_authorized_key: true
## Below used variables are set for Role:set_env_authorized_key
## for more details refer to README of the role
repo_method: file
use_own_key: true
env_authorized_key: "{{guid}}key"
key_name: "opentlc_admin_backdoor"
ansible_ssh_private_key_file: ~/.ssh/{{key_name}}.pem
set_env_authorized_key: true
key_name: "opentlc_admin_backdoor"

## Below used variables are set for Role:set-repsitories
## for more details refer to README of the role
repo_method: file
rhel_repos:
- rhel-7-server-rpms
- rhel-7-server-rh-common-rpms
Expand All @@ -64,18 +38,10 @@ rhel_repos:
- rhel-server-rhscl-7-rpms
- rhel-7-server-ansible-2.9-rpms

## true to run bastion-student-user role variable
install_student_user: true
## true to run bastion-opentlc-ipa role variable
install_ipa_client: false
## lab user name
lab_user: devops

## Git-server role related vars
git_server: "{{ groups['gitserver'][0] }}"
git_packages: git
## Below used variables are set for Role:git-server-ssh, git-copy-files
## for more details refer to README of the role
git_server: "{% if cloud_provider == 'ec2' %}{{ groups['gitserver'][0]}}{% else %}{{ groups['gitserver'][0]}}.example.com{% endif %}"
git_project: my_webservers_DEV
git_user: git
git_authorized_keys: "{{output_dir}}/{{guid}}key.pub"
git_authorized_keys: "{{ output_dir }}/{{ env_authorized_key }}.pub"

...
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ chomped_zone_internal_dns: "{{guid}}.internal"

## Environment Sizing
# Instance Type
__instance_type: "t3.medium"
__instance_type: "t3.medium"
tower_instance_type: "t3.large"
# Image
__image: RHEL77

Expand Down
Loading

0 comments on commit 5beab6f

Please sign in to comment.