Documentation by YARD 0.9.26
-Alphabetic Index
- -Puppet Class Listing A-Z
- - -
-
-
-
|
-
File Listing
--
-
-
-
- README - - -
diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6bf7d62 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "cSpell.words": [ + "getenforce", + "policycoreutils", + "setenforce", + "setools", + "setroubleshoot", + "sysconfig" + ] +} \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 1261273..36c659b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,16 +51,9 @@ pipeline { stage('puppet-lint') { steps { - sh '''find . -iname *.pp -exec /usr/local/rvm/gems/ruby-2.5.0/wrappers/puppet-lint \\ - --no-class_inherits_from_params_class-check \\ - --no-variable_scope-check \\ - --no-80chars-check \\ - --no-arrow_alignment-check \\ - --no-autoloader_layout-check \\ - --no-140chars-check \\ - --log-format "%{path}:%{line}:%{check}:%{KIND}:%{message}" {} \\; + sh '''/usr/local/bin/puppet-lint . \\ + --no-variable_scope-check \\ ''' - recordIssues aggregatingResults: true, tool: puppetLint() } } diff --git a/README.md b/README.md index 82c1f50..8f093f5 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,9 @@ All files and directories are configured with correct selinux context. If selinu * Puppet Lint * excluded tests: - * `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions * `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters. - * `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`. - * `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class. * Puppet Parser * ERB Template Parser -* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files) * Sonar Quality Gate ## Contact Us diff --git a/doc/_index.html b/doc/_index.html deleted file mode 100644 index 52c7e0d..0000000 --- a/doc/_index.html +++ /dev/null @@ -1,138 +0,0 @@ - - -
- - -
-
-
-
|
-
| t |
- - - -23 -24 -25- |
-
- # File 'manifests/init.pp', line 23
-
-class cd_selinux {
- include cd_selinux::params
-}
- |
-
cd_selinux::main::config.pp Module name: cd_selinux Author: Arne Teuke -(arne_teuke@ConfDroid.com)
- -This file is part of cd_selinux.
- -cd_selinux is used for providing automatic configuration of SELINUX. -Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is -free software: you can redistribute it and/or modify it under the terms of -the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version.
- -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details.
- -You should have received a copy of the GNU General Public License along -with this program. If not, see www.gnu.org/licenses/.
- -
- - - -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38- |
-
- # File 'manifests/main/config.pp', line 24
-
-class cd_selinux::main::config (
-
-) inherits cd_selinux::params {
-
- include cd_selinux::main::files
-
- if $sx_selinux_status == 'enforcing' {
- exec { 'set_selinux_status':
- command => 'setenforce 1',
- path => ['/usr/sbin','/usr/bin'],
- provider => shell,
- unless => 'getenforce | grep -i "enforcing"'
- }
- }
-}
- |
-
cd_selinux::main::dirs.pp Module name: cd_selinux Author: Arne Teuke -(arne_teuke@ConfDroid.com)
- -This file is part of cd_selinux.
- -cd_selinux is used for providing automatic configuration of SELINUX -Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is -free software: you can redistribute it and/or modify it under the terms of -the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version.
- -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details.
- -You should have received a copy of the GNU General Public License along -with this program. If not, see www.gnu.org/licenses/.
- -
- - - -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40- |
-
- # File 'manifests/main/dirs.pp', line 23
-
-class cd_selinux::main::dirs (
-
-) inherits cd_selinux::params {
-
- require cd_selinux::main::install
-
- file { $sx_main_dir:
- ensure => directory,
- path => $sx_main_dir,
- owner => 'root',
- group => 'root',
- mode => '0755',
- selrange => s0,
- selrole => object_r,
- seltype => selinux_config_t,
- seluser => system_u,
- }
-}
- |
-
cd_selinux::main::files.pp Module name: cd_selinux Author: Arne Teuke -(arne_teuke@ConfDroid.com)
- -This file is part of cd_selinux.
- -cd_selinux is used for providing automatic configuration of SELINUX -Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is -free software: you can redistribute it and/or modify it under the terms of -the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version.
- -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details.
- -You should have received a copy of the GNU General Public License along -with this program. If not, see www.gnu.org/licenses/.
- -
- - - -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41- |
-
- # File 'manifests/main/files.pp', line 23
-
-class cd_selinux::main::files (
-
-) inherits cd_selinux::params {
-
- require cd_selinux::main::dirs
-
- file { $sx_main_file:
- ensure => file,
- path => $sx_main_file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => selinux_config_t,
- seluser => system_u,
- content => template($sx_main_file_erb),
- }
-}
- |
-
cd_selinux::main::install.pp Module name: cd_selinux Author: Arne Teuke -(arne_teuke@ConfDroid.com)
- -This file is part of cd_selinux.
- -cd_selinux is used for providing automatic configuration of SELINUX -Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is -free software: you can redistribute it and/or modify it under the terms of -the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version.
- -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details.
- -You should have received a copy of the GNU General Public License along -with this program. If not, see www.gnu.org/licenses/.
- -
- - - -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39- |
-
- # File 'manifests/main/install.pp', line 24
-
-class cd_selinux::main::install (
-
-) inherits cd_selinux::params {
-
- require cd_resources
-
- package {$reqpackages_main:
- ensure => $pkg_ensure,
- }
-
- if $sx_install_setools == true {
- package {$reqpackages_tools:
- ensure => $pkg_ensure,
- }
- }
-}
- |
-
cd_selinux::params.pp Module name: cd_selinux Author: Arne Teuke -(arne_teuke@ConfDroid.com)
- -This file is part of cd_selinux.
- -cd_selinux is used for providing automatic configuration of SELINUX. -Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is -free software: you can redistribute it and/or modify it under the terms of -the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version.
- -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details.
- -You should have received a copy of the GNU General Public License along -with this program. If not, see www.gnu.org/licenses/.
- -
- - - -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68- |
-
- # File 'manifests/params.pp', line 38
-
-class cd_selinux::params (
-
-$pkg_ensure = 'latest',
-
-$sx_install_setools = false,
-$sx_selinux_status = 'enforcing',
-$sx_selinux_type = 'targeted',
-
-) {
-
-# installation section
-$reqpackages_main = $::operatingsystem ? {
- /(?i-mx:centos|fedora|redhat)/ => ['selinux-policy','policycoreutils'],
- }
-
-$reqpackages_tools = $::operatingsystem ? {
- /(?i-mx:centos|fedora|redhat)/ => ['setroubleshoot-server',
- 'policycoreutils-python'],
- }
-
-# directories
-$sx_main_dir = '/etc/selinux'
-
-# files
-$sx_main_file = "${sx_main_dir}/config"
-$sx_main_file_erb = 'cd_selinux/main/selinux_config.erb'
-
-
-# includes must be last
- include cd_selinux::main::config
-}
- |
-