Giter Site home page Giter Site logo

rhpds-bastion-setup's Introduction

Playbook to provision all needed resources

This playbook is used to provision all required resources (configurations, operators, OCP resources) that are needed for the ML/CI-CD pipelines and scenario. It uses a custom Execution Environment with preloaded collections and roles needed for setting up the environment.

Preliminary steps

Environment setup

Install ansible navigator for your setup following instructions

Fill the inventory

The inventory needs to be populated with the bastion host information:

[rhods_bastion]
your_bastion_hostname_here ansible_user=your_bastion_username_here ansible_ssh_pass=your_bastion_password_here ansible_ssh_common_args='-o StrictHostKeyChecking=no'

Fill the user_vars.yml file

git_repo: ## The URL of the fork in your user profile
git_branch: ## The branch you are going to work on

quay_auth_token: ## Your Quay authentication token (base64 encoded) used to pull/push the images
github_access_token: ## The access token for your Github account - [guide for retrieving it](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
github_account: ## your Github account name
s3_secret: nothing ## this field is not used at this time

ocp_username: ## The OCP of the admin user in your cluster
ocp_password: ## The Password of the admin unser in your cluster
ocp_api_url: ## The API URL of your OCP Cluster

Run the playbook

Once your variables and inventory will be filled up, you can proceed running the playbook:

ansible-navigator run -i inventory -m stdout bastion-provisioner.yml

At the end of the execution, the relevant URLs for the different ArgoCD Instances will be provided, as well as the resource deployment, pipeline execution and operator setup will be initiated on the cluster.

rhpds-bastion-setup's People

Contributors

kubealex avatar

Watchers

Trevor Royer avatar  avatar

Forkers

mamurak

rhpds-bastion-setup's Issues

Bastion installer fails during ArgoCD route display step.

Error:

TASK [Obtain routes for ArgoCD from the cluster] *******************************
fatal: [bastion.bl5rt.sandbox765.opentlc.com]: FAILED! => {"msg": "Could not find imported module support code for ansiblemodule.  Looked for either AnsibleTurboModule.py or module.py"}

RHPDS bastion provisioner fails while setting cluster URL.

Error:

TASK [Set Cluster URL as fact] ********************************************************************************************************
fatal: [bastion.5n4ng.sandbox1390.opentlc.com]: FAILED! => {"msg": "template error while templating string: no filter named 'ansible.builtin.split'. String: {{ ocp_api_url | urlsplit('hostname') | ansible.builtin.split('.') }}"}

environment:
ansible --version
ansible 2.9.9
config file = /home/mmurakam/.ansible.cfg
configured module search path = ['/home/mmurakam/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/mmurakam/.local/lib/python3.6/site-packages/ansible
executable location = /home/mmurakam/.local/bin/ansible
python version = 3.6.8 (default, Jun 14 2022, 12:54:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-10)]

Automate bastion host setup

Will not be part of the official validated pattern. It's meant to speed up RHPDS based development. May want to create a new repository for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.