Puppet Class: osg::client::config

Defined in:
manifests/client/config.pp

Summary

Manage OSG client configs

Overview



3
4
5
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
# File 'manifests/client/config.pp', line 3

class osg::client::config {

  $globus_tcp_port_range_min    = $osg::globus_tcp_port_range_min
  $globus_tcp_port_range_max    = $osg::globus_tcp_port_range_max
  $globus_tcp_source_range_min  = $osg::globus_tcp_source_range_min
  $globus_tcp_source_range_max  = $osg::globus_tcp_source_range_max
  $condor_lowport               = $osg::client::condor_lowport
  $condor_highport              = $osg::client::condor_highport
  $condor_configs               = $osg::client::condor_configs
  $condor_ce_configs            = $osg::client::condor_ce_configs

  if $osg::client::enable_condor_service {
    $condor_notify = Service['condor']
  } else {
    $condor_notify = undef
  }

  if $osg::client::enable_condor_ce_service {
    $condor_ce_notify = Service['condor-ce']
  } else {
    $condor_ce_notify = undef
  }

  file { '/etc/profile.d/globus_firewall.sh':
    ensure  => 'file',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template('osg/client/globus_firewall.sh.erb'),
  }

  file { '/etc/profile.d/globus_firewall.csh':
    ensure  => 'file',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template('osg/client/globus_firewall.csh.erb'),
  }

  if $osg::client::with_condor {
    # file { '/etc/condor/config.d/10firewall_condor.config':
    #   ensure  => 'file',
    #   owner   => 'root',
    #   group   => 'root',
    #   mode    => '0644',
    #   content => template('osg/client/10firewall_condor.config.erb'),
    #   notify  => Service['condor'],
    # }
    #
    # file_line { 'condor DAEMON_LIST':
    #   path    => '/etc/condor/config.d/00personal_condor.config',
    #   line    => 'DAEMON_LIST = COLLECTOR, MASTER, NEGOTIATOR, SCHEDD',
    #   match   => '^DAEMON_LIST.',
    #   notify  => Service['condor'],
    # }

    file { '/etc/condor/config.d/99-local.conf':
      ensure  => 'file',
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
      content => template('osg/client/condor-99-local.conf.erb'),
      notify  => $condor_notify,
    }

    file { '/etc/condor-ce/config.d/99-local.conf':
      ensure  => 'file',
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
      content => template('osg/client/condor-ce-99-local.conf.erb'),
      notify  => $condor_ce_notify,
    }
  }

}