Skip to content

ansible-middleware/aws-sso-demo

Repository files navigation

aws-sso-demo

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:

Architecture diagram

Prerequisites

  • 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

Install Ansible Dependencies

ansible-galaxy collection install -r requirements.yml

Database options

  • We have provided two options:
    1. For managed mariadb on Azure set managed_mariadb as true in create-demo-setup.yml.
    2. For unmanaged mariadb on Azure set managed_mariadb as false in create-demo-setup.yml. This will create the RHEL instances and configure mariadb using 'mariadb' role on cross-dc-rhsso-demo.

Running on AWS cloud

Infrastracture

  1. Create a var-file containing your RHN credentials:
$ cat rhn-creds.yml
rhn_username: '<username>'
rhn_password: '<password>'
  1. 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.

Service deployment

ansible-playbook -e @rhn-creds.yml deploy.yml

License

Apache License v2.0 or later

See LICENCE to view the full text.

Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published