Documentation by YARD 0.9.26
-Alphabetic Index
- -Puppet Class Listing A-Z
- - -
-
-
-
|
-
File Listing
--
-
-
-
- README - - -
diff --git a/Jenkinsfile b/Jenkinsfile index 5258707..2787b74 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 5ce8e73..931b9e8 100644 --- a/README.md +++ b/README.md @@ -39,15 +39,9 @@ ALmost every puppet setup is done in very custom ways, and hence the way the mod * 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) -* Markdown-lint -* Spellcheck * Sonar Quality Gate ## Contact Us diff --git a/doc/_index.html b/doc/_index.html deleted file mode 100644 index 5c6c398..0000000 --- a/doc/_index.html +++ /dev/null @@ -1,168 +0,0 @@ - - -
- - -
-
-
-
|
-
| t |
- - - -6 -7 -8- |
-
- # File 'manifests/init.pp', line 6
-
-class puppet_cd {
- include puppet_cd::params
-}
- |
-
puppet_cd::firewall::iptables.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44- |
-
- # File 'manifests/firewall/iptables.pp', line 6
-
-class puppet_cd::firewall::iptables (
-
-) inherits puppet_cd::params {
- if $fqdn == $pt_pm_fqdn {
- firewall { '38140 open port 8140':
- proto => 'tcp',
- dport => '8140',
- jump => 'accept',
- }
- firewall { '38443 open port 8443':
- proto => 'tcp',
- dport => '8443',
- jump => 'accept',
- }
- }
-
- if $fqdn == $pt_db_fqdn {
- if $pt_use_ssl_only != true {
- firewall { "3${pt_no_ssl_port} open port ${pt_no_ssl_port}":
- proto => 'tcp',
- dport => $pt_no_ssl_port,
- jump => 'accept',
- }
- firewall { "3${pt_ssl_port} open port ${pt_ssl_port}":
- proto => 'tcp',
- dport => $pt_ssl_port,
- jump => 'accept',
- }
- }
-
- if $pt_use_ssl_only == true {
- firewall { "3${pt_ssl_port} open port ${pt_ssl_port}":
- proto => 'tcp',
- dport => $pt_ssl_port,
- jump => 'accept',
- }
- }
- }
-}
- |
-
puppet_cd::main::config.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14- |
-
- # File 'manifests/main/config.pp', line 6
-
-class puppet_cd::main::config (
-
-) inherits puppet_cd::params {
- include puppet_cd::server::service
-
- if $pt_use_puppetdb == true {
- include puppet_cd::puppetdb::service
- }
-}
- |
-
puppet_cd::main::dirs.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22- |
-
- # File 'manifests/main/dirs.pp', line 6
-
-class puppet_cd::main::dirs (
-
-) inherits puppet_cd::params {
- require puppet_cd::main::install
-
- file { $pt_main_dir:
- ensure => directory,
- path => $pt_main_dir,
- owner => 'root',
- group => 'root',
- mode => '0755',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- }
-}
- |
-
puppet_cd::main::files.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46- |
-
- # File 'manifests/main/files.pp', line 6
-
-class puppet_cd::main::files (
-
-) inherits puppet_cd::params {
- require puppet_cd::main::dirs
-
- if $fqdn != $pt_pm_fqdn {
- file { $pt_puppet_conf_file:
- ensure => file,
- path => $pt_puppet_conf_file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- content => template($pt_puppet_conf_erb),
- notify => Service[$pt_agent_service],
- }
- }
-
- if $fqdn == $pt_pm_fqdn {
- file { $pt_puppet_conf_file:
- ensure => file,
- path => $pt_puppet_conf_file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- content => template($pt_puppet_conf_erb),
- notify => Service[$pt_agent_service,$pt_server_service],
- }
- }
-
- if $pt_use_puppetdb == true {
- file { $pt_puppetdb_conf_file:
- ensure => filet,
- path => $pt_puppetdb_conf_file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- content => template($pt_puppetdb_conf_erb),
- notify => Service[$pt_agent_service,$pt_server_service],
- }
- }
-}
- |
-
puppet_cd::main::install.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24- |
-
- # File 'manifests/main/install.pp', line 6
-
-class puppet_cd::main::install (
-
-) inherits puppet_cd::params {
- package { $pt_agent_pkg:
- ensure => $pt_pkg_ensure,
- }
-
- if $fqdn == $pt_pm_fqdn {
- package { $pt_server_pkg:
- ensure => $pt_pkg_ensure,
- }
- }
-
- if $fqdn == $pt_db_fqdn {
- package { $pt_db_pkg:
- ensure => $pt_pkg_ensure,
- }
- }
-}
- |
-
puppet_cd::main::user.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46- |
-
- # File 'manifests/main/user.pp', line 6
-
-class puppet_cd::main::user (
-
-) inherits puppet_cd::params {
- if ($fqdn == $pt_pm_fqdn) and ($pt_manage_user == true) {
- user { $pt_user:
- ensure => present,
- name => $pt_user,
- allowdupe => false,
- comment => $pt_user_comment,
- gid => $pt_user,
- managehome => true,
- home => $pt_user_home,
- shell => $pt_user_shell,
- }
-
- group { $pt_user:
- ensure => present,
- name => $pt_user,
- allowdupe => false,
- }
- }
-
- if ($fqdn == $pt_db_fqdn) and ($pt_manage_db_user == true) {
- user { $pt_db_user:
- ensure => present,
- name => $pt_db_user,
- allowdupe => false,
- comment => $pt_db_user_comment,
- gid => $pt_db_user,
- managehome => true,
- home => $pt_db_user_home,
- shell => $pt_db_user_shell,
- }
-
- group { $pt_db_user:
- ensure => present,
- name => $pt_db_user,
- allowdupe => false,
- }
- }
-}
- |
-
puppet_cd::main::yumrepo.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13- |
-
- # File 'manifests/main/yumrepo.pp', line 6
-
-class puppet_cd::main::yumrepo (
-
-) inherits puppet_cd::params {
- # install repo rpm, which will install all the yum repos
- package { $pt_package_url:
- ensure => $pt_pkg_ensure,
- }
-}
- |
-
puppet_cd::params.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid) settings are applied. any other fqdn # will be -considered a puppet agent.
- -
- - - -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218- |
-
- # File 'manifests/params.pp', line 81
-
-class puppet_cd::params (
-
- Boolean $pt_manage_fw = true,
- String $pt_pm_fqdn = 'puppetmaster.example.net',
- String $pt_db_fqdn = 'puppetdb.example.net',
-
- # installation
- String $pt_pkg_ensure = 'present',
- String $pt_agent_pkg = 'puppet-agent',
- String $pt_server_pkg = 'puppetserver',
- Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
-
- # user settings
- ## puppet user
- Boolean $pt_manage_user = true,
- String $pt_user = 'puppet',
- String $pt_user_comment = 'puppetserver daemon',
- String $pt_user_home = '/opt/puppetlabs/server/data/puppetserver',
- String $pt_user_shell = '/sbin/nologin',
- ## puppetdb user
- Boolean $pt_manage_db_user = true,
- String $pt_db_user = 'puppetdb',
- String $pt_db_user_comment = 'PuppetDB daemon',
- String $pt_db_user_home = '/opt/puppetlabs/server/data/puppetdb',
- String $pt_db_user_shell = '/sbin/nologin',
- # templates
- ## puppet
- String $pt_environment = 'production',
- Boolean $pt_allow_duplicate_certs = false,
- String $pt_basemodulepath = '/etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules',
- String $pt_logdir = '/var/log/puppetlabs/puppet',
- String $pt_pluginfactsource = 'pluginfacts',
- String $pt_pluginsource = 'plugins',
- String $pt_reports = 'foreman',
- Boolean $pt_show_diff = false,
- Boolean $pt_default_schedules = false,
- String $pt_masterport = '8140',
- Boolean $pt_noop = false,
- Boolean $pt_pluginsync = true,
- Boolean $pt_report = true,
- String $pt_runinterval = '1800',
- Boolean $pt_splay = false,
- String $pt_splaylimit = '1800',
- Boolean $pt_usecacheonfailure = true,
- String $pt_autosign = '/etc/puppetlabs/puppet/autosign.conf',
- Boolean $pt_ca = true,
- String $pt_external_nodes = '/etc/puppetlabs/puppet/node.rb',
- String $pt_logdir_master = '/var/log/puppetlabs/puppetserver',
- String $pt_node_terminus = 'exec',
- Boolean $pt_strict_variables = false,
- Boolean $pt_storeconfigs = true,
- String $pt_storeconfigs_backend = 'puppetdb',
- String $pt_parser = 'current',
- Boolean $pt_cert_revocation = true,
-## puppetdb
- Boolean $pt_use_puppetdb = false,
- String $pt_logging_max_file_size = '200MB',
- String $pt_logging_max_history = '90',
- String $pt_logging_total_size = '1GB',
- String $pt_com_proc_threads = '4',
- String $pt_concurrent_writes = '4',
- String $pt_db_subname = '//localhost:5432/puppetdb',
- String $pt_db_username = 'foobar',
- String $pt_db_password = 'foobar',
- String $pt_gc_interval = '60',
- String $pt_log_slow_statements = '10',
- String $pt_no_ssl_port = '8080',
- String $pt_ssl_port = '8081',
- Boolean $pt_use_ssl_only = true,
- String $pt_puppetdb_source_lan = '0.0.0.0/0',
- Boolean $pt_soft_write_failure = false,
- String $pt_no_ssl_host = '0.0.0.0',
- String $pt_ssl_host = '0.0.0.0',
- String $pt_ssl_key = '/etc/puppetlabs/puppetdb/ssl/private.pem',
- String $pt_ssl_cert = '/etc/puppetlabs/puppetdb/ssl/public.pem',
- String $pt_ssl_ca_cert = '/etc/puppetlabs/puppetdb/ssl/ca.pem',
- Boolean $pt_log_access = false,
- String $pt_access_log_config = '/etc/puppetlabs/puppetdb/request-logging.xml',
- Boolean $pt_enable_repl = false,
- String $pt_repl_port = '8082',
- String $pt_repl_host = '127.0.0.1',
-
-) {
- $fqdn = $facts['networking']['fqdn']
-
-# directories
-## puppet
- $pt_main_dir = '/etc/puppetlabs'
- $pt_puppetdir = "${pt_main_dir}/puppet"
- $pt_code_dir = "${pt_main_dir}/code"
- $pt_environmentspath = "${pt_code_dir}/environments"
- $pt_ssldir = "${pt_puppetdir}/ssl"
- $pt_privatekeydir = "${pt_ssldir}/private_keys"
- $pt_rundir = '/var/run/puppetlabs'
- $pt_rundir_master = '/var/run/puppetlabs/puppetserver'
- $pt_vardir = '/opt/puppetlabs/puppet/cache'
- $pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
-## puppetdb
- $pt_puppetdb_main = '/etc/puppetlabs/puppetdb'
- $pt_puppetdb_conf_d = "${pt_puppetdb_main}/conf.d"
- $pt_puppetdb_ssl = "${pt_puppetdb_main}/ssl"
- $pt_puppetdb_log = '/var/log/puppetlabs/puppetdb'
- $pt_puppetdb_var_dir = '/opt/puppetlabs/server/data/puppetdb'
-
-# files
-## puppet
- $pt_puppet_conf_file = "${pt_puppetdir}/puppet.conf"
- $pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
- $pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
- $pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
-## puppetdb
- $pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
- $pt_bootstrap_erb = 'cd_puppet/puppetdb/bootstrap.cfg.erb'
- $pt_puppetdb_access_log = "${pt_puppetdb_log}/puppetdb-access"
- $pt_request_logging_conf = "${pt_puppetdb_main}/request-logging.xml"
- $pt_request_logging_erb = 'cd_puppet/puppetdb/request_logging.xml.erb'
- $pt_logback_conf = "${pt_puppetdb_main}/logback.xml"
- $pt_logback_erb = 'cd_puppet/puppetdb/logback.xml.erb'
- $pt_puppetdb_config_ini = "${pt_puppetdb_conf_d}/config.ini"
- $pt_puppetdb_config_erb = 'cd_puppet/puppetdb/config.ini.erb'
- $pt_puppetdb_database_ini = "${pt_puppetdb_conf_d}/database.ini"
- $pt_puppetdb_database_erb = 'cd_puppet/puppetdb/database.ini.erb'
- $pt_puppetdb_jetty_ini = "${pt_puppetdb_conf_d}/jetty.ini"
- $pt_puppetdb_jetty_erb = 'cd_puppet/puppetdb/jetty.ini.erb'
- $pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
- $pt_puppetdb_conf_erb = 'cd_puppet/puppetdb/puppetdb.conf.erb'
- $pt_puppetdb_repl_ini = "${pt_puppetdb_conf_d}/repl.ini"
- $pt_puppetdb_repl_erb = 'cd_puppet/puppetdb/repl.ini.erb'
-
-# service
- $pt_server_service = 'puppetserver'
- $pt_agent_service = 'puppet'
- $pt_db_service = 'puppetdb'
-
-#
- # includes must be last
- include puppet_cd::main::config
-}
- |
-
puppet_cd::puppetdb::dirs.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -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- |
-
- # File 'manifests/puppetdb/dirs.pp', line 6
-
-class puppet_cd::puppetdb::dirs (
-
-) inherits puppet_cd::params {
- if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
- require puppet_cd::main::install
-
- # main directory
- file { $pt_puppetdb_main:
- ensure => directory,
- path => $pt_puppetdb_main,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0750',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- }
-
- # conf.d directory
- file { $pt_puppetdb_conf_d:
- ensure => directory,
- path => $pt_puppetdb_conf_d,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0750',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- }
-
- # ssl directory
- file { $pt_puppetdb_ssl:
- ensure => directory,
- path => $pt_puppetdb_ssl,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0750',
- selrange => s0,
- selrole => object_r,
- seltype => etc_t,
- seluser => system_u,
- }
-
- # log dir
- file { $pt_puppetdb_log:
- ensure => directory,
- path => $pt_puppetdb_log,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0700',
- selrange => s0,
- selrole => object_r,
- seltype => var_log_t,
- seluser => system_u,
- }
- }
-}
- |
-
puppet_cd::puppetdb::files.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -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 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117- |
-
- # File 'manifests/puppetdb/files.pp', line 6
-
-class puppet_cd::puppetdb::files (
-
-) inherits puppet_cd::params {
- if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
- require puppet_cd::puppetdb::dirs
-
- # bootstrap.cfg
- file { $pt_bootstrap_conf:
- ensure => file,
- path => $pt_bootstrap_conf,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_bootstrap_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # requestlogging.xml
- file { $pt_request_logging_conf:
- ensure => file,
- path => $pt_request_logging_conf,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_request_logging_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # logback.xml
- file { $pt_logback_conf:
- ensure => file,
- path => $pt_logback_conf,
- owner => 'root',
- group => 'root',
- mode => '0644',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_logback_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # config.ini
- file { $pt_puppetdb_config_ini:
- ensure => file,
- path => $pt_puppetdb_config_ini,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0640',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_puppetdb_config_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # database.ini
- file { $pt_puppetdb_database_ini:
- ensure => file,
- path => $pt_puppetdb_database_ini,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0640',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_puppetdb_database_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # jetty.ini
- file { $pt_puppetdb_jetty_ini :
- ensure => file,
- path => $pt_puppetdb_jetty_ini ,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0640',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_puppetdb_jetty_erb),
- notify => Service[$pt_puppetdb],
- }
-
- # repl.ini
- file { $pt_puppetdb_repl_ini:
- ensure => file,
- path => $pt_puppetdb_repl_ini,
- owner => $pt_puppetdb_user,
- group => $pt_puppetdb_user,
- mode => '0640',
- selrange => s0,
- selrole => object_r,
- seltype => puppet_etc_t,
- seluser => system_u,
- content => template($pt_puppetdb_repl_erb),
- notify => Service[$pt_puppetdb],
- }
- }
-}
- |
-
puppet_cd::puppetdb::service.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19- |
-
- # File 'manifests/puppetdb/service.pp', line 6
-
-class puppet_cd::puppetdb::service (
-
-) inherits puppet_cd::params {
- if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
- require puppet_cd::puppetdb::files
-
- service { $pt_puppetdb:
- ensure => running,
- hasstatus => true,
- hasrestart => true,
- enable => true,
- }
- }
-}
- |
-
puppet_cd::server::service.pp Module name: puppet_cd Author: Arne Teuke -(arne_teuke@confdroid)
- -
- - - -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43- |
-
- # File 'manifests/server/service.pp', line 6
-
-class puppet_cd::server::service (
-
-) inherits puppet_cd::params {
- require puppet_cd::main::files
-
- # manage agent service on all nodes
- service { $pt_agent_service:
- ensure => running,
- hasstatus => true,
- hasrestart => true,
- enable => true,
- }
-
- # manage puppet server service
- if $fqdn == $pt_pm_fqdn {
- require puppet_cd::firewall::iptables
- require puppet_cd::main::user
-
- service { $pt_server_service:
- ensure => running,
- hasstatus => true,
- hasrestart => true,
- enable => true,
- }
- }
-
- # manage puppetdb service
- if $fqdn == $pt_db_fqdn {
- require puppet_cd::firewall::iptables
-
- service { $pt_db_service:
- ensure => running,
- hasstatus => true,
- hasrestart => true,
- enable => true,
- }
- }
-}
- |
-