On 3 August 2014 10:08:39 PM AEST, Alan McKinnon <alan.mckin...@gmail.com> wrote: >On 03/08/2014 11:27, Bruce Schultz wrote: >> >> >> On 2 August 2014 5:10:43 AM AEST, Alan McKinnon ><alan.mckin...@gmail.com> wrote: >>> On 01/08/2014 19:50, Сергей wrote: >>>> Also you can have a look at anacron. >>>> >>>> >>>> >>> >>> >>> Unfortunately, anacron doesn't suit my needs at all. Here's how >anacron >>> works: >>> >>> this bunch of job will all happen today regardless of what time it >is. >>> That's not what I need, I need something that has very little to do >>> with >>> time. Example: >>> >>> 1. Start backup job on db server A >>> 2. When complete, copy backup to server B and do a test import >>> 3. If import succeeds, move backup to permanent storage and log the >>> fact >>> 4. If import fails, raise an alert and trigger the whole cycle to >start >>> again at 1 >>> >>> Meanwhile, >>> >>> 1. All servers are regularly doing apt-get update and downloading >>> .debs, >>> and applying security packages. Delay this on the db server if a >backup >>> is in progress. >>> >>> Meanwhile there is the regular Friday 5am code-publish cycle and >>> month-end finance runs - this is a DevOps environment. >> >> I'm not sure if its quite what you have in mind, and it comes with a >bit of a steep learning curve, but cfengine might fit the bill. >> >> http://cfengine.com > >Hi Bruce, > >Thanks for the reply. > >I only worked with cfengine once, briefly, years ago, and we quickly >decided to roll our own deployment solution to solve that very specific >vertical problem. > > >Isn't cfengine a deployment framework, similar in ideals to puppet and >chef? > >I don't want to deploy code or manage state, I want to run code >(backups, database maintenance, repair of dodgy data in databases and >code publish in a devops environment)
Cfengine can run arbitrary commands at scheduled times, so it is capable as a replacment for cron. It also has package management built in for your package updates. It is in the same vein as chef & puppet, but "deployment framework" is not the way I would describe it. Deployment is only be a subset of what you can do with it. Cfengine3 was a major rewrite over version 2. The community edition is open source and should be available in Debian. The gentoo ebuild is a bit out of date currently. It also comes as a supported enterprise version which adds some sort of framework around the core - I've never personally looked into the enterprise features though. Bruce -- :B