Fix permissions on qdrouterd.sasldb

The saslpasswd2 is used to create users for the qdrouterd server. The
qdr_user provider needs to ensure permissions are correctly set for
the qdrouterd service to access the user data base during operation
(qdrouterd.sasldb).

Closes-Bug: #1707662
Change-Id: I60f2b4e1f11371098cfa29102fa12158b7b4acab
This commit is contained in:
Andrew Smith 2017-07-31 11:23:01 -04:00
parent 537c1b23d5
commit dcd40cae91
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ Puppet::Type.type(:qdr_user).provide(:sasl) do
raise Puppet::Error, "Failed to create user"
end
system("chmod '0644' '/var/lib/qdrouterd/qdrouterd.sasldb'")
end
def destroy