Defined Type: apereo_cas::service

Defined in:
modules/apereo_cas/manifests/service.pp

Overview

Parameters:

  • class (String)
  • id (Integer)
  • service_id (String)
  • attribute_release_policy (Hash)
  • access_strategy (Hash)
  • properties (Optional[Hash]) (defaults to: {})


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/apereo_cas/manifests/service.pp', line 1

define apereo_cas::service (
    String         $class,
    Integer        $id,
    String         $service_id,
    Hash           $attribute_release_policy,
    Hash           $access_strategy,
    Optional[Hash] $properties = {}
) {
    include apereo_cas
    $base_data = {
        '@class'                 => $class,
        'name'                   => $title,
        'serviceId'              => $service_id,
        'attributeReleasePolicy' => $attribute_release_policy,
        'id'                     => $id,
        'accessStrategy'         => $access_strategy,
    }
    $data = $properties.empty ? {
        true    => $base_data,
        default => $base_data + {'properties' => $properties},
    }
    file {"${apereo_cas::services_dir}/${title}-${id}.json":
        ensure  => file,
        content => $data.to_json()
    }
}