Puppet Class: confdroid_jenkins::main::files

Inherits:
confdroid_jenkins::params
Defined in:
manifests/main/files.pp

Summary

Class manages Jenkins files

Overview

confdroid_jenkins::main::files.pp Module name: confdroid_jenkins Author: 12ww1160 (12ww1160@confdroid.com)



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
# File 'manifests/main/files.pp', line 6

class confdroid_jenkins::main::files (

) inherits confdroid_jenkins::params {
  if $fqdn == $js_host_fqdn {
    require confdroid_jenkins::main::dirs
    if $js_use_sudo == true {
      file { $js_sudoers_file:
        ensure   => file,
        owner    => 'root',
        group    => 'root',
        mode     => '0440',
        selrange => s0,
        selrole  => object_r,
        seltype  => etc_t,
        seluser  => system_u,
        content  => template($js_sudoers_erb),
      }
    }
    if $js_use_sudo != true {
      file { $js_sudoers_file:
        ensure => absent,
      }
    }
  }
}