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
When you setup a cron for the prometheus user all is alright up to the time when the cronjob should be runnig. It fails with
May 04 09:49:01 prometheus CROND[8958]: (CRON) ERROR chdir failed (/home/prometheus): No such file or directory
And this indicates that there is no home dir for the prometheus user.
Puppet example:
cron { 'send date to /tmp/test': command => '/bin/date > /tmp/test', user =>$prometheus::server::user; }
this should change content of the /tmp/test every minute, but it does not happen due to the mentioned error.
Cheers S
PS: also the home for system users should not be in the /home directory.
The text was updated successfully, but these errors were encountered:
suggested fix in install.pp
if $prometheus::server::manage_user { ensure_resource('user', [$prometheus::server::user], { ensure => 'present', system => true, groups => $prometheus::server::extra_groups, shell => $prometheus::server::usershell, managehome => true, home => $prometheus::server::localstorage, })
Sorry, something went wrong.
TheMeier
No branches or pull requests
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
When you setup a cron for the prometheus user all is alright up to the time when the cronjob should be runnig.
It fails with
And this indicates that there is no home dir for the prometheus user.
Puppet example:
this should change content of the /tmp/test every minute, but it does not happen due to the mentioned error.
Cheers
S
PS: also the home for system users should not be in the /home directory.
The text was updated successfully, but these errors were encountered: