Puppet Class: ckan::ext::scheming

Defined in:
manifests/ext/scheming.pp

Summary

Installs the scheming extension.

Overview

Parameters:

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

    The URL of the remote VCS repository. If undef, uses “github.com/ckan/ckanext-scheming”.

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

    The tag or branch to use for the scheming extension.

  • plugins (Array[String]) (defaults to: ['scheming_datasets'])

    An array of strings that are plugins to add to the plugin configuration in the production.ini. @example [‘scheming_datasets’,‘scheming_groups’,‘scheming_orginizations’]

  • data_schemas (String) (defaults to: 'ckanext.scheming:ckan_dataset.json')

    The relative path based on a module or a full path that contains the dataset schema. Can be json or yaml. @example ‘ckanext.scheming:/usr/lib/ckan/default/src/ckanext-quavonz/ckanext/quavonz/schema/dataset.yml’

  • presets (String) (defaults to: 'ckanext.scheming:presets.json')

    The relative path based on a module or a full path that contains the preset definitions. Can be json or yaml.

  • dataset_fallback (Boolean) (defaults to: false)

    The documentation doesn’t define this variable but providing for completeness.

See Also:



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'manifests/ext/scheming.pp', line 28

class ckan::ext::scheming (
  Optional[String]  $source           = undef,
  String            $revision         = 'master',
  Array[String]     $plugins          = ['scheming_datasets'],
  String            $data_schemas     = 'ckanext.scheming:ckan_dataset.json',
  String            $presets          = 'ckanext.scheming:presets.json',
  Boolean           $dataset_fallback = false,
) {
  ckan::ext { 'scheming':
    source   => $source,
    revision => $revision,
    plugin   => $plugins,
  }

  ckan::conf::setting { 'scheming.dataset_schemas':
    value   => $data_schemas,
    require => Class['ckan::conf::production'],
  }

  ckan::conf::setting { 'scheming.presets':
    value   => $presets,
    require => Class['ckan::conf::production'],
  }

  ckan::conf::setting { 'scheming.dataset_fallback':
    value   => $dataset_fallback,
    require => Class['ckan::conf::production'],
  }
}