This repository contains reference configurations that can create resourses on AWS and deploy cross-dc-rhsso-demo (https://github.com/ansible-middleware/cross-dc-rhsso-demo) on it with all the required configurations.
The final architecture looks like:
- Red Hat Enterprise Linux (RHEL) 8 controller host (or Fedora works too)
- Ansible >= 2.11 / python >= 3.9
- python dependencies installed on the controller host
pip install -r requirements.txt
- AWS-CLI installed on the controller host 'dnf install aws-cli'
- All the default parmeters for AWS cloud instances are provided in
roles/aws/defaults/main.yml
- if exposing the loadbalancer publicly, the TLS certificate and key in the files/ directory, named public_fqdn.key and public_fqdn.crt
- We are using dynamic inventory provided by AWS. Once the instances are created you can view it by
ansible-inventory -i inventory/myaws_ec2.yml --graph
ansible-galaxy collection install -r requirements.yml
- We have provided two options:
- For managed mariadb on Azure set
managed_mariadb
as true increate-demo-setup.yml
. - For unmanaged mariadb on Azure set
managed_mariadb
as false increate-demo-setup.yml
. This will create the RHEL instances and configure mariadb using 'mariadb' role on cross-dc-rhsso-demo.
- For managed mariadb on Azure set
- Create a var-file containing your RHN credentials:
$ cat rhn-creds.yml
rhn_username: '<username>'
rhn_password: '<password>'
- Execute the main play:
ansible-playbook -e @rhn-creds.yml infra.yml
Note: open ansible.cfg
config file and edit remote_user
and remote_privkey
accordingly to your configuration.
ansible-playbook -e @rhn-creds.yml deploy.yml
Apache License v2.0 or later
See LICENCE to view the full text.
- Harsha Cherukuri hcheruku@redhat.com
- Guido Grazioli ggraziol@redhat.com