Defined Type: ckan::lang
- Defined in:
- manifests/lang.pp
Summary
Manages installing a non default language.Overview
This class expects a zip file that has the contents of the language. The contents of the zip file should have the following:
* LC_MESSAGES/ckan.mo
* LC_MESSAGES/ckan.po
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/lang.pp', line 22
define ckan::lang (
String $url,
String $language = $title,
Optional[String] $web_user = undef,
Optional[String] $web_password = undef,
) {
include deploy_zip
deploy_zip::zip { $language:
deployment_dir => $ckan::ckan_lang_dir,
url => $url,
web_user => $web_user,
web_password => $web_password,
before => Class['ckan::service'],
}
file { $ckan::ckan_lang_base:
ensure => directory,
recurse => true,
mode => '0777',
require => Deploy_zip::Zip[$language],
}
}
|