Johan Wirén
c54841fb3e
Keep, but ignore createparent option
2016-12-08 11:33:48 -05:00
Johan Wirén
dc15c98e6f
Removes the createparent property.
...
The least surprising thing is to always create parents
2016-12-08 11:33:48 -05:00
Johan Wirén
7bb79093c2
Only considers local attributes when comparing state
...
This should fix #1092
2016-12-08 11:33:48 -05:00
Johan Wirén
14a0cf142d
Documentation fixes
2016-12-08 11:33:48 -05:00
Johan Wirén
a410f524b4
Update example
2016-12-08 11:33:48 -05:00
Johan Wirén
e08638b737
Changes how zfs properties are handled
...
This moves the validation of properties to the zfs command itself. The
properties and their choices were not really correct anyway due to
differences between OpenZFS and Solaris/ZFS.
2016-12-08 11:33:48 -05:00
Vincent VAN HOLLEBEKE
3fd5173413
Do not fail when action is delete and volume is not present
...
This prevents failing when a playbook describes a volume deletion and
is launched more that once.
Without this fix, if you run the playbook a second time, it will fail.
2016-12-08 11:33:48 -05:00
Chad Nelson
89baffa06f
Doc wrongly indicates permanent is required
...
But it isn't. :)
2016-12-08 11:33:48 -05:00
Brian Coca
4873b941ff
added missing version_added
2016-12-08 11:33:47 -05:00
Daniel Vigueras
4c60c2acc1
iptables: add --limit-burst option
2016-12-08 11:33:47 -05:00
Dale Smith
7404418cbd
Fix regression of #821 in puppet of show_diff
...
Issue #821 fix: 1382576100ee3b17f4eb28c7186d92376f370676
Regressed since: 6912ca0acaed0d738d8dd9867721d2ff0094084a
Issue: #821
2016-12-08 11:33:46 -05:00
Yannig Perré
bf5fbfe2a7
Use -f when pvcreate to avoid interactive input. Fix https://github.com/ansible/ansible-modules-extras/issues/1504
2016-12-08 11:33:46 -05:00
Daniel Vigueras
801e895f62
iptables: fix param check in append_csv function
2016-12-08 11:33:46 -05:00
Michal Mach
855bf75709
Fix seport module issue when ports argument is interpolated from a variable and is a int
2016-12-08 11:33:46 -05:00
Alexander Bulimov
23675c3f8b
Allow recreation of same FS with force=yes
2016-12-08 11:33:46 -05:00
Alexander Gubin
58f3518666
Make fileystem module idemponent. Compare devicesize and filesystemsize.
2016-12-08 11:33:46 -05:00
colynn.liu
ed48fb0f25
fixed python 2.4 compatibility
...
nf=tempfile.NamedTemporaryFile(delete=False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'
2016-12-08 11:33:45 -05:00
Björn Lichtblau
f9383cb8ef
Check to make sure the firewalld client is connected before proceeding.
...
Fixes #1138
Original patch referenced in https://github.com/ansible/ansible/issues/6911 ( f547733b1f
) was undone by 6f2b61d2d8
2016-12-08 11:33:45 -05:00
Tom X. Tobin
1223143ebe
osx_defaults: Fix boolean value parsing
...
Values for boolean types were being unconditionally treated as strings
(by calling `.lower()`), thus breaking value parsing for actual boolean
and integer objects.
It looks like the bug was introduced in:
- 130bd670d82cc55fa321021e819838e07ff10c08
Fixes #709 .
2016-12-08 11:33:45 -05:00
Linus Unnebäck
a928198783
iptables: cleanup
2016-12-08 11:33:44 -05:00
Jeroen Geusebroek
f1c3eb1413
Fix documentation default value for gluster_volume start_on_create
2016-12-08 11:33:44 -05:00
Jose A. Rivera
73a9abd1c8
gluster_volume: allow probing ourselves
...
We should allow "gluster peer probe" to determine if a given "host" maps to the
localhost, and detect that case accordingly.
2016-12-08 11:33:44 -05:00
Benjamin Wilson
0a8310b29f
Properly handle adding multiple bricks to volume
2016-12-08 11:33:44 -05:00
Toshio Kuratomi
ad0d2c1747
Update for modules which import json.
...
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed
Fixes #1298
2016-12-08 11:33:44 -05:00
Jonathan Mainguy
be5dd09237
add snapshot feature to lvol
2016-12-08 11:33:43 -05:00
Jonathan Mainguy
badef2912b
Remove advertising show_diff feature
...
--diff will be added to more modules soon, and we want puppet module to utilize this instead of show_diff
2016-12-08 11:33:41 -05:00
Casey Lang
1c8ad72b7b
Fix puppet module formatting issue
...
The `->` in the `show_diff` option doc seemed to be causing the docs
page to break. Not sure why, since it was still valid YAML.
2016-12-08 11:33:41 -05:00
ag-wood
67cd464ac7
Fix for ansible-modules-extras issue #1080
2016-12-08 11:33:41 -05:00
Jeroen Geusebroek
0b12f35f61
Improved fix for #1074 . Both None and '' transform to fqdn.
2016-12-08 11:33:41 -05:00
Jeroen Geusebroek
6fc533d663
Fix for issue #1074 . Now able to create volume without replica's.
2016-12-08 11:33:41 -05:00
Matt Martz
74c3e008d2
Import module snippets in the correct location
2016-12-08 11:33:40 -05:00
Matt Martz
7f42dda976
Remove unneeded spaces at the end of ohai
2016-12-08 11:33:40 -05:00
Michael Scherer
df195b3076
Replace choices=BOOLEANS by type='bool', fix #1326
2016-12-08 11:33:40 -05:00
Monty Taylor
40a4247611
Sync minor fixes from OpenStack Infra
...
Infra has been keeping a local copy of this waiting for ansible 2 to
release. In getting ready for ansible 2 (and our ability to delete our
local copy of the file, I noticed we had a couple of minor cleanups.
Also, the timeout command is there to improve life and workaround puppet
deficiencies. However, it's not working around deficiencies on systems
that do not have the timeout command if we blindly use it.
The puppet specific timeout options are more complex and out of scope of
this.
Issue: #1273
2016-12-08 11:33:39 -05:00
Will Keeling
f1f98a15ca
Fixes #634 - multiple param handling by modprobe.py
2016-12-08 11:33:38 -05:00
Gordon Fierce
c23162c04b
Fix documentation to prevent formatting error where each letter has its own line.
2016-12-08 11:33:37 -05:00
Michael Scherer
4e4085ad7e
Add a more explicit error message, fix #1282
2016-12-08 11:33:37 -05:00
Guillaume Grossetie
af12e6d3a3
Resolves #1312 , Improve pam_limits documentation
...
Adds comment parameter and improve examples.
2016-12-08 11:33:37 -05:00
GUILLAUME GROSSETIE
5fbc5cb529
Resolves #1290 , Adds limit_type choice "-"
2016-12-08 11:33:36 -05:00
Xav Paice
f30dbc9b20
Added stdout and stderr to puppet output for rc=2
2016-12-08 11:33:36 -05:00
Brian Coca
4ddb181d71
removed json import
2016-12-08 11:33:36 -05:00
Romain Brucker
e8b5b8bd20
Editing iptable module to use -m state --state instead of -m conntrack --ctstate
2016-12-08 11:33:34 -05:00
Romain Brucker
3ef5be470f
Fixing limit type from list to string
2016-12-08 11:33:33 -05:00
Romain Brucker
fbad76e86a
Adding limit feature to iptables module
2016-12-08 11:33:33 -05:00
Brian Coca
61ba4b98e1
made ctstate default to [] and evaluation conditional on the list being popoulated
2016-12-08 11:33:33 -05:00
Brian Coca
fb3aec47ca
fixed default from None to [] for ctstate
2016-12-08 11:33:33 -05:00
Brian Coca
eae8942583
avoid index error on empty list, key being true means its not None nor [] fixes #13009
2016-12-08 11:33:33 -05:00
Brian Coca
eb4fe5a0d8
made ctstate accept lists
2016-12-08 11:33:32 -05:00
Daniel Vigueras
d332a9a8e4
Add conntrack module ctstate support to iptables
2016-12-08 11:33:32 -05:00
Monty Taylor
9b9464ab89
Revert "Change show_diff to default to yes"
...
This was originally to match what puppet agent --test is, since the
rest of the options defaulted to on are grabbed from --test. However,
some security concerns have since been raised - namely that since this
is not the same invocation as --test but instead a remote orchestration
of puppet, the fact that passwords leak into the diff is a dangerous
default.
This reverts commit b86762c1806aa7f021a4780d06db2d3937910a62.
2016-12-08 11:33:31 -05:00
Brian Coca
29fad0223d
whitespace fixes
2016-12-08 11:33:30 -05:00
Romain Brucker
e4ce38fa0b
Adding comment support for iptables module
2016-12-08 11:33:30 -05:00
Brian Coca
50905e5673
fixed typos in cryptab, thanks @timw fixes #1176
2016-12-08 11:33:30 -05:00
Alexander
8e509c2736
fix typo error
...
fix spell error for whether
2016-12-08 11:33:30 -05:00
Matt Carroll
164e1f3baa
Fix ZFS create
...
This was failing due to the createparent variable being referenced but
never actually loaded from properties
2016-12-08 11:33:30 -05:00
Ondra Machacek
d43d4718f3
system: pam_limits: add support for unlimited/infinity/-1
...
Early pam_limits module didn't support special values for items.
This patch is adding support to special values unlimited, infinity and -1.
Issue: https://github.com/ansible/ansible-modules-extras/issues/1033
Signed-off-by: Ondra Machacek <machacek.ondra@gmail.com>
2016-12-08 11:33:30 -05:00
Jonathan Mainguy
451a05c1a2
Change show_diff to default to yes, to match what puppet agent --test is, since the rest of the options defaulted to on are grabbed from --test
2016-12-08 11:33:30 -05:00
Toshio Kuratomi
0111b616d7
Fix docs to build
2016-12-08 11:33:28 -05:00
Linus Unnebäck
ebfb8bc7cf
iptables: add note about rules
2016-12-08 11:33:28 -05:00
Linus Unnebäck
8d93747275
iptables: expand rule options
2016-12-08 11:33:28 -05:00
Linus Unnebäck
1790722dd4
module: system/iptables
2016-12-08 11:33:28 -05:00
Steve
fea8995df1
Fix bug #1105 - incorrect use of lstrip()
...
Remove only the literal prefix '/dev/mapper/' - not any of the characters
in '/dev/mapper/' - from the name param of the crypttab module.
2016-12-08 11:33:27 -05:00
Matt Martz
803d9695e0
sys.exit removal for system/capabilities.py
2016-12-08 11:33:25 -05:00
Matt Martz
9c4fae7e3f
Fix open_iscsi EXAMPLES section
2016-12-08 11:33:25 -05:00
Charles Paul
0acfd95747
allow floating point input for size vale
2016-12-08 11:33:25 -05:00
Brian Coca
ae84177514
switched to use module loggigng
2016-12-08 11:33:24 -05:00
Konstantin Manna
19da801665
bugfix: use correct function close calls
2016-12-08 11:33:21 -05:00
Daniel Nägele
d705647873
fix #894 by actually updating with the modified settings
2016-12-08 11:33:18 -05:00
Konstantin Malov
c0ded9bc9e
Add some more locales to LOCALE_NORMALIZATION
2016-12-08 11:33:16 -05:00
varnav
1050b0f03f
Small improvement in documentation
2016-12-08 11:33:14 -05:00
Brian Coca
334b13b814
made seport 2.4 compatible
2016-12-08 11:33:11 -05:00
Dan Keder
f7d1d35709
seport.py: fix the "change" indication
2016-12-08 11:33:11 -05:00
Dan Keder
cda2aeb6c0
seport.py: Minor changes in docstrings
2016-12-08 11:33:11 -05:00
Dan Keder
d1f976f3df
seport.py: Add ability to specify multiple ports/port ranges
...
It's way faster than running the module repeatedly.
2016-12-08 11:33:10 -05:00
Dan Keder
494f05557a
Add module system/seport.py
...
Module for managing SELinux network port type definitions
2016-12-08 11:33:10 -05:00
Paul Markham
30f6995939
Updates for Solaris 11
2016-12-08 11:33:10 -05:00
Paul Markham
ecd5b22f59
Updates based on community review.
...
* Changed 'config' from a list to a string so any valid zonecfg(1M) syntax is accepted.
* Made default state 'present'
* Added 'attached', 'detached' and 'configured' states to allow zones to be moved between hosts.
* Updated documentation and examples.
* Code tidy up and refactoring.
2016-12-08 11:33:10 -05:00
Paul Markham
9073db0ee9
Handle case where .UNFONFIGURE file isn't there
2016-12-08 11:33:10 -05:00
Paul Markham
3610cf244e
Change state back to a required parameter
2016-12-08 11:33:10 -05:00
Paul Markham
240a559a2d
Changed 'whole_root' option to 'sparse'. Added state='started' as synonym for state='running'.
2016-12-08 11:33:10 -05:00
Paul Markham
68d2251016
- Renamed module to solaris_zone.py - Updated 'version_added' - Updated description of 'state' to make each line a list item - Check that OS is Solaris
2016-12-08 11:33:10 -05:00
Paul Markham
03730a3d55
Added zone.py module to manage Solaris zones
2016-12-08 11:33:09 -05:00
Brian Coca
bd0eeae6ff
fixed a few typos fixes #821
2016-12-08 11:33:08 -05:00
Brian Coca
deb36b00d0
added missing license headers fixes #508
2016-12-08 11:33:06 -05:00
Michael Scherer
bdd24fd7a5
Add selinux_permissive module, to be able to manage permissive domain
2016-12-08 11:33:06 -05:00
Serge van Ginderachter
14ba9b4b31
open_iscsi: minor PEP8 whitespace fixes
2016-12-08 11:33:06 -05:00
Serge van Ginderachter
21720f6bee
Return devicenodes as empty list if no LUN's
...
got connected. It is possible for an intiator to successfully connect to a
target, whilst getting no LUN's back. If no devicenodes get detected, it makes
more sense to return an empty list than plainly None.
This potentially avoids further tasks to have to check if devicenodes is
iterable.
2016-12-08 11:33:06 -05:00
Brian Coca
9f57c1b114
minor doc fixes to pam_limits
2016-12-08 11:33:05 -05:00
Sebastien ROHAUT
5be637a354
Update pam_limits.py
...
Add version 2.0
Remove default: from documentation for required values
use atomic_move from ansible module API
2016-12-08 11:33:05 -05:00
Sebastien ROHAUT
1c76fb14bb
Add "-" to ulimit type
...
Just edited pam_types to add the '-', as explained in man 5 limits.conf
2016-12-08 11:33:04 -05:00
Sebastien ROHAUT
c62430b452
Create pam_limits.py
...
The pam_limits module modify PAM limits, default in /etc/security/limits.conf.
For the full documentation, see man limits.conf(5).
2016-12-08 11:33:04 -05:00
Michael Scherer
c6391741a2
Do not assume that /var/lib/locales/supported.d/local exist
...
Since people can generate their own image with debootstrap, and
this wouldn't create a file /var/lib/locales/supported.d/local,
better check if it exist and work if it doesn't.
Fix #656
2016-12-08 11:33:03 -05:00
Michael Scherer
2ff3438435
Use the parameter 'name' everywhere for consistency
...
Fix https://github.com/ansible/ansible/issues/11395
2016-12-08 11:33:03 -05:00
Mathias Merscher
588ff5f512
ISO-8859-15 locale normalization in locale_gen module
...
Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
2016-12-08 11:33:02 -05:00
Brian Coca
ac206e55ff
added missing version_added to new filesystem option
2016-12-08 11:32:59 -05:00
William Brown
11966605ec
Changes to allow FS resize in filesystem
2016-12-08 11:32:58 -05:00
Brian Coca
493e821f09
added version_added to new origin option
2016-12-08 11:32:57 -05:00
John W Higgins
b8bf7bd084
Switch to origin and cleanup
2016-12-08 11:32:57 -05:00
John W Higgins
c6a38ef185
Add zfs cloning
2016-12-08 11:32:57 -05:00
Timothy Vandenbrande
8a28ac3da7
updated version added for source into the docs
2016-12-08 11:32:55 -05:00
Timothy Vandenbrande
0861037fd9
added a source/network add/remove to/from zone for firewalld - removed useless comment
2016-12-08 11:32:55 -05:00
tylerturk
4f665e71bd
Fix documentation bug
2016-12-08 11:32:55 -05:00
Dag Wieers
6dc8696e02
Another incompatibility with python 2.4
2016-12-08 11:32:51 -05:00
Dag Wieers
35d4b3530b
Fix TravisCI failure on python 2.4
2016-12-08 11:32:51 -05:00
Franck Nijhof
5f84fc985d
Small fix for boolean when boolean type was set via a variable (somehow changes the behaviour of Ansible because of YAML as it seems. Booleans then become represented as a string).
2016-12-08 11:32:51 -05:00
Franck Nijhof
631927c579
Renamed module from mac_defaults to osx_defaults so the naming is more up to par with existing modules (e.g. osx_say)
2016-12-08 11:32:51 -05:00
Franck Nijhof
13916e0e02
Added module for managing Apple Mac OSX user defaults
2016-12-08 11:32:51 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Rene Moser
45c370dbb8
puppet: update author to new format
2016-12-08 11:32:49 -05:00
Rene Moser
e97399b173
puppet: add --environment support
2016-12-08 11:32:49 -05:00
Rene Moser
4238950a58
puppet: make arg puppetmaster optional
...
puppetmaster was used to determine if `agent` or `apply` should be used. But puppetmaster is not required by puppet per default. Puppet may have a config or could find out by itself (...) where the puppet master is.
It changed the code so we only use `apply` if a manifest was passed, otherwise we use `agent`.
This also fixes the example, which did not work the way without this change.
~~~
# Run puppet agent and fail if anything goes wrong
- puppet
~~~
2016-12-08 11:32:49 -05:00
Rene Moser
8f9c3efb1d
puppet: ensure puppet is in live mode per default
...
puppet may be configured to operate in `--noop` mode per default.
That is why we must pass a `--no-noop` to make sure, changes are going to be applied.
2016-12-08 11:32:49 -05:00
Rene Moser
f91b75db2f
puppet: fix missing space between command and arg
...
Fixes:
~~~
{
"cmd": "/usr/bin/puppetconfig print agent_disabled_lockfile",
"failed": true,
"msg": "[Errno 2] No such file or directory",
"rc": 2
}
~~~
2016-12-08 11:32:49 -05:00
Monty Taylor
b61d270648
Fix octal values for python 2.4
2016-12-08 11:32:48 -05:00
Monty Taylor
15fccb1ea1
Add support for check mode
2016-12-08 11:32:48 -05:00
Monty Taylor
32c5c00cde
Fix some errors pointed out by travis
2016-12-08 11:32:48 -05:00
Monty Taylor
9e2c4efa53
Add module to run puppet
...
There is a growing pattern for using ansible to orchestrate runs of
existing puppet code. For instance, the OpenStack Infrastructure team
started using ansible for this very reason. It also turns out that
successfully running puppet and interpreting success or failure is
harder than you'd expect, thus warranting a module and not just a shell
command.
This is ported in from
http://git.openstack.org/cgit/openstack-infra/ansible-puppet
2016-12-08 11:32:48 -05:00
Brian Coca
f65d83cea0
corrected lvol docs version to 2.0
2016-12-08 11:32:47 -05:00
David Wittman
d1311fbc13
Add opts parameter
...
Adds the ability to set options to be passed to the lvcreate command
using the `opts` parameter.
2016-12-08 11:32:47 -05:00
Giovanni Tirloni
ac3614527d
add createparent option to zfs create
2016-12-08 11:32:47 -05:00
Brian Coca
25f423e42f
added copyright/license info to modules I had missed
2016-12-08 11:32:46 -05:00
Nicolas Brisac
bcfd5772e4
Allow filtering of routed/forwarded packets
...
MAN page states the following :
Rules for traffic not destined for the host itself but instead for
traffic that should be routed/forwarded through the firewall should
specify the route keyword before the rule (routing rules differ
significantly from PF syntax and instead take into account netfilter
FORWARD chain conventions). For example:
ufw route allow in on eth1 out on eth2
This commit introduces a new parameter "route=yes/no" to allow just that.
2016-12-08 11:32:45 -05:00
Rene Moser
db3e4c8c65
firewalld: remove BabyJSON
...
See https://github.com/ansible/ansible-modules-extras/issues/430
2016-12-08 11:32:45 -05:00
Christian Thiemann
c20ab3abef
Fix alternatives module in non-English locale
...
The alternatives module parses the output of update-alternatives, but the expected English phrases may not show up if the system locale is not English. Setting LC_ALL=C when invoking update-alternatives fixes this problem.
2016-12-08 11:32:45 -05:00
fdupoux
2cc53281d8
Devices in the current_devs list must also be converted to absolute device paths so comparison with dev_list works
2016-12-08 11:32:45 -05:00
Benjamin Albrecht
1717041118
Fix possible values for zfs sync property
2016-12-08 11:32:45 -05:00
fdupoux
c948877a63
Removed conditional assignment of yesopt to make it work with python-2.4 (to pass the Travis-CI test)
2016-12-08 11:32:45 -05:00
fdupoux
c02fa7cfc9
Suppress prompts from lvcreate using --yes when LVM supports this option
2016-12-08 11:32:45 -05:00
Otto Kekäläinen
4f2a0cd16d
gluster_volume: Finalize brick->bricks transition by previous author
2016-12-08 11:32:45 -05:00
Otto Kekäläinen
c05d2875d1
gluster_volume: Improved parsing of cluster parameter list
2016-12-08 11:32:44 -05:00
Otto Kekäläinen
d76cd4c299
gluster_volume: Parameter expects comma separated list of hosts, passing {{play_hosts}} will fail as Python does not parse it into a list
2016-12-08 11:32:44 -05:00
Otto Kekäläinen
f0dc00d21a
gluster_volume: Clarify error message to tell what actualy failed
2016-12-08 11:32:44 -05:00
Otto Kekäläinen
8f9b4a0730
gluster_volume: Typofix in docs (equals, not colon)
2016-12-08 11:32:44 -05:00
Brian Coca
a7b46316c1
removed executable bit
2016-12-08 11:32:42 -05:00
Toshio Kuratomi
90c2e630b5
Fix typo: Need lvreduce instead of lvextend.
...
Fixes #513
2016-12-08 11:32:41 -05:00
Toshio Kuratomi
4f07e8b256
Many more doc fixes
2016-12-08 11:32:40 -05:00
Brian Coca
d344a3fde3
more string corrections
2016-12-08 11:32:39 -05:00
Brian Coca
2753cd186a
moar quotes
2016-12-08 11:32:39 -05:00
Matt Martz
42bca5398b
Use try/finally with file opening to close the file
2016-12-08 11:32:36 -05:00
Matt Martz
8bd5757720
Fix up modules that have python24 syntax error
2016-12-08 11:32:36 -05:00
Sterling Windmill
0eaee21d81
Allow for specifying name instead of host as per the documentation at http://docs.ansible.com/known_hosts_module.html
2016-12-08 11:32:35 -05:00
Robert Osowiecki
523ba0820b
Using get_bin_path to find rmmod and modprobe
2016-12-08 11:32:35 -05:00
Doug Luce
9211369389
Add the cronvar module.
...
This manages environment variables in Vixie crontabs. It includes
addition/removal/replacement of variables and ordering via the
insertbefore/insertafter parameters.
2016-12-08 11:32:34 -05:00
Brian Coca
48e1f1b0bc
fixed 2.4 compatibility
2016-12-08 11:32:34 -05:00
Brian Coca
60df464d1a
added aliases docs
2016-12-08 11:32:34 -05:00
RJ Nowling
58e681495f
Change 'brick' to 'bricks' and add 'brick' as an alias. Add example with multiple bricks.
2016-12-08 11:32:34 -05:00
RJ Nowling
3bd5631fd1
Improve documentation for gluster_volume brick parameter
2016-12-08 11:32:34 -05:00
RJ Nowling
ef3e5bd296
Issue #403 : Add support for multiple bricks to gluster_volume
2016-12-08 11:32:34 -05:00
Jonathan Mainguy
af51a50863
Fixes bug where state=absent did not work
2016-12-08 11:32:33 -05:00
RJ Nowling
0243eec2a6
Make 'module' global. Small whitespace formatting fixes. Closes Issue #397 .
2016-12-08 11:32:33 -05:00