Commit graph

453 commits

Author SHA1 Message Date
Matt Willsher
83606e2f13
Merge pull request #142 from Jakuje/crypto-policies
Support /etc/sysconfig/sshd to override crypto policies and handle more advanced use cases
2020-10-15 10:06:44 +01:00
Matt Willsher
62ae5d7856
Merge branch 'master' into crypto-policies 2020-10-15 10:02:03 +01:00
Matt Willsher
b1f4d9c9bb
Merge pull request #143 from Jakuje/match
Implement more natural match blocks and test them
2020-10-15 09:52:44 +01:00
Jakub Jelen
6ed5341f32 Test match blocks generators 2020-10-08 18:45:01 +02:00
Jakub Jelen
e31592899c Allow listing match blocks in more nature manner 2020-10-08 18:11:00 +02:00
Jakub Jelen
1f9b67d830 test sysconfig template 2020-10-06 21:21:18 +02:00
Jakub Jelen
71b3f87308 Add support for sysconfig on Fedora/RHEL
This is useful for opting out from system-wide cryto policy for SSH
or configuring advanced use case (strong RNG seed).

Fixes: #141
2020-10-06 21:11:39 +02:00
Matt Willsher
b6e9e863d7
Merge pull request #139 from Jakuje/patch-1
README: Fix missing code block termination
2020-10-03 15:35:33 +01:00
Jakub Jelen
a10ddff535
README: Fix missing code block termination 2020-09-24 10:55:54 +02:00
Matt Willsher
06ab644d58
Merge pull request #137 from willshersystems/fix-linting
Remove extra blank line
2020-09-24 07:51:10 +01:00
Matt Willsher
5841136488 Remove extra blank line 2020-09-23 21:42:00 +01:00
Matt Willsher
7a02394845
Merge pull request #136 from willshersystems/disable-broken-ansible-lint-actions
Disable broken ansible-lint-actions
2020-09-23 21:35:26 +01:00
Matt Willsher
bd6efc7fd3
Merge branch 'master' into disable-broken-ansible-lint-actions 2020-09-23 21:29:44 +01:00
Matt Willsher
b598348356
Merge pull request #135 from Jakuje/cleanup
Cleanup lint issues, update documentation, fix typos
2020-09-23 21:28:53 +01:00
Matt Willsher
9c2b81ff4d
Disable broken ansible-lint-actions
Ansible lint actions are currently broken for overrides of the Ansible version.  Disable until fixed.
2020-09-23 21:28:29 +01:00
Matt Willsher
12e8b0aebc
Merge branch 'master' into cleanup 2020-09-23 21:25:10 +01:00
Matt Willsher
5317dd72cb
Merge pull request #134 from Jakuje/tests
Implement more sanity tests
2020-09-23 21:23:32 +01:00
Jakub Jelen
208a9cf348 README: Fix typos and trailing whitespace 2020-09-23 14:49:42 +02:00
Jakub Jelen
203a1a5eab README: Update the list of supported OSes 2020-09-23 14:49:42 +02:00
Jakub Jelen
f0de8fb16e Backup old configuration by default as recommended by OASIS
https://github.com/oasis-roles/meta_standards#generating-files-from-templates
2020-09-23 14:49:42 +02:00
Jakub Jelen
66a4ccbcee meta: Update list of supported releases 2020-09-23 14:49:42 +02:00
Jakub Jelen
707e2e64a3 Update defaults for Fedora supporting Include keyword 2020-09-23 14:49:42 +02:00
Jakub Jelen
e6798c5d1e Fix default configuration for RHEL7 2020-09-23 14:49:42 +02:00
Jakub Jelen
9e7eae712d Reformat yaml files to avoid wrong indentation, trailing spaces and long lines 2020-09-23 14:49:42 +02:00
Jakub Jelen
2c574fdcba avoid the use of True and False for boolean values
These are not in yml specification and come from python. Behavior
can differ in particular YAML implementation.
2020-09-23 14:43:40 +02:00
Jakub Jelen
e5ad657038 Test alternative configuration file creation 2020-09-23 14:35:09 +02:00
Jakub Jelen
faef930c9a .travis.yml: Use more appropriate language tag 2020-09-23 14:35:09 +02:00
Jakub Jelen
cdb7fd621c .travis.yml: The sudo has no effect in travis anymore 2020-09-23 14:35:09 +02:00
Jakub Jelen
2744b2e225 Document and test alternative invocation of role through include_role 2020-09-23 14:35:09 +02:00
Jakub Jelen
1266519c23 Add test case for uncommon configuration options 2020-09-23 14:35:09 +02:00
Jakub Jelen
e2bc8f14e5 Test setting common configuration options 2020-09-23 14:35:09 +02:00
Jakub Jelen
9b3e83b853 Move the basic test to test_default 2020-09-23 14:16:24 +02:00
Matt Willsher
fb231decf2
Merge pull request #132 from noonedeadpunk/ansible_distribution_version
Use ansible_distribution_major_version in variables
2020-09-23 07:27:50 +01:00
Dmitriy Rabotyagov
065812b345 Use ansible_distribution_major_version in variables
In order to collect variables, it's worth using
ansible_distribution_major_version as ansible_distribution_version
changes behaviour between ansible releases, ie [1]

This causes CentOS jobs fail with 2.8.13, as
ansible_distribution_version there is '7.8' [2]

[1] https://github.com/ansible/ansible/issues/57463
[2] https://zuul.opendev.org/t/openstack/build/e5ae88e08ac546ccb0e7ab99f8f0a051/log/zuul-info/host-info.centos-7.yaml#141
2020-09-21 18:11:28 +03:00
Matt Willsher
6e9c4c1811
Merge pull request #130 from willshersystems/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2020-09-18 22:17:43 +01:00
Matt Willsher
740da51385
Create CODE_OF_CONDUCT.md 2020-09-18 22:15:19 +01:00
Matt Willsher
9e79cc3802
Merge pull request #115 from thalunil/master
OpenBSD and ansible_distribution_major_version
2020-09-18 21:58:11 +01:00
Matt Willsher
8815689d72
Merge branch 'master' into master 2020-09-18 21:53:45 +01:00
Matt Willsher
2f83fe5428
Merge pull request #129 from willshersystems/ansible-2.8
Minimum version is now Ansible 2.8
2020-09-18 21:53:24 +01:00
Matt Willsher
4a2dc9a381
Merge branch 'master' into master 2020-09-18 21:42:16 +01:00
Matt Willsher
2ebe1c6917
Update install.yml 2020-09-18 21:37:55 +01:00
Matt Willsher
d84bc14fdd
Remove test for Ansible 2.7
Ansible 2.7 is no longer maintained and ansible-lint requires >=2.8
2020-09-18 21:35:10 +01:00
Matt Willsher
5fe1801c7e
Merge pull request #124 from ahmadalli/master
exit_host on ansible >= 2.8
2020-09-18 21:31:24 +01:00
Matt Willsher
31ee885d57
Merge branch 'master' into master 2020-09-18 21:28:57 +01:00
Matt Willsher
68d0577647
Merge pull request #127 from willshersystems/feature/ci-updates
Ubuntu focal, CI updates, code quality improvements
2020-09-18 20:56:14 +01:00
Matt Willsher
78c56e2129 Add pre-commit, fix issues 2020-09-18 20:49:22 +01:00
Matt Willsher
ed989f571c Update CI to Ubuntu focal, add Ubuntu focal support to module 2020-09-18 20:48:56 +01:00
Matt Willsher
a3fe654044
Merge pull request #126 from Jakuje/new-options
Add new options from OpenSSH 8.3p1 (including CASignatureAlgorithms)
2020-09-18 19:02:41 +01:00
Jakub Jelen
b9fb457d2b Add missing configuration options from current OpenSSH 8.3p1 (Fedora 32)
Fixes #125
2020-09-14 18:30:20 +02:00
Jakub Jelen
babfb5542c Remove duplicate GatewayPorts 2020-09-14 18:30:20 +02:00