File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
55
# preseeding files so we need to manualy bootstrap cn=config (but not the
56
56
# databases).
57
57
exec { 'bootstrap cn=config' :
58
- command => " /bin/sed -e 's/@BACKEND@/mdb/g' -e '/^# The database definition.$/q' /usr/share/slapd/slapd.init.ldif | /usr/sbin/slapadd -F ${openldap::server::confdir} -b cn=config" ,
58
+ command => " /bin/sed -e 's/@BACKEND@/mdb/g' -e '/^# The database definition.$/q' /usr/share/slapd/slapd.init.ldif | /usr/sbin/slapadd -F ${openldap::server::confdir.shell_escape } -b cn=config" , # lint:ignore:check_unsafe_interpolations
59
59
provider => ' shell' ,
60
60
creates => " ${openldap::server::confdir} /cn=config.ldif" ,
61
61
user => $openldap::server::owner ,
146
146
$ldif = file (' openldap/cn-config.ldif' )
147
147
exec { 'bootstrap cn=config' :
148
148
path => ' /usr/local/sbin' ,
149
- command => " echo ' ${ldif} ' | slapadd -n 0 -F ${openldap::server::confdir} " ,
149
+ command => " echo ${ldif.shell_escape} | slapadd -n 0 -F ${openldap::server::confdir.shell_escape }" , # lint:ignore:check_unsafe_interpolations
150
150
creates => " ${openldap::server::confdir} /cn=config.ldif" ,
151
151
provider => ' shell' ,
152
152
user => $openldap::server::owner ,
Original file line number Diff line number Diff line change 11
11
# installation will succed. The module will then be able to tune slapd
12
12
# accoding to the user needs and finally start (and unmak) the service.
13
13
exec { 'mask-before-openldap-install' :
14
- command => " systemctl mask ${openldap::server::service} " ,
14
+ command => " systemctl mask ${openldap::server::service.shell_escape }" , # lint:ignore:check_unsafe_interpolations
15
15
unless => ' test -x /usr/sbin/slapd' ,
16
16
creates => " /etc/systemd/system/${openldap::server::service} .service" ,
17
17
path => ' /bin:/usr/bin' ,
You can’t perform that action at this time.
0 commit comments