Commit Graph

26 Commits

Author SHA1 Message Date
OpenStack Proposal Bot da6ffd7d65 Updated from OpenStack Ansible Tests
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/840353

Change-Id: Id5e2ba2e6d4b5970be4ae3115bfb090652b500bf
2022-05-03 16:17:12 +00:00
OpenStack Proposal Bot d608ecd1d1 Updated from OpenStack Ansible Tests
Change-Id: I51564aa762b8f1c5bc9bc74ef3dda0c9281ebfac
2021-03-12 22:23:17 +00:00
OpenStack Proposal Bot 4e44a54b95 Updated from OpenStack Ansible Tests
Change-Id: I816a89649849d7773c4a35452fe4989092537fea
2020-09-24 16:59:52 +00:00
OpenStack Proposal Bot 979805c904 Updated from OpenStack Ansible Tests
Change-Id: Ib5bf9b8e29485790b5083f26f3b6f3555a8a03c0
2019-07-18 22:21:19 +00:00
OpenStack Proposal Bot f0c6c1d00f Updated from OpenStack Ansible Tests
Change-Id: I2b0e1ba4214939d46638132e8e92b4292bb8051d
2019-05-09 11:36:17 +00:00
OpenStack Proposal Bot 6e34796149 Updated from OpenStack Ansible Tests
Change-Id: I1dd0a6f401960ad2bf0e3646eb38a8884521df60
2019-04-20 19:09:51 +00:00
OpenStack Proposal Bot 018594c606 Updated from OpenStack Ansible Tests
Change-Id: I87746d77ec914d398b685d2c73e28e3aaefa1745
2019-03-22 22:09:21 +00:00
OpenStack Proposal Bot 545d119033 Updated from OpenStack Ansible Tests
Change-Id: I8bc674a04d296da0ce7910a57ba76b329cea1597
2018-09-29 04:57:30 +00:00
OpenStack Proposal Bot c37247e83c Updated from OpenStack Ansible Tests
Change-Id: Ie848d6c1938f8452d56e4ea46ff22d7f49b44209
2018-04-30 05:18:11 +00:00
OpenStack Proposal Bot 7077af121d Updated from OpenStack Ansible Tests
Change-Id: Iec13ac9ca48a1c66290c6b1582fbb8e7e561e033
2018-03-27 15:59:31 +00:00
OpenStack Proposal Bot ff481800fb Updated from OpenStack Ansible Tests
Change-Id: I660da41e4fc926db227a6def2d3d0280299554f8
2017-11-10 13:18:58 +00:00
OpenStack Proposal Bot e79c6c0594 Updated from OpenStack Ansible Tests
Change-Id: I1b987a9bb3975ebbfcb55e69568e4d0c1c39c5bb
2017-10-24 14:26:47 +00:00
Major Hayden 231676a93e
Zuulv3 migration
Change-Id: Id9461969a3e365fb2dad0e52abaaedbcd7ebfdd7
2017-10-18 07:31:25 -05:00
Major Hayden 78d37afccc
Manually check apparmor_status
The apparmor systemd unit file simply calls an old SysV init script
to load AppArmor profiles. The init script exits and systemd has no
idea if it's still running or not. This causes Ansible to start
the apparmor unit each time the playbook runs, which breaks the
idempotency checks.

This patch checks the apparmor_status output directly to see what the
status of AppArmor actually is. If the module is loaded, then we
should not try to start AppArmor with the unit file again.

This patch also includes the updates from the openstack-ansible-tests
repository that were included in
https://review.openstack.org/#/c/488489/ so that the gate can be
unblocked.

Partial-Bug: 1710675
Change-Id: If253714d0ca4b5a3d324255751e6f6615ca75dde
2017-08-16 09:02:42 -05:00
Markos Chandras 1a02653708 Sync test files with the openstack-ansible-tests repository
This syncs most of the common files with the openstack-tests repository.
This effectively removes the Ubuntu 14.04 support from the Vagrantfile
as well as the RHEL6 STIG V-38496 workaround for it. This also removes
the now unused tests/vagrant.yml file and uses the tests/test.yml like
the upstream OpenStack CI does.

However, it doesn't sync the bindep.txt file since it doesn't quite
match what we have in the openstack-ansible-tests repository so the
shared one needs to be fixed first.

Finally, it adds a new doc/.gitignore file to exclude the generated
documentation file. This is necessary in order for the shared .gitignore
one to be used in the root of the repository.

Change-Id: Ia34979af9029ffb03fb525679356e6d9f3a039a6
2017-06-27 13:25:35 +01:00
Major Hayden 97186f8339 Initial Fedora 25 support
This patch adds the initial support for Fedora 25 in the security
role. A non-voting gate job is proposed in the following review:

  https://review.openstack.org/#/c/467297/

Docs and general cleanup for Fedora/Debian support is coming soon.

Change-Id: Ia6c551d2f33255f7f71f7ba9bb328fc8f17f61e0
2017-05-31 13:33:34 +00:00
Major Hayden 672c028da3 Fix pip check in run_tests.sh
The logic in the pip check was backwards and this patch fixes it.

Change-Id: Idecfaee991f87f5bfd7a47233b56a37158e816ed
2017-01-06 10:56:19 -06:00
Major Hayden cce8ed6bd0 Update and clean up run_tests.sh
The run_tests.sh script fails when it is run multiple times on CentOS.
The `bindep` run returns an empty list of packages and then `yum`
exits with an error since no packages were provided to install.

This patch checks the length of the `bindep` output and skips the `yum`
installation when the package list is empty.

The patch also cleans up some of the old cruft left over from previous
scripts and avoids repetition.

Change-Id: Ibe4d0fd9d608dc725c354723143e60c89cd99b4b
2017-01-04 12:26:31 -06:00
Kevin Carter e5a346f4f5 Update testing bits for consistency
Change-Id: I9d1951c5b594fb20a543d90a22fac510973d8a0d
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 08:39:55 +00:00
Shashank Tavildar 2c4393f093 Added SNI support for os_security role via OS packages
Some Linux distributions, such as CentOS 7 and Xenial, have trouble
validating SSL certificates when using get_url with servers
that use Server Name Indication (SNI).

This patch adds those packages to the list of required packages and
uses bindep to install them in developer test environments the same
way that the gate tests install them.

Change-Id: I54118554468278b33c569b4ce19fee5d33454572
2016-08-18 15:16:23 +00:00
Major Hayden 8d2cde75af Add python-apt for check mode
Ansible 2.x requires the python-apt package for check mode to work
properly. This patch ensures that the package is installed for the
gate as well as individual testers.

Change-Id: I0848e8f4e8bdbacf5bf8a2dda0615c0faba736d4
2016-08-11 16:03:08 -05:00
Major Hayden d56468f98a Docs: Add developer guide for security role
This patch adds detailed instructions for developers who are working on
the security role. The patch also adds CentOS/RHEL 7 support to the
run_tests.sh script.

Change-Id: I0ab79f1e4abdb3deeca9b48da3b9e4f42be37980
2016-06-08 13:07:06 -05:00
Jesse Pretorius 19999b4ed8 Add dependencies for paramiko 2.0
Paramiko version 2.0 has been released. It now uses the Python library
cryptography. Installing this requires additional system packages. This
commit adds in the appropriate packages required by cryptography based
on its documentation [1].

An alternative approach would have been to constrain the version of
Paramiko however the project describes the 1.x versions as relying on
insecure dependencies [2].

[1] https://cryptography.io/en/latest/installation/
[2] http://www.paramiko.org/installing.html

Change-Id: I33a6f9ab1aecf28e82ea756e41c482820758157f
2016-05-03 08:58:41 +01:00
Major Hayden 20106572ed Merging check/functional jobs into one
Change-Id: I33620151414d647b904db41acf849086004d5234
2015-12-03 08:58:37 -06:00
Major Hayden b204440ddc Updating tests for openstack-ansible-security
This patch adds a framework for testing the role with check mode as well as a
fully functional test that secures a system.  The two new tests will be
enabled by default when the check mode improvements are merged and some common
playbook failures are removed.

Closes-bug: 1521229

Change-Id: Iaffb982c4c9776bcc4b219e257d83591d58d0cee
2015-12-02 20:50:54 +00:00
Jesse Pretorius 58ac7a8a7a Enable role testing and make structure ansible-galaxy compatible
This patch adds the bits needed to implement automated syntax/lint
role testing. It also moves the role into the base repository so
that the role becomes fully compatible with ansible-galaxy to
improve the role's consumability.

Change-Id: Ia79cd5dedbbe50dfdf46688830a989ff0897832a
2015-10-09 11:47:23 +00:00