Skip to content

Commit

Permalink
CentOS 8 support (#229)
Browse files Browse the repository at this point in the history
* +CentOS 8
* Ignore SELinux on minimize access (for CentOS 8)

Signed-off-by: Michael Geiger <[email protected]>
  • Loading branch information
mcgege authored Oct 4, 2019
1 parent 5d21c85 commit 2317fc2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
env: INSTANCE=centos-7-puppet5 CHECK=kitchen
- name: "Integration test (CentOS 7 / Puppet 6)"
env: INSTANCE=centos-7-puppet6 CHECK=kitchen
- name: "Integration test (CentOS 8 / Puppet 6)"
env: INSTANCE=centos-8-puppet6 CHECK=kitchen
- name: "Integration test (Debian 8 / Puppet 5)"
env: INSTANCE=debian-8-puppet5 CHECK=kitchen
- name: "Integration test (Debian 9 / Puppet 5)"
Expand Down
6 changes: 6 additions & 0 deletions kitchen.do.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ platforms:
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-7.noarch.rpm
- name: centos-8-puppet6
driver_config:
image: centos-8-x64
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-8.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-8.noarch.rpm
- name: debian-8-puppet5
driver_config:
image: debian-8-x64
Expand Down
5 changes: 4 additions & 1 deletion kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ driver:
name: docker
privileged: true
require_chef_omnibus: false
#socket: tcp://10.182.149.94
use_sudo: false

provisioner:
Expand All @@ -29,6 +28,10 @@ platforms:
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-7.noarch.rpm
- name: centos-8-puppet6
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-8.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-8.noarch.rpm
- name: debian-8-puppet5
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
Expand Down
11 changes: 6 additions & 5 deletions manifests/minimize_access.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@
# this prevents changing any system-wide command from normal users
ensure_resources ('file',
{ $folders_to_restrict => {
ensure => directory,
links => follow,
mode => 'go-w',
recurse => true,
recurselimit => $recurselimit,
ensure => directory,
links => follow,
mode => 'go-w',
recurse => true,
recurselimit => $recurselimit,
selinux_ignore_defaults => true,
}
})
# Added users with homes
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"6",
"7"
"7",
"8"
]
},
{
Expand Down

0 comments on commit 2317fc2

Please sign in to comment.