Puppet Class: osg::client

Defined in:
manifests/client.pp

Summary

Manage OSG client

Overview

Parameters:

  • with_condor (Boolean) (defaults to: true)

    Include Condor support

  • with_condor_ce (Boolean) (defaults to: true)

    Include Condor CE support

  • condor_lowport (Integer[0, 65535]) (defaults to: 40000)

    Condor lowport

  • condor_highport (Integer[0, 65535]) (defaults to: 41999)

    Condor highport

  • condor_schedd_host (Optional[String]) (defaults to: undef)

    Condor schedd host

  • condor_collector_host (Optional[String]) (defaults to: undef)

    Condor collector host

  • manage_firewall (Boolean) (defaults to: true)

    Manage the firewall rules

  • enable_condor_service (Boolean) (defaults to: false)

    Enable Condor service

  • enable_condor_ce_service (Boolean) (defaults to: false)

    Enable Condor CE service

  • condor_configs_override (Hash) (defaults to: {})

    Config overrides for Condor

  • condor_ce_configs_override (Hash) (defaults to: {})

    Config overrides for Condor CE



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
# File 'manifests/client.pp', line 26

class osg::client (
  Boolean $with_condor = true,
  Boolean $with_condor_ce = true,
  Integer[0, 65535] $condor_lowport = 40000,
  Integer[0, 65535] $condor_highport = 41999,
  Optional[String] $condor_schedd_host = undef,
  Optional[String] $condor_collector_host = undef,
  Boolean $manage_firewall = true,
  Boolean $enable_condor_service = false,
  Boolean $enable_condor_ce_service = false,
  Hash $condor_configs_override = {},
  Hash $condor_ce_configs_override = {},
) {

  include osg
  include osg::cacerts
  include osg::wn

  $condor_configs_default = {
    'SCHEDD_HOST'       => $condor_schedd_host,
    'COLLECTOR_HOST'    => $condor_collector_host,
    'use_x509userproxy' => 'true', # lint:ignore:quoted_booleans
    'SUBMIT_EXPRS'      => '$(SUBMIT_EXPRS), use_x509userproxy',
  }

  $condor_ce_configs_default = {
    'SCHEDD_HOST'       => $condor_schedd_host,
    'COLLECTOR_HOST'    => $condor_collector_host,
    'use_x509userproxy' => 'true', # lint:ignore:quoted_booleans
    'SUBMIT_EXPRS'      => '$(SUBMIT_EXPRS), use_x509userproxy',
  }

  $condor_configs    = merge($condor_configs_default, $condor_configs_override)
  $condor_ce_configs = merge($condor_ce_configs_default, $condor_ce_configs_override)

  contain osg::client::install
  contain osg::client::config
  contain osg::client::service

  Class['osg']
  -> Class['osg::cacerts']
  -> Class['osg::client::install']
  -> Class['osg::client::config']
  -> Class['osg::client::service']

  Class['osg::wn'] -> Class['osg::client::install']

  if $manage_firewall {
    firewall { '100 allow GLOBUS_TCP_PORT_RANGE':
      action => 'accept',
      dport  => "${osg::globus_tcp_port_range_min}-${osg::globus_tcp_port_range_max}",
      proto  => 'tcp',
    }

    firewall { '100 allow GLOBUS_TCP_SOURCE_RANGE':
      action => 'accept',
      sport  => "${osg::globus_tcp_source_range_min}-${osg::globus_tcp_source_range_max}",
      proto  => 'tcp',
    }
  }

}