Compare commits
2 Commits
6f3a56b93d
...
b1bba0984a
Author | SHA1 | Date |
---|---|---|
7u83 | b1bba0984a | |
7u83 | 4e1f770cea |
|
@ -71,18 +71,22 @@ 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}":
|
||||
start => "$bin_dir/apacheds.sh $title start",
|
||||
stop => "$bin_dir/apacheds.sh $title stop",
|
||||
status => "/bin/false",
|
||||
status => "$bin_dir/apacheds.sh $title status | grep 'is running'",
|
||||
ensure => running
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue