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)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
) {
    include apereo_cas
    $data = {
        '@class'                 => $class,
        'name'                   => $title,
        'serviceId'              => $service_id,
        'attributeReleasePolicy' => $attribute_release_policy,
        'id'                     => $id,
        'accessStrategy'         => $access_strategy,
    }
    file {"${apereo_cas::services_dir}/${title}-${id}.json":
        ensure  => file,
        content => $data.to_json()
    }
}