Giter VIP home page Giter VIP logo

ansible-cis-redhat's Introduction

Role Name

ansible-cis-redhat

Description

Ansible role to apply the CIS 2.0 security rule fixes to a Red Hat Linux 7 system.

This role was developed and tested on a Mint 20.2 system using Molecule 3. Some ideas for testing these rules with container are provided here but you'll need to modify these for your own environment. (Using containers on a Red Hat host with an active subscription is strongly recommended.) A Molecule setup, simple Dockerfile for the Docker driver and Red Hat 7 and 8 containers from Red Hat's Container Registry are included as well.

Molecule 3 changed the default verifier to Ansible (from testinfra). A basic test setup for Molecule 3 is included as well.

Full instructions for setting up this environment are available at GeoffStratton.com.

To use official RHEL images you'll need to generate a Red Hat Container Registry service account. (Yes, you can do this with the free Red Hat Developer subscription.) You'll then need to provide your username and password token to the molecule.yml file; I just used shell variables but you could also use a CI/CD tool like Travis or other methods.

Requirements

  • ansible
  • molecule
  • python

License

GNU General Public License v3.0

Author Information

Geoff Stratton

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.