Commit Graph

91 Commits

Author SHA1 Message Date
OpenStack Release Bot 9d7f0ad471 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I4d2aeb0613c5c975b2a62d3fb47c84b11865c1dc
2024-03-14 12:52:43 +00:00
OpenStack Release Bot ced5df4956 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I4f820c0073b76009ddc224cf6419d8379e4bc1d7
2023-12-07 11:03:36 +00:00
OpenStack Release Bot 4eeac146d1 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I664bf44a2202856a12e6484f63a0944535dc071e
2022-12-13 13:03:55 +00:00
OpenStack Release Bot f80502a2fa Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I4dffba103892d243d460e120ac5262f6752b2af1
2021-12-07 10:05:25 +00:00
Dmitriy Rabotyagov 180fc448eb Make possible to avoid aide installation
This patch adds variable `security_rhel7_enable_aide`. When it's False,
all AIDE related tasks would be ommited.

Change-Id: I64af348d9f49922ab51d8cd348d987df4263faa1
2021-02-02 14:12:10 +00:00
Andreas Jaeger 260b23b9b6 Use newer openstackdocstheme and reno versions
The sync from https://review.opendev.org/733244 updated to
openstackdocstheme 2.2.1 and reno 3.1.0 versions.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Id2c810e9214981f381d5a9d4f1f2e40cb63a02af
2020-06-04 09:22:27 +02:00
OpenStack Release Bot 28f397c063 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I29c8a8f1df649c9e01213ff5937ea72a12b14e5d
Sem-Ver: feature
2020-06-01 13:06:36 +00:00
Andreas Jaeger 986b9058ee Update docstheme for style
New version of openstackdocstheme (Victoria+) respects pygments_style.
Since this repo is using now Victoria (master) requirements but has
not branched for Ussuri yet, it uses the new version.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Change-Id: I3fe3956b80df054c8b56761e4c009457af5c98f0
2020-05-20 17:24:56 +00:00
Zuul 26bd248147 Merge "Remove CI for fedora-latest" 2020-05-06 15:02:56 +00:00
Jonathan Rosser cb7ace6918 Remove CI for fedora-latest
The fedora-latest build is broken on master and stable branches. OSA
do not support depoyment on Fedora so this job is removed to allow
other code to merge.

Change-Id: Iee174f76d732941ef97b75612c1420c3dee335f3
2020-05-06 09:59:52 +01:00
Andreas Jaeger 6e23deb6af Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine

Change-Id: Ic96b71596d4523e55fa4b451c99a8521dd581e4d
2020-04-25 15:07:26 +02:00
Zuul 9db7441d99 Merge "Bump the openstackdocstheme extension to 1.20" 2020-03-10 22:43:21 +00:00
pengyuesheng be148a0bad Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I14b62b4010950877d58a615de5f671ab6c866b48
2019-10-24 17:47:03 +08:00
OpenStack Release Bot 696a556aec Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I9b9b1428bb3ac7c89393af3229cfc4fbad45da7f
Sem-Ver: feature
2019-10-22 18:51:18 +00:00
OpenStack Release Bot bb429a9cdf Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I9e46d961625a402109591f20279c823b6728988b
Sem-Ver: feature
2019-04-08 09:13:17 +00:00
Jakob Englisch 7473a45d98 Chrony: new NTP server defaults
This patch drops the offline option because this role usually
applies to always-on machines and the subsystem which detects
if you're online or offline seems to be largely unstable which
causes chronyd to never attempt to synchronize time.

It also drops the minpoll and maxpoll options to leave it to
the defaults of the chronyd service, this is due to the numbers
provided not allowing the system to properly sync up time.

It also adds the 'iburst' option which will send a few quick
bursts when the system first goes up in order to get it to sync
up with time faster.

Change-Id: Iad41ef505f5a1c142ec7ffe07e4a1c08aa614235
2019-01-10 09:48:50 +00:00
Jakob Englisch 06f05b2984 Chrony: add an option to sync the hardware clock
Provide the possibility to allow users to synchronize
the RTC. It is (still) disabled by default, since
certain combinations of linux kernel version and
hardware pieces are subject to cause lockups.

"rtcautotrim 10" and rtcfile have been favoured over
"rtcsync" since "rtcsync" syncs the RTC every 11 seconds
which is not necessary IMO. "rtcautotrim 10" will only
set the time to the RTC if the gap between RTC and
the system clock exceed more than 10 seconds.

Change-Id: I2961bc554eb6caf6e6c78137a33c4fde256ae1ff
2019-01-10 09:47:48 +00:00
Jakob Englisch cca2800ea4 Chrony: make ntp server options configurable
Users may wish to remove the 'offline' option for increased
reliability, since ifup/ifdown scripts are typically not
required in (static) server environments. Futhermore it
enables users to adjust the polling timers to their needs.

Change-Id: Iafa31c03e98785a574f38bb2206b9bea9550743e
2019-01-10 00:09:56 +01:00
OpenStack Release Bot b2d87c420d Update reno for stable/rocky
Change-Id: I314a426b5b2a6a583479f032bf8859fe128097f0
2018-08-10 16:43:55 +00:00
Major Hayden a10fae4fe1 Replace Fedora 26 with 27
Now that infra is moving from Fedora 26 to 27, we need to update
the role to reflect the changing support for Fedora releases.

Change-Id: Icce8fd7ee2f8c54e6eb33beec7af96c4d1d375d6
Signed-off-by: Major Hayden <major@mhtx.net>
2018-03-07 13:30:45 +00:00
OpenStack Release Bot 5f21204aea Update reno for stable/queens
Change-Id: I19151e262ddb40eb048d4b0164df7c0d43b4fceb
2018-02-14 15:44:18 +00:00
Andreas Jaeger a327782cba Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: Ic2a850f059ba46f212cbc2acd29feccea7a44c4e
2017-11-17 07:35:47 +01:00
Zuul 422b793b80 Merge "Change PermitRootLogin to allow alternate options" 2017-11-14 16:34:28 +00:00
Andy McCrae f32cb3c081 Change PermitRootLogin to allow alternate options
PermitRootLogin can be 'yes', 'no', 'without-password',
'prohibit-password' or 'forced-commands-only'.
This patch changes the functionality to ensure that
security_sshd_permit_root_login is one of the above settings - if so, it
will use that value.

Due to the way Ansible handles "no" and "yes", we have to check if the
value is "False" (string equivalent for boolean no), and if so output
"no", otherwise output the string (which would be one of the above
options).

Previously, we could only set this value to 'no'.

Change-Id: I5ee5ff6abc4578d17d4b23d8a2fa1648508ceeed
2017-11-09 15:18:28 +00:00
Zuul dc194a1ac4 Merge "Optionally search for world-writable files" 2017-11-06 16:44:10 +00:00
Zuul 6bd3cc9115 Merge "Docs/Reno fixes" 2017-11-06 16:21:02 +00:00
Zuul ff73470848 Merge "Make check of package checksums configurable" 2017-11-06 13:16:55 +00:00
Christian Berendt baa5db7768 Make check of package checksums configurable
Change-Id: I9ac64d7995223a20b956d0a1b83bd1a60e556c03
2017-11-02 09:01:35 +01:00
Major Hayden 782bb48c14
Update to RHEL 7 STIG V1R3
This patch updates the tasks to match the changes in Version 1,
Release 3 of the RHEL 7 STIG. It adds four new configurations:

  - V-77819 (docs only, manual intervention req'd)
  - V-77821 (disabling DCCP, implemented)
  - V-77823 (docs only, manual intervention req'd)
  - V-77825 (enabling ASLR, implemented)

Closes-Bug: 1729344
Change-Id: I009fb31139e654f839d94781baf3d392c6613f46
2017-11-01 13:31:34 -05:00
Major Hayden a84b6847fc
Optionally search for world-writable files
The search for world-writable files is very intensive and causes
some long delays when running playbooks. This patch makes it
optional and updates the documentation to match.

Change-Id: I206f75597c48023a889bd7027daff2eff82b1a16
2017-10-30 13:56:13 -05:00
Major Hayden 6061695c85
Docs/Reno fixes
This patch fixes a ton of broken links, documentation, and reno errors.

Change-Id: If6f9a698a813db9aaf1eb4e10520a4c01cd00407
2017-10-25 12:00:18 -05:00
Major Hayden 231676a93e
Zuulv3 migration
Change-Id: Id9461969a3e365fb2dad0e52abaaedbcd7ebfdd7
2017-10-18 07:31:25 -05:00
Major Hayden ba98871f4b
Update to RHEL 7 V1R2 STIG
This patch updates the STIG XML to version 1 release 2.

The new release does not have V-72181 included, so the relevant
tasks and variables have been removed.

Closes-Bug: 1718772
Change-Id: I441dbacdfa82e49c0c24f86e303706ae79c7d4dd
2017-09-21 16:02:42 -05:00
Major Hayden 69481cc72b
Make default NTP servers more global
This patch uses a more global list of NTP servers as the default
for chrony.

Change-Id: I09b80082af2712a1feea47823e0f2996ec17aea4
2017-09-12 09:54:33 -06:00
Major Hayden 624b3ffc03
Add release note for F26 support
Change-Id: I4a2cb7bd295baf3043d65df792c6ea1d16dfefd5
2017-08-30 14:40:04 -05:00
Major Hayden f576f24591 Skip sysctl configs when enabled: no
The intended functionality for "enabled: no" on sysctl configurations
was to skip the config entirely and leave the variable unaltered.
However, setting "enabled: no" was causing the configuration to be
removed entirely.

This patch ensures that any sysctl variables with "enabled: no" are
skipped and left unaltered.

Closes-Bug: 1710490
Depends-On: I2607f295a924a2ec51920b5f2b27c34d5222e8ff
Change-Id: If9c8c008538b2ff631a714a8ffe16df9376dedf3
2017-08-22 13:53:39 +00:00
Marc Gariepy 3c632174e9 Change default prohibit root sshd password auth
Change-Id: Ib195041cd84bafa0cc7ca1d2ca42041618ce181d
2017-08-16 14:05:18 +00:00
Major Hayden bcce655e08 Allow epel-release package name customization
This patch allows deployers to provide a custom name/URL for the
traditional epel-release package.

Related-bug: 1702167
Change-Id: Ie5e30776d2d25a8c254f88c16e17ea15aa38ef26
2017-07-12 18:14:58 +00:00
Major Hayden a64c833a71 Conditionally install EPEL if needed
The current behavior of the hardening role is to install the
epel-release package on all deployments. This patch changes
the logic to only install the EPEL repository if the deployer
has asked for ClamAV to be installed.

The patch also provides an option to disable the installation
of EPEL entirely using a variable.

Closes-Bug: 1702167
Change-Id: I9c5e6048f95636faf2a6d71ac9217ba69ca41296
2017-07-12 15:40:33 +00:00
Major Hayden 72afbcfc96
Doc migration fixes
This brings the docs inline with the rest of the OpenStack-Ansible
repositories.

Change-Id: I310fefd254dff8f1f9103819539ea1ac82e464c0
2017-07-03 11:38:33 -05:00
Major Hayden 75b29b6b2a Add release note for password lifetime patches
Change-Id: I044801f8947eaad5b83b51819097f8717b23d123
2017-06-13 06:33:04 +00:00
Major Hayden 005fa52c66
Make login banner customizable
This patch makes it easier for deployers to customize their login
banner and it also fixes some documentation bugs around how to
configure the graphical login banner.

Closes-bug: 1679749
Change-Id: I755de63cc3965f065077c983dbf1015ad93dfa6c
2017-04-05 08:32:39 -05:00
Major Hayden dccce1d5cc
Handle RHEL 7 STIG renumbering
This patch gets the docs adjusted to work with the new RHEL 7 STIG
version 1 release. The new STIG release has changed all of the
numbering, but it maintains a link to (most) of the old STIG IDs in
the XML.

Closes-bug: 1676865
Change-Id: I65023fe63163c9804a3aec9dcdbf23c69bedb604
2017-04-04 07:22:12 -05:00
Major Hayden 9efb8153f1
Make .shosts search/removal opt in
This patch makes the search for .shosts/shosts.equiv files an opt in
operation.

Closes-Bug: 1665568
Change-Id: Ide0c69a4112981e75defeaa317609e6a5f930225
2017-03-07 12:14:15 -06:00
Major Hayden 7caec98c14 Disable file perm/ownership reset
Although setting file permissions and ownership based on the contents
of the RPM database is a good practice, it causes significant
deployment delays and can cause issues if a system administrator has
intentionally changed file permissions or ownership to meet their
specific needs.

This patch disables the tasks that set the permissions/ownership back
to their original values but leaves them enabled in the gate job.

Change-Id: I185f6755d9bddf58e23d6512f4728522c36306c0
2017-03-04 15:27:45 +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
OpenStack Release Bot 78f0c9bf63 Update reno for stable/ocata
Change-Id: I77d6c80c8b43c1e7bc71fcb32220a897e82027d9
2017-02-03 18:57:49 +00:00
Major Hayden 6f6c08f4c3 Enable RHEL 7 STIG tasks as default [+Docs]
This patch enables the RHEL 7 STIG content tasks as the default.
Documentation has also been updated to reflect the change and provide
more concise information about what is available with each release.

The OpenStack-Ansible repo is still set to use the RHEL 6 STIG until
some issues with individual roles are resolved.

Implements: blueprint security-rhel7-stig
Change-Id: Ic72d97b87c0fb16646e5a31030404e1a9ad6a469
2017-01-13 19:06:07 +00:00
Major Hayden 8efb23599c Change package state to 'present'
This patch switches the package state for all packages installed
by the security role to `present`. This change should speed up
the run time of the security role and it avoids unexpected package
upgrades on systems that run the security role on a recurring basis.

Change-Id: I28bcc1c0ebf266909bbde554411f68fde0e64a58
2016-11-14 14:17:58 -06:00
Major Hayden 784a38ec4c Speed up package install/removal
Instead of breaking up package installations and removals into separate
tasks, this patch moves them all under one task that does two execution
steps.

In addition, the security_enable_chrony variable was added to control the
installation and configuration of chrony. The tox tests for the role were
configured to skip chrony in the gate using a skipped tag, but this caused
the package install/removal task to get skipped.

Docs/release notes are included for the chrony change.

Change-Id: I1def033953b50be3911cd932fd17b10dd2c658b7
2016-11-03 13:30:56 -05:00