RETIRED, Security Role for OpenStack-Ansible
Go to file
Shannon Mitchell e7dc4eec61 Enable ntp client functionality with chronyd
Using 'bindaddress' in the /etc/chrony/chrony.conf disables both
client and server ntp functionality as it cannot get the ntp
responses from peer servers.  The default install will leave the
servers unsynced with an ntp source causing them to skew over
time and eventually break services that rely on synced time.
Setting 'port 0' will disable the server functionality.  Using
'bindcmdaddress' will still chronc<->chronyd communictions over
localhost only.  This should allow client functionality and
disable server functionality.

Change-Id: Ie9b6e73333d9469a17e4cee06f21aa99b2b3df7e
Closes-Bug: #1656086
(cherry picked from commit 4cb2fa4eaa)
2017-03-10 11:59:44 +00:00
defaults Make .shosts search/removal opt in 2017-03-08 16:04:32 +00:00
doc Make .shosts search/removal opt in 2017-03-08 16:04:32 +00:00
files Add AIDE checks for ACL/xattrs [+Docs] 2016-12-08 22:21:01 +00:00
handlers Set grub2 password [+Docs] 2016-12-08 16:20:23 -06:00
library Verify password age limits [+Docs] 2016-12-08 09:44:23 -06:00
meta Add CentOS 7 and Ubuntu 16.04 support 2016-05-13 14:57:28 -05:00
releasenotes Make .shosts search/removal opt in 2017-03-08 16:04:32 +00:00
tasks Add missing STIG ID tags 2017-03-06 15:55:59 +00:00
templates Enable ntp client functionality with chronyd 2017-03-10 11:59:44 +00:00
test_plugins Move test plugins into security role 2017-01-30 18:06:29 +00:00
tests Make .shosts search/removal opt in 2017-03-08 16:04:32 +00:00
vars Install chrony when enabled in RHEL7 STIG 2017-01-21 18:52:09 -06:00
.gitignore Initial docs scaffolding for RHEL 7 STIG 2016-10-05 20:02:48 +00:00
.gitreview Update .gitreview for stable/ocata 2017-02-03 18:57:48 +00:00
LICENSE Initial import of openstack-ansible-security role 2015-10-07 07:27:39 -05:00
README.md Replace github with git.o.o 2016-11-03 07:53:23 +00:00
README.rst Show team and repo badges on README 2016-11-25 16:26:50 +01:00
Vagrantfile Add support for Xenial and CentOS 7 to the Vagrantfile 2016-06-14 16:18:22 -04:00
bindep.txt Install python2-pyOpenSSL package on CentOS 2017-03-03 19:39:40 +00:00
manual-test.rc Use centralised test scripts 2016-09-28 12:16:50 +01:00
run_tests.sh Fix pip check in run_tests.sh 2017-01-06 10:56:19 -06:00
setup.cfg Automate the STIG documentation 2016-09-09 14:43:30 +00:00
setup.py Updated from global requirements 2016-07-15 11:26:50 +00:00
test-requirements.txt Updated from global requirements 2017-01-12 09:42:41 +00:00
tox.ini Update repo for stable/ocata 2017-02-08 10:32:28 +00:00

README.md

openstack-ansible-security

The openstack-ansible security role applies security hardening configurations from the Security Technical Implementation Guide(STIG) to systems running Ubuntu 14.04, Ubuntu 16.04, CentOS 7, and Red Hat Enterprise Linux 7.

The role is part of the OpenStack-Ansible project, which deploys enterprise-grade OpenStack clouds using Ansible. However, the role can easily be used outside of an OpenStack environment to secure hosts, virtual machines, and containers.

For more details, review the openstack-ansible-security documentation.

Requirements

This role can be used with or without the OpenStack-Ansible role. It requires Ansible 1.9.1 or later.

Role Variables

All of the variables for this role are in defaults/main.yml.

Dependencies

This role has no dependencies.

Example Playbook

Using the role is fairly straightforward:

- hosts: servers
  roles:
     - openstack-ansible-security

Running with Vagrant

This role can be tested easily on multiple platforms using Vagrant.

The Vagrantfile supports testing on:

  • Ubuntu 14.04
  • Ubuntu 16.04
  • CentOS 7

To test on all platforms:

vagrant destroy --force && vagrant up

To test on Ubuntu 14.04 only:

vagrant destroy ubuntu1404 --force && vagrant up ubuntu1404

To test on Ubuntu 16.04 only:

vagrant destroy ubuntu1604 --force && vagrant up ubuntu1604

To test on CentOS 7 only:

vagrant destroy centos7 --force && vagrant up centos7

License

Apache 2.0

Author Information

For more information, join #openstack-ansible on Freenode.