WIP dirsrv changes
This commit is contained in:
parent
685deea920
commit
da3a70ef4c
@ -1,22 +1,24 @@
|
||||
{
|
||||
"name": "ldap-1",
|
||||
"name": "ldap-1.kosmos.org",
|
||||
"normal": {
|
||||
"knife_zero": {
|
||||
"host": "10.1.1.63"
|
||||
}
|
||||
},
|
||||
"automatic": {
|
||||
"fqdn": "ldap-1",
|
||||
"fqdn": "ldap-1.kosmos.org",
|
||||
"os": "linux",
|
||||
"os_version": "5.4.0-1049-kvm",
|
||||
"hostname": "ldap-1",
|
||||
"ipaddress": "192.168.122.164",
|
||||
"roles": [
|
||||
|
||||
"dirsrv_primary"
|
||||
],
|
||||
"recipes": [
|
||||
"kosmos-base",
|
||||
"kosmos-base::default",
|
||||
"kosmos-dirsrv",
|
||||
"kosmos-dirsrv::default",
|
||||
"apt::default",
|
||||
"timezone_iii::default",
|
||||
"timezone_iii::debian",
|
||||
@ -30,7 +32,11 @@
|
||||
"postfix::_common",
|
||||
"postfix::_attributes",
|
||||
"postfix::sasl_auth",
|
||||
"hostname::default"
|
||||
"hostname::default",
|
||||
"kosmos-dirsrv::firewall",
|
||||
"backup::default",
|
||||
"logrotate::default",
|
||||
"ulimit::default"
|
||||
],
|
||||
"platform": "ubuntu",
|
||||
"platform_version": "20.04",
|
||||
@ -49,6 +55,6 @@
|
||||
},
|
||||
"run_list": [
|
||||
"recipe[kosmos-base]",
|
||||
"role[ldap]"
|
||||
"role[dirsrv_primary]"
|
||||
]
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
name "ldap"
|
||||
name "dirsrv_primary"
|
||||
|
||||
run_list %w(
|
||||
recipe[kosmos-dirsrv]
|
@ -6,7 +6,7 @@
|
||||
include_recipe "kosmos-base::firewall"
|
||||
|
||||
firewall_rule "ldap" do
|
||||
port [389, 636]
|
||||
port [389]
|
||||
source "10.1.1.0/24" # zerotier
|
||||
protocol :tcp
|
||||
command :allow
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user