Commit graph

15 commits

Author SHA1 Message Date
Jim Kleckner
61afdc4f5c Minor spelling fixes 2013-03-06 10:41:19 -08: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
Michel Blanc
8b5df82b74 Removes useless empty string write
It s not necessary to write an empty string for the file to be created.
2013-02-20 14:20:27 +01:00
Michel Blanc
05d45fc1fa Changed when new sysctl file is created
When destination sysctl file is missing, it is created.
But, for idempotency purposes, the creation process now takes place just before it is used, in the
main code path so an empty file is not left over if the code
module.fail_jsons before the file is really used.
2013-02-20 12:52:30 +01:00
Michel Blanc
aea822c47a Removes exception is sysctl file is missing
When syscl file was missing, sysctl module was complaining about it and
bailing out.
This behaviour prevents usage of /etc/sysctl.d directory, present in
some distributions.
This patch accepts a missing sysctl.conf file so sysctl.d directory can
be used.
However, it will bail out if the destination directory doesn't exist.
2013-02-20 12:42:49 +01:00
lessmian
a6096018dc sysctl module: fixed issue when checks_after fail on comparing keys with values separated by white strings 2013-02-19 15:50:13 +01:00
Michael DeHaan
65b826a8a8 'make pep8' is now clean 2013-02-17 19:48:02 -05:00
davixx
ec99b4f7b5 Solving bug https://github.com/ansible/ansible/issues/2004
Now handle positive integer value in virtual files if they are separated
by group of space characters where the count is unpredictable.
Thanks to romeotheriault for filing this bug.
2013-02-15 19:14:01 +01:00
Daniel Hokka Zakrisson
637bc5c3d6 Fix Python 2.6-isms in sysctl module 2013-02-14 12:14:44 +01:00
Daniel Hokka Zakrisson
01f7b98c46 sysctl was added in 1.0
Fixes #1972.
2013-02-03 14:01:55 +01:00
Michael DeHaan
d7ca7e0f4b New changelog additions from today's merging 2013-01-26 13:07:06 -05:00
Michael DeHaan
cc53b8ae95 Tweak sysctl docs so they'll web-render 2013-01-26 12:58:12 -05:00
Daniel Hokka Zakrisson
6a0663e3dc Fix unparseable documentation strings
Fixes #1902.
2013-01-25 14:25:12 +01:00
davixx
7335ee6620 new module: sysctl to handle sysctl entry
sysctl now capable to search for sys entry into /sys if not under /proc/sys

module/sysctl rolling back to 0.5

write sysctl.conf safely, tempfile first, atomic replace after.
See comments in  https://github.com/ansible/ansible/pull/1810

Patch to replace .format with % () to handle python-2.4 ,
See also https://github.com/ansible/ansible/pull/1810

using name instead key for default arg name. key putted as alias.
also, val become an alias of value arg name.
See also : https://github.com/ansible/ansible/pull/1810
2013-01-04 21:55:48 +01:00