Skip to content

Commit

Permalink
trying something
Browse files Browse the repository at this point in the history
  • Loading branch information
djentangle committed Aug 2, 2024
1 parent 2d21c2e commit 64d7efb
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion test/cookbooks/openldap-test/recipes/accesslog.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
node.default['openldap']['accesslog']['enabled'] = true
node.default['openldap']['accesslog']['logdb'] = '"cn=accesslog"'
node.default['openldap']['accesslog']['directory'] = '/etc/ldap/'
node.default['openldap']['accesslog']['directory'] = '/var/lib/ldap/accesslog'
node.default['openldap']['accesslog']['index'] = 'reqStart,reqEnd,reqResult eq'
node.default['openldap']['accesslog']['logops'] = 'writes'
node.default['openldap']['accesslog']['logold'] = '(objectclass=*)'
node.default['openldap']['accesslog']['logpurge'] = '8+00:00 1+00:00'

node.default['openldap']['modules'] << 'accesslog'

user 'openldap' do
action :create
end

group 'openldap' do
action :create
end

directories = ['/var/lib/ldap', '/var/lib/ldap/accesslog']

directories.each do |dir|
directory dir do
mode '0755'
owner 'openldap'
group 'openldap'
action :create
end
end

include_recipe 'openldap::default'

0 comments on commit 64d7efb

Please sign in to comment.