Puppet Class: openondemand::service

Defined in:
manifests/service.pp

Summary

Manage Open OnDemand service

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

class openondemand::service {
  assert_private()

  exec { 'nginx_stage-app_clean':
    command     => '/opt/ood/nginx_stage/sbin/nginx_stage app_clean',
    refreshonly => true,
    subscribe   => [
      File['/etc/ood/config/nginx_stage.yml'],
      File['/etc/ood/profile'],
      File['/etc/ood/config/apps'],
    ],
  }
  -> exec { 'nginx_stage-app_reset-pun':
    command     => '/opt/ood/nginx_stage/sbin/nginx_stage app_reset --sub-uri=/pun',
    refreshonly => true,
    subscribe   => [
      File['/etc/ood/config/nginx_stage.yml'],
      File['/etc/ood/profile'],
      File['/etc/ood/config/apps'],
    ],
  }
  -> exec { 'nginx_stage-nginx_clean':
    command     => '/opt/ood/nginx_stage/sbin/nginx_stage nginx_clean',
    refreshonly => true,
    subscribe   => [
      File['/etc/ood/config/nginx_stage.yml'],
      File['/etc/ood/profile'],
      File['/etc/ood/config/apps'],
    ],
  }

  if $openondemand::auth_type == 'dex' {
    service { 'ondemand-dex':
      ensure    => 'running',
      enable    => true,
      subscribe => [
        Exec['ood-portal-generator-generate'],
        File['/etc/ood/dex/config.yaml'],
      ],
    }
  }
}