WIP dirsrv changes

This commit is contained in:
2021-12-02 13:56:23 -06:00
parent 685deea920
commit da3a70ef4c
4 changed files with 16 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
resource_name :dirsrv_instance
provides :dirsrv_instance
property :instance_name, String, name_property: true
property :hostname, String, required: true
@@ -45,7 +46,7 @@ action :create do
end
execute "setup-#{new_resource.instance_name}" do
command "setup-ds --silent --file #{setup_config}"
command "/usr/share/dirsrv/setup-ds.pl --silent --file #{setup_config}"
creates ::File.join inst_dir, 'dse.ldif'
action :nothing
subscribes :run, "template[#{setup_config}]", :immediately