Puppet Class: perfsonar::pscheduler::agent

Defined in:
manifests/pscheduler/agent.pp

Summary

Manage pschedular-agent service

Overview



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/pscheduler/agent.pp', line 3

class perfsonar::pscheduler::agent {
  assert_private()

  $config_path = '/etc/perfsonar/psconfig/pscheduler-agent.json'

  service { 'psconfig-pscheduler-agent':
    ensure => running,
    enable => true,
  }

  if $perfsonar::pscheduler_agent_config {
    file { $config_path:
      ensure  => file,
      owner   => 'perfsonar',
      group   => 'perfsonar',
      mode    => '0644',
      content => to_json_pretty($perfsonar::pscheduler_agent_config),
      notify  => Service['psconfig-pscheduler-agent'],
    }
  }
}