Puppet Class: ckan::ext::resource_authorizer
- Defined in:
-
manifests/ext/resource_authorizer.pp
Summary
Installs the resource authorizer extension.
Overview
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'manifests/ext/resource_authorizer.pp', line 11
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'],
}
}
|