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>
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
}
|