14 Commits

Author SHA1 Message Date
Major Hayden
38270e7870 [Docs] Replace security role references
This patch changes any reference of openstack-ansible-security to
ansible-hardening.

Change-Id: Ib264e31a926c05380b0d1dcd630ad8f3fd1e58f3
2017-06-12 18:59:28 +00:00
ji-xuepeng
215fb08eb5 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I5b595713eeed1ea59756485866acb43d94aa7c19
2017-02-06 21:27:54 +08:00
Jean-Philippe Evrard
51bd12f03f Point roles docs bugs to openstack-ansible LP
Currently when clicking on the small bug in the roles'
docs, we land on openstack-manuals launchpad.

This should solve it.

Change-Id: I00d33aa1705937813ea8151cc096bc945a6d0428
2016-12-01 12:26:33 +00:00
Major Hayden
3fdc656721 Initial docs scaffolding for RHEL 7 STIG
This patch updates the documentation and the sphinx extension to
write the docs for the RHEL 7 STIG content. The RHEL 7 content
is still hidden for now since it will be under active development
for a while.

Special note:
There are some typos in version 0.2 of the XML for the STIG and those
typos exist in the automatically generated documentation, too.
A new version of the STIG XML is due out very soon which should
correct these.

Implements: bp/security-rhel7-stig
Change-Id: I70dcebdd45ca65e5ae7734c19ee8523fba581e18
2016-10-05 20:02:48 +00:00
Major Hayden
f460a97651 [Docs] Fix sphinx pickling error
This patch adds a workaround for the pickling error that occasionally
causes security role docs builds to fail, which certainly gets us in
a pickle from time to time.

The upstream bug is: sphinx-doc/sphinx#2324

Closes-Bug: 1627732
Change-Id: Iefbb9c920936634d276053d24bc225b2dec44362
2016-09-26 11:26:50 -05:00
Major Hayden
e57593dfd4 Automate the STIG documentation
With the upcoming changes to rebase onto the RHEL 7 STIG controls,
there needs to be a new solution for documentation that is easier
to manage and filter. This patch automates the generation of the STIG
control documentation in the following way:

* A Sphinx extension runs early in the doc build process that writes
  all of the individual STIG control docs as well as ToC pages.
* ToC pages are now sorted by severity, tag, and implementation status.
* A giant listing of controls is easier to navigate now.
* Docs are generated from metadata in the /doc/metadata directory. New
  documentation only needs to be added there. (Will explain this in
  the developer notes in a subsequent patch.)

Implements: blueprint security-rhel7-stig
Change-Id: I455af1121049f52193e98e2c9cb1ba5d4c292386
2016-09-09 14:43:30 +00:00
Major Hayden
87e219091a Disable automatic ToC generation
This patch uses the new feature in openstackdocstheme 1.5.0
that allows automatic ToC generation to be disabled.

Change-Id: I213d0f934afbc86135ab41c82da91690fb587bb7
2016-08-25 20:54:41 +00:00
Jesse Pretorius
e75613e3cd Resolve 'E501 line too long' linters error
Change-Id: I9ed5c12dc110881fd990ff86bdf33fbd3b21e8a1
2016-07-15 11:36:43 +01:00
Jesse Pretorius
775141586c Update sphinx configuration
This patch updates the sphinx configuration for docs and releasenotes
to make it easier to replicate across repositories and to comply with
pep8 testing without exceptions.

Change-Id: I8381f5e153edbb9dbf22db634728b862ebe4122c
2016-07-12 19:03:14 +01:00
Major Hayden
432a9eb5dd
Switch to openstackdocs theme
This patch updates the docs for the security role to use the
openstackdocs theme and adds doc8 linting. This matches up with
OpenStack-Ansible's docs changes.

Change-Id: Ie8265bdaf8f8b91454766f5beba14645aabf77cc
2016-07-06 15:34:27 -05:00
Major Hayden
076be96acb Docs: Fix rendering of :orphan:
This patch removes the ``:orphan:`` docinfo from the documentation
and instead adds the orphaned docs into the ``exclude_pattern``
configuration option. There's a bug that causes the tag to actually
get rendered in the docs when those docs are brought in via an
include.

Change-Id: Iacce8f5bfd9a629117564938bbb376bf5abcec31
2016-06-23 15:46:51 +00:00
Major Hayden
72cbd94064 Fix flake8 violation in conf.py
Change-Id: Ibc55f16f8a0426eb6f8f8c5fe10f360fe3f67e4f
2016-04-12 15:25:20 -05:00
Jesse Pretorius
cc6dc4014d Add theme fix for browsable source code
This adds a fix to ensure that the published docs have the correct
link to the browsable source code as implemented in
https://review.openstack.org/236091

It also updates the dev-requirements for the docs jobs to ensure
that the requirements are in line with upstream.

It also includes an exclusion of the doc directory from the pep8
check as the documentation conf.py requires a lengthy line.

Change-Id: I7c434b9963391cc89779e90aa24cc4106b4f3534
2015-10-21 15:28:09 +01:00
Major Hayden
bfcf6c7423 Initial import of openstack-ansible-security role
This role contains around 150 controls from the 270+ controls that exist
in the RHEL 6 STIG. New controls are still being added.

Implements: blueprint security-hardening

Change-Id: I0578f86bf42d55242bc72b97b40a5935a3cb18d6
2015-10-07 07:27:39 -05:00