Puppet Class: ckan::ext::private_datasets
- Defined in:
- manifests/ext/private_datasets.pp
Summary
This CKAN extension allows a user to create private datasets.Overview
Only certain users will be able to see. When a dataset is being created, it’s possible to specify the list of users that can see this dataset.
| 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # File 'manifests/ext/private_datasets.pp', line 14
class ckan::ext::private_datasets (
  Boolean $show_acquire_url_on_create = false,
  Boolean $show_acquire_url_on_edit   = false,
) {
  ckan::ext { 'privatedatasets':
    source   => 'http://github.com/conwetlab/ckanext-privatedatasets',
    revision => 'master',
    plugin   => ['privatedatasets'],
  }
  $parser = 'ckanext.privatedatasets.parsers.fiware:FiWareNotificationParser'
  # Private Datasets Extension
  ckan::conf::setting { 'ckan.privatedatasets.parser':
    value   => $parser,
    require => Class['ckan::conf::production'],
  }
  ckan::conf::setting { 'ckan.privatedatasets.show_acquire_url_on_create':
    value   => $show_acquire_url_on_create,
    require => Class['ckan::conf::production'],
  }
  ckan::conf::setting { 'ckan.privatedatasets.show_acquire_url_on_edit':
    value   => $show_acquire_url_on_edit,
    require => Class['ckan::conf::production'],
  }
} |