Defined Type: aem::license
- Defined in:
- manifests/license.pp
Overview
Define: aem::license
Used to manage AEM license files.
6 7 8 9 10 11 12 13 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 39 40 41 |
# File 'manifests/license.pp', line 6
define aem::license (
$ensure = 'present',
$customer = undef,
$group = 'aem',
$home = undef,
$license_key = undef,
$user = 'aem',
$version = undef) {
validate_re($ensure, '^(present|absent)$', "${ensure} is not supported for ensure. Allowed values are 'present' and 'absent'.")
if $home == undef {
fail('Home directory must be specified.')
}
validate_absolute_path($home)
if $ensure == 'present' and $license_key == undef {
fail('License key must be specified.')
}
# Create the env script
file { "${home}/license.properties":
ensure => $ensure,
content => template("${module_name}/license.properties.erb"),
group => $group,
mode => '0664',
owner => $user,
}
if defined(File[$home]) {
File[$home]
-> File["${home}/license.properties"]
}
}
|