Git Product home page Git Product logo

rhacs-operator's Introduction

Red Hat Advanced Cluster Security (RHACS) Operator Ansible Automation

This role installs the Red Hat Advanced Cluster Security (RHACS) operator, creates Central, generates and creates the init-bundle.yaml, and creates the Secured Cluster.

Clone this repo and run the rhacs-role.yaml play to execute the role. Ensure you have installed Ansible with the control node requirements outlined in https://docs.ansible.com/ansible-core/2.13/installation_guide/intro_installation.html#control-node-requirements

ex. ansible-playbook rhacs-operator/rhacs-role.yaml -vv

This role includes the following playbooks in the tasks directory. Make sure to specify which playbooks to run in the defaults/main.yml:

  1. rhacs-operator.yml to install the RHACS operator and create the rhacs-operator and stackrox namespaces.
  2. central.yml to create Central which includes 3 deployments (central, scanner, and scanner-db).
  3. secured_cluster.yml which starts by ensuring the Central deployments are up and then installs the roxctl tool, authenticates it to central with the ROX_API_TOKEN, generates the init-bundle, creates the resulting sensor-tls, collector-tls, and admission-control-tls secrets which are needed for a cluster to join Central as a Secured Cluster. Finally, the Secured Cluster object is created which starts the deployments for sensor, collector, and admission controller.

Watch out for these potential issues

  1. Ensure you have the correct version of Python. If you need to update Python3 to a newer version, follow the steps in https://phoenixnap.com/kb/upgrade-python

  2. If the playbook ends in an error No module named "Kubernetes", install the module with:

    python3 -m pip install kubernetes

    If it's missing a different module such as openshift, install the openshift module the same way.

  3. May need to update /etc/ansible/hosts with:

    ansible_python_interpreter=/usr/bin/python3

  4. If you are using an older version of Ansible (2.9 or earlier), kubernetes.core.k8s may not be found and you may need to switch to k8s instead. If you don't want to upgraade Ansible, you can try using the k8s module and re-running the playbook.

rhacs-operator's People

Contributors

mradecker avatar

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.