项目作者: creativesoftworks

项目描述 :
Ansible role for remediation of CIS benchmarks items, for Centos/RHEL 6 and 7
高级语言: Ruby
项目地址: git://github.com/creativesoftworks/ansible_cis_redhat.git
创建时间: 2017-10-18T12:28:53Z
项目社区:https://github.com/creativesoftworks/ansible_cis_redhat

开源协议:Apache License 2.0

下载


CIS

Build Status
Ansible Galaxy

This role can be used to audit or remediate a host against the Center for Internet Security (CIS) security benchmarks.

Disclaimer: This project has no affiliation with CIS. The role and its contents have not been reviewed or endorsed by CIS.

OS compatibility

  • RHEL 6 & 7
  • CentOS 6 & 7

Benchmark version

This role implements benchmark v2.0.2

Requirements

This role has no requirements or dependencies.

Role Variables

See defaults/main.yml

Dependencies

Some sensible defaults are configured and documented within defaults/main.yml. These defaults are set so they would cause minimal disruption to a production system. However, it’s your responsibility to verify that the default configuration will not harm your production server. Always run the role in check mode if you’re unsure of its effects.

Be aware that some of the default variables are set against CIS recommendations in the hopes that they will cause minimal disruption to a system.

Example Playbook

Playbooks can utilize the CIS role without much effort:

  1. - hosts: all
  2. roles:
  3. - cis

The role is thoroughly tagged so that you can run certain sections or certain levels of checks:

  1. # Test only items from section 4
  2. ansible-playbook -i hosts -C playbook.yml -t section4
  3. # Apply changes only from items in section 4, 5, and 6
  4. ansible-playbook -i hosts playbook.yml -t section4,section5,section6

Testing

You’ll need credentials to an AWS account, ruby and bundler (gem install bundler).

  • Set up the environment variables defined in envrc-template, or copy its contents to a file called .envrc and use direnv.
  • Install the dependencies dependencies: bundle install
  • Run kitchen test

License

Apache License, Version 2.0

Author Information

Ricardo Oliveira, based on the work of Team VVL Systems and Major Hayden