Version information
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.0.0 < 6.0.0
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'ghoneycutt-selinux', '2.0.0'
Learn more about managing modules with a PuppetfileDocumentation
selinux module
===
Compability
This module has been tested to work on the following systems with Puppet
versions 4 and 5. For an exact matrix of Puppet and Ruby versions, please
consult .travis.yml
.
- EL 5
- EL 6
- EL 7
Documented with Puppet Strings
Class Descriptions
Class selinux
Description
The selinux class manages SELinux for enterprise linux systems. By default, it enables SELinux. To use, simply
include ::selinux
.
Parameters
See man page selinux(8) for more information regarding the configuration settings.
mode (type: String)
Operation mode of SELinux, valid values are 'enforcing', 'permissive' and 'disabled'.
- Default: 'disabled'
type (type: String)
The type of policies in use, valid values are 'targeted' and 'strict'.
- Default: 'targeted'
setlocaldefs (type: String, Integer or Undef)
String or Integer to pass to SETLOCALDEFS option. Valid values are 0
and 1
. If left undef, then the SETLOCALDEFS section is not included in
the config_file
.
- Default: undef
config_file (type: Stdlib::Absolutepath)
The path to the selinux configuration path to manage.
- Default: '/etc/selinux/config'
Examples
To enable SELinux
include ::selinux
To disable SELinux
class { '::selinux':
mode => 'disabled',
}
2.0.0 - 2017-12-12 Garrett Honeycutt code@garretthoneycutt.com
- Add support for EL7
- Drop support for Puppet 3. Now using data types. Backward compatibility kept with parameter names and values though now SELinux is enabled by default.
1.0.0 - 2014-04-06 Garrett Honeycutt code@garretthoneycutt.com
- Got to 1.0.0 quality with inspiration from Fabian Arrotin's selinux talk at LOADays
0.0.1 - 2013-05-17 Garrett Honeycutt code@garretthoneycutt.com
- Initial release
Dependencies
- puppetlabs/stdlib (>= 4.24.0 < 6.0.0)
Copyright (C) 2010-2017 Garrett Honeycutt <code@garretthoneycutt.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.