News for hackers. Stuff that matters.
Re:Salt: Like Puppet, Except It Doesn’t Suck by Jedd on Monday June 24, 2013 @11:02AM (#5933344)
Hey memset - these sound like pretty straightforward questions (with straightforward answers). Perhaps asking on the mailing list, or hop onto the #salt channel on freenode IRC?
Re:Salt: Like Puppet, Except It Doesn’t Suck by memset on Monday June 24, 2013 @11:10AM (#5933411)
That is a great suggestion. I almost never do this for fear of sounding like a noob, but I ought to try giving it a shot more often.
Re:Salt: Like Puppet, Except It Doesn’t Suck by tech-dragon on Wednesday June 26, 2013 @03:46AM (#5944690)
As one of the people on that list who may well respond there, I'll reply here as well so its on the record.

You will be very well off if you read and 'digest' the Salt docs on States first, before moving on to modules, pillars, grains, custom returners, etc.

What you probably need to do with logrotate is take the configuration that you normaly setup on your servers, then add it to your salt system. So top.sls calls 'logrotate' running the 'logrotate/init.sls' and that has a definition that says "I want logrotate installed, I want it running as a service, and by the way take the file 'logrotate/config.conf' and shove it in /etc/logrotate.d/ as <correct filename>, p.s. If i change that file, restart logrotate"

With States & the requisite declarations to enable salt to know what order things need to be in, you shouldnt have much trouble adding a simple service like logrotate along with a specific config file to use for that service.