Closed grandmotivator closed 4 years ago
@grandmotivator That's already there:
https://travis-ci.com/saltstack-formulas/logrotate-formula/builds/131610312
What's not working for you?
ubuntu-16.04, salt-2019.2.2 - After connecting the formula, the logrotate configs in the Ubuntu system are not replaced. No errors with "state.apply".
https://github.com/saltstack-formulas/logrotate-formula/blame/master/docs/README.rst#L20 - this may be an omission, but Ubuntu is not listed here
@grandmotivator The README
may not be up to date but the formula definitely works on Ubuntu. Taking the debug log for 18.04
in Travis, starting from here:
You can see that after managing the /etc/logrotate.conf
file, all of the specific configurations are added under /etc/logrotate.d/
.
If you can share your pillar and also what configuration files you're expecting for the formula to manage, then we can establish whether there is a bug or a misconfiguration.
In my case all files from /etc/logrotate.conf
and /etc/logrotate.d/
remain unchanged after state.apply
.
@grandmotivator Please share your pillar and the contents of (some of) the files.
@grandmotivator The idea is that we can prepare a failing test in Travis, to show that there's a bug. But I need your configuration to be able to do that.
@grandmotivator OK, I'm using this pillar in Travis with the 18.04
and 16.04
instances to see what it produces.
@grandmotivator All appears to be working fine: https://travis-ci.org/myii/logrotate-formula/builds/642347529. I've even configured it to output the files after managing them:
The only thing left is your top.sls
. Perhaps you don't have logrotate.jobs
included:
Why is it not enough to use just that? Without logrotate.jobs
. Is this a feature of a formula call? Differs from the output of other formulas, for example nginx
.
It's in the README
:
Installs the
logrotate
package and service/timer/cron.
For the jobs, you need:
Create custom job for logrotate.
Looking inside that file, there's already an include
for logrotate
:
So you could just use the - logrotate.jobs
in your top.sls
by itself, to do everything.
Does this solve your issue? If so, please go ahead and close it.
@myii thanks, its working
You're welcome, @grandmotivator.
Add support for Ubuntu (16.04, 18.04)