GithubHelp home page GithubHelp logo

Comments (11)

yakatz avatar yakatz commented on July 23, 2024

What do you mean by support? If the cron job is managed by puppet, the application user won't get able to modify it because puppet will change it back.

from puppet-cron.

bschonec avatar bschonec commented on July 23, 2024

You're correct. /var/spool/cron/ support would still be nice.

from puppet-cron.

yakatz avatar yakatz commented on July 23, 2024

To be clear, are you are saying you want this module to also duplicate the functionality of the core module and give you the option of which method to use for a job?

from puppet-cron.

bschonec avatar bschonec commented on July 23, 2024

I need the ability to manage /etc/cron.allow, /etc/cron.deny -- which the core module doesn't provide -- and the ability to put the cron jobs in /var/spool/cron/.

My application expects the users' cron job to be in /var/spool/cron/ and if it's not there, the application will create its own cron job. Yes, that stinks and it's poor coding on the part of the application but if I can get Puppet to put the cron job in /var/spool/cron/ then the application complains less.

The application takes hours if not days to configure and set up properly and hasn't been changed since 2017. My users are running BASH scripts to a bunch of setup and if I can Puppetize a good portion of the setup, I can save them nearly 8 hours of configuration and manual setup. Even just the ability to 'crontab -l' or 'cat /var/spool/cron// would be very useful. The users lose the ability to see the application jobs when the jobs are owned by root.

This is a commercial application that I cannot change. It's unbelievable how much effort goes into installing and configuring it.

Perhaps adding a variable called $cronjob_path and defaulting it to /etc/cron.d would be easy enough and not change behavior.

from puppet-cron.

yakatz avatar yakatz commented on July 23, 2024

The user story makes it clear, thanks. I am trying to pull some attention to this on Slack/libera so we can decide what to do.

from puppet-cron.

bschonec avatar bschonec commented on July 23, 2024

I'm working on a very rough draft of my ideas in a pull request. The only gotcha I see so far is:

if $default_cron_job_path != /etc/cron.d {
  $path = "${cronjob_path}/${user}"
| else {
  $path = "/etc/cron.d/${title}"
}

from puppet-cron.

yakatz avatar yakatz commented on July 23, 2024

I don't know that /var/spool/cron supports directories - usually there is just a file there.

from puppet-cron.

bschonec avatar bschonec commented on July 23, 2024

I don't know that /var/spool/cron supports directories - usually there is just a file there.

Whoop...my mistake. /var/spool/cron/ is the intended $path.

This is already getting more involved than I expected. The individual jobs will all have to be merged together under a single user's /var/spool/cron/ file. Perhaps this is a lot of work for little reward.

from puppet-cron.

yakatz avatar yakatz commented on July 23, 2024

I am looking at just changing the name of this module to crond which should make it possible to use both

from puppet-cron.

ekohl avatar ekohl commented on July 23, 2024

puppetlabs-cron_core cannot co-exist with puppet-cron so using puppetlabs-cron_core one loses the ability to manage /etc/cron.allow.

I thought cron_core is always present in puppet-agent. I don't see the conflict. You can even deploy it your environment as cron_core without issue.

from puppet-cron.

bschonec avatar bschonec commented on July 23, 2024

My apologies. I did manage to figure out using cron_core and puppet-cron.

from puppet-cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.