Puppet Class: ckan::ext::lcrnz

Defined in:
manifests/ext/lcrnz.pp

Summary

Installs the Landcare Research extension.

Overview

Requirements:

Installs the following extensions.
  • ckan::ext::repeating

  • ckan::ext::ldap

The id can be found at the following url: http://<CKAN URL/api/action/organization_show?id=<ORG NAME>

Parameters:

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

    The uri to the ldap server to connect. @example ‘ldap://localhost:389’

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

    The ldap base dn to use for user authentication. @example ‘ou=users,dc=landcareresearch,dc=co,dc=nz’

  • source (String) (defaults to: 'http://github.com/okfn/ckanext-lcrnz')

    The source of the git repository for this extension.

  • revision (String) (defaults to: 'master')

    The revision (or version) of the source to checkout with git.

  • install_ldap (Boolean) (defaults to: true)

    True if the ldap module should be installed and false otehrwise.

  • install_repeating (Boolean) (defaults to: true)

    True if the repeating module should be installed and false otehrwise.

  • ldap_revision (String) (defaults to: 'master')

    The revision (or version) of the ldap extension source to checkout with git.

  • ldap_source (String) (defaults to: 'ofkn')

    The source of the ldap extension source to checkout with git.

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

    If this is set, users that log in using LDAP will automatically get added to the given organization.



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
# File 'manifests/ext/lcrnz.pp', line 43

class ckan::ext::lcrnz (
  String           $source                    = 'http://github.com/okfn/ckanext-lcrnz',
  String           $revision                  = 'master',
  Boolean          $install_ldap              = true,
  Boolean          $install_repeating         = true,
  String           $ldap_revision             = 'master',
  String           $ldap_source               = 'ofkn',
  Optional[String] $uri                       = undef,
  Optional[String] $base_dn                   = undef,
  Optional[String] $organization_id           = undef,
) {
  if $install_repeating {
    contain ckan::ext::repeating
  }
  if $install_ldap {
    class { 'ckan::ext::ldap':
      uri             => $uri,
      base_dn         => $base_dn,
      organization_id => $organization_id,
      source          => $ldap_source,
      revision        => $ldap_revision,
    }
    contain ckan::ext::ldap
  }
  ckan::ext { 'lcrnz':
    source   => $source,
    revision => $revision,
    plugin   => ['lcrnz'],
  }
## Custom i18n folder (for replacing "organizations" with "collections")
## Update the path if necessary
#ckan.locale_default = en_NZ
#ckan.i18n_directory = /usr/lib/ckan/default/src/ckanext-lcrnz
}