Puppet Class: ckan::ext::resource_authorizer

Defined in:
manifests/ext/resource_authorizer.pp

Summary

Installs the resource authorizer extension.

Overview

Parameters:

  • ckan_conf (String) (defaults to: $ckan::params::ckan_conf)
  • paster (String) (defaults to: $ckan::params::paster)

See Also:



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/ext/resource_authorizer.pp', line 5

class ckan::ext::resource_authorizer (
  String $ckan_conf = $ckan::params::ckan_conf,
  String $paster    = $ckan::params::paster,
){
  ckan::ext { 'resourceauthorizer':
    plugin   => ['resourceauthorizer'],
    source   => 'http://github.com/etri-odp/ckanext-resourceauthorizer',
    revision => 'master',
  }

  check_run::task { 'init_resource_authorizer_db':
    exec_command => "${ckan::paster} --plugin=ckanext-resourceauthorizer resourceauthorizer initdb --config=${ckan_conf}",
    require      => Ckan::Ext['resourceauthorizer'],
  }
  check_run::task { 'resource_authorizer_rebuild_search_index':
    exec_command => "${ckan::paster} --plugin=ckan search-index rebuild --config=${ckan_conf}",
    require      => Check_run::Task['init_resource_authorizer_db'],
  }
}