We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not puppet related
set dbpath_fix to true
dbpath_fix
true
class { '::mongodb::server': dbpath_fix => true, }
dbpath ownership is not properly updated. The reason is the order of switches in the command used here https://github.com/voxpupuli/puppet-mongodb/blob/master/manifests/server/config.pp#L139
onlyif => "find ${dbpath} -not -user ${user} -o -not -group ${group} -print -quit | grep -q '.*'",
above command is not working properly, consider below output
root@8e8583b9f092:/# tree -ug mongodb/ mongodb/ `-- [root root ] 1 `-- [root root ] 2 `-- [root root ] 3 3 directories, 0 files
In order to fix those permissions we need find command to return 0, but it returns 1 instead:
find
0
1
root@8e8583b9f092:/# find mongodb/ -not -user mongod -o -not -group mongod -print -quit | grep -q '.*'; echo $? 1
find command to return 0 whenever it should:
root@8e8583b9f092:/# tree -ug mongodb/ mongodb/ `-- [root root ] 1 `-- [root root ] 2 `-- [root root ] 3 3 directories, 0 files root@8e8583b9f092:/# find mongodb/ -print -not -user mongod -o -not -group mongod -quit | grep -q '.*'; echo $? 0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Affected Puppet, Ruby, OS and module versions/distributions
It is not puppet related
How to reproduce (e.g Puppet code you use)
set
dbpath_fix
totrue
What are you seeing
dbpath ownership is not properly updated. The reason is the order of switches in the command used here https://github.com/voxpupuli/puppet-mongodb/blob/master/manifests/server/config.pp#L139
above command is not working properly, consider below output
In order to fix those permissions we need
find
command to return0
, but it returns1
instead:What behaviour did you expect instead
find
command to return0
whenever it should:The text was updated successfully, but these errors were encountered: