Commit graph

23 commits

Author SHA1 Message Date
Seth Vidal
9355f6e545 clean up how it puts the files in place - in f18 /tmp is tmpfs which
means ln and os.rename() won't work across fs.
2013-04-16 15:08:27 -04:00
mavimo
c37d8988c2 Chnge description as list inside string 2013-03-30 20:53:28 +01:00
Dag Wieers
d4bb57d42d Fix the documentation booleans so they use "yes" and "no"
Both modules seboolean and zfs have not been adapted since they defer from the default (either by having a 'null' or special state, or prefering "on"/"off" for state indication.
2013-03-12 13:25:59 +01:00
Daniel Hokka Zakrisson
1dadd70d9f Remove choices=BOOLEANS as it is no longer needed 2013-02-23 22:57:36 +01:00
Daniel Hokka Zakrisson
0150f18a3b Use argument type checking to convert to boolean 2013-02-23 19:59:52 +01:00
Daniel Hokka Zakrisson
d5a236c53d cron: Work even without initial crontab
Fixes #2165.
2013-02-21 21:14:29 +01:00
Daniel Hokka Zakrisson
4ff37b8369 Fix #2125 and clean up a few things along the way 2013-02-19 22:26:38 +01:00
Michael DeHaan
a36db3bbef Fix crontab doc formatting 2013-02-09 14:29:31 -05:00
Mike Grozak
53892b8fd1 Cron module upgrades
- added cron_file attribute: if specified, the file with appropriate
job is created in /etc/cron.d directory. Also, you can store multiple
jobs in one file. state='absent' attribute is handled in the following
way in this case: if after the deletion of the job from the file specified
by cron_file variable the file is empty, the file is deleted, otherwise
not.
  - fixed the behaviour, when the backupfile is saved forever in /tmp
folder, even if the backup= atribute is not set (os.unlink() is called if
backup is not True).
  - added some comments to the unobvious places
2013-02-09 11:11:19 -05:00
Stephen Fromm
e4964f42e0 Update modules to use run_command in module_common.py
This updates apt, apt_repository, command, cron, easy_install, facter,
fireball, git, group, mount, ohai, pip, service, setup, subversion,
supervisorctl, svr4pkg, user, and yum to take advantage of run_command
in module_common.py.
2013-01-13 08:37:19 -08:00
Jan-Piet Mens
f1ab8d163d fix cron DOCUMENTATION 2012-12-23 14:08:26 +01:00
Daniel Hokka Zakrisson
0fe2d4e5e3 Indicate the reboot option was added in 1.0
Fixes #1787.
2012-12-19 18:45:33 +01:00
Chelsea Robb
ae0e1b541e Change check for date/time parts being set 2012-12-19 15:12:04 +11:00
Chelsea Robb
47f9a72454 Added error message when reboot and extra params are passed, and added better boolean parsing on reboot 2012-12-19 13:11:58 +11:00
Chelsea Robb
7830a4aac2 Add support for @reboot to cron module 2012-12-19 09:32:51 +11:00
Jan-Piet Mens
d184f72aa9 DOCUMENTATION strings 2012-11-21 18:49:30 +01:00
Michael DeHaan
8d3f73d562 pep8 fixes 2012-10-30 20:42:07 -04:00
Jan-Piet Mens
d069c57974 Reformat code: examples consistently
- added terse syntax to modules.rst
 - added description of special variables to template module
2012-10-23 15:14:01 +02:00
Jan-Piet Mens
800d830c2b module_formatter: .rst now correctly handles code examples
- fixed template (it was the template), adding indentation with Jinja2
 - added description of code examples to man-page template (was missing)
 - fixed fireball, cron, and debug module examples to confrom
2012-10-18 13:49:19 +02:00
Dane Summers
4f5f32a15b fixed cron library so backups are python2.4 compatible 2012-10-12 16:34:34 -04:00
Dag Wieers
8da637dac6 Fixes to documentation 2012-10-09 12:42:10 +02:00
Dane Summers
1d7a5609eb added new documentation string to cron library 2012-10-08 11:10:40 -04:00
Dane Summers
d4b7d82299 cron feature (w/o tests) 2012-10-05 21:35:37 -04:00