saltstack-formulas / logrotate-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
23 stars 71 forks source link

jobs.sls not being executed #23

Closed yannispanousis closed 8 years ago

yannispanousis commented 8 years ago

Hi,

I'm sure I'm doing something wrong, or maybe my system is not supported, because the "jobs.sls" which actually fills in the /etc/logrotate.d/ contents is not being executed at all for me.

Master/Minion Specs

# OS
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty

# Salt
2016.3.1

Then I downloaded this Git repo and used the state within a rootfs backend, made the below change and it worked as expected!

diff --git a/logrotate/init.sls b/logrotate/init.sls
index c271860..83a0142 100644
--- a/logrotate/init.sls
+++ b/logrotate/init.sls
@@ -18,3 +18,5 @@ logrotate_directory:
     - require:
       - pkg: logrotate

+include:
+  - .jobs

I am very keen to start using GitFS and stop copy-pasting people's work into my repo, so I would really appreciate your input!

Thanks, Yannis

yannispanousis commented 8 years ago

Turns out I was missing logrotate.jobs and logrotate.config in my configuration :) Closing this!