Copy config.ldif file into conf directory only if not already migrated
This commit is contained in:
parent
6f3a56b93d
commit
4e1f770cea
|
@ -71,12 +71,16 @@ define plnxtools::apacheds::instance(
|
|||
ensure => file,
|
||||
content => template ("plnxtools/apacheds/log4j.properties.erb"),
|
||||
}->
|
||||
file{"$ads_instances/$title/conf/config.ldif":
|
||||
file{"/tmp/ads-$title-config.ldif":
|
||||
ensure => file,
|
||||
content => template ("plnxtools/apacheds/config.ldif.erb"),
|
||||
}->
|
||||
exec {"/bin/cp /tmp/ads-$title-config.ldif $ads_instances/$title/conf/config.ldif":
|
||||
creates => "$ads_instances/$title/conf/config.ldif_migrated"
|
||||
}
|
||||
|
||||
|
||||
|
||||
$bin_dir = "${plnxtools::apacheds::opt_dir}/${plnxtools::apacheds::appname}/bin"
|
||||
|
||||
service {"apacheds_${title}":
|
||||
|
|
Loading…
Reference in New Issue