Defined Type: dokuwiki::acl

Defined in:
manifests/acl.pp

Summary

Create ACL rules in the acl.auth.php configuration file

Overview

dokuwiki::acl

Create ACL rules in the acl.auth.php configuration file

Examples:

dokuwiki::acl { 'acl_line':
  user       => '*',
  group      => '@ALL',
  permission => '8',
}

Parameters:

  • user (String)

    Specify the user for which this ACL rule applies. Use '*' to apply rule to all users.

  • group (String)

    Specify the group for which this ACL rule applies. Start the group name with the '@' sign and use '*' to apply rule to all groups.

  • permission (Numeric)

    Specify the permission for this ACL rule. Possible permissions are: 1 for read, 2 edit, 4 create, 8 upload. See https://www.dokuwiki.org/acl for more information.



19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/acl.pp', line 19

define dokuwiki::acl (
  String $user,
  String $group,
  Numeric $permission,
) {
  concat::fragment { "dokuwiki_acl_${name}":
    target  => "${dokuwiki::install_path}/dokuwiki/conf/acl.auth.php",
    content => template('dokuwiki/acl.erb'),
    order   => '10'
  }
}