Commit graph

8901 commits

Author SHA1 Message Date
Dag Wieers
9ea56d26b0 Fix multiple issues with unzip and gtar support (#4131)
* Improve the correct handling of gtar and unzip options

Add the option --show-transformed-names when extra_opts is being used
Ignore bogus warnings related to empty filenames
Properly quote _and_ escape filenames for unzip command
Rewrite gtar options and provide run_command with array, not string

This fixes #2480 and #4109.

* Make check-mode work for zip-files

Check-mode was disabled for zip-files since gtar did not support it.
This change enables check-mode support for zip-files, but does skip the task when used with gtar.
(Best of both worlds)

Also remove unused compress_mode variable.

This replaces PR #4401, the changes overlap somewhat so I merged them
2016-08-25 14:25:21 +01:00
Dag Wieers
ec158e3ed8 Remove redundant code AFAICT (#3908) 2016-08-24 18:47:39 -04:00
Peter Sprygada
55191c77b8 Merge pull request #4524 from privateip/vyos_command
added new functionality to vyos_command
2016-08-24 17:11:03 -04:00
Peter Sprygada
a3931f9315 Merge pull request #4509 from privateip/iosxr_command
add new functionality to iosxr_command module
2016-08-24 17:10:46 -04:00
Toshio Kuratomi
cbd9e07f19 Fix hg for python3 (#4528)
* Remove import of unused ConfigParser (ConfigParser has been renamed in py3)
* When retrieving version, normalize to a native string
2016-08-24 11:14:45 -07:00
Richard Adams
c8ca1a6211 Add parameter to ec2 module to control instance shutdown behavior (stop|terminate) 2016-08-24 13:34:48 -04:00
Toshio Kuratomi
2f26352e49 Cleanups of command.py (#4526)
* Import module_utils at the top
* Fix python3 by marking literals combined with stdout/stderr as byte
  literals
* Mark parameters as type=path where appropriate
2016-08-24 08:27:36 -07:00
Karthik Suresh
64ded1bb5e Removing duplicate name: parameter possible typo (#4525)
Removed name:parameter in documentation. Possible typo.
2016-08-24 11:04:59 -04:00
Peter Sprygada
66e48f5eb4 added new functionality to vyos_command
* commands argument now accepts a dict arguments
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all
2016-08-24 10:37:51 -04:00
Matt Clay
f16091c718 Enable CI on Shippable for OS X. (#4515) 2016-08-23 15:14:36 -07:00
Chris Houseknecht
36dae4e923 Merge pull request #4514 from chouseknecht/devel
Fix doc strings. Use of > was breaking HTML generation on docs site m…
2016-08-23 16:26:30 -04:00
chouseknecht
42540ae510 Fix doc strings. Use of > was breaking HTML generation on docs site module page. 2016-08-23 16:17:56 -04:00
Peter Sprygada
5dad16e914 Merge pull request #4501 from privateip/eos_command
add new functionality to eos_command module
2016-08-23 15:21:09 -04:00
Michael Scherer
5f1d6ded7f Add support for setting fstab location on Linux too for mount (#3271)
Fix #3153
2016-08-23 11:38:59 -04:00
Michael Scherer
f6450e577f Add acl freebsd (#3656)
* FreeBSD do not support --omit-header and --absolute-names

* The option for following symlink wth getfacl is different on FreeBSD

* ZFS on Freebsd use nfsv4 acls, who use a slightly different syntax

* FreeBSD do not have a --test flag, so always return 'True'

* FreeBSD do not have the --omit-headers options, so we have to filter by ourself

* Mark Freebsd as working for the acl module
2016-08-23 11:11:34 -04:00
Peter Sprygada
12d6ae8de4 add new functionality to iosxr_command module
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.
2016-08-23 09:33:12 -04:00
Peter Sprygada
368ca738fa Merge pull request #4503 from privateip/eos_config
update eos_config with new arguments
2016-08-23 09:24:05 -04:00
Peter Sprygada
356888a3a3 add new functionality to eos_command module
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.  Command and output are required arguments. Output
accepts valid values text and json.
2016-08-23 09:23:00 -04:00
Peter Sprygada
577d34d163 update eos_config with new arguments
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge, replace or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or without defaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-22 20:18:47 -04:00
Peter Sprygada
ddc8537a17 Merge pull request #4500 from privateip/nxos_command
fix example in nxos_command module
2016-08-22 16:43:36 -04:00
Peter Sprygada
18e53bc804 fix example in nxos_command module 2016-08-22 16:42:12 -04:00
Peter Sprygada
7c4618d8c2 Merge pull request #4485 from privateip/nxos_config
update nxos_config with new arguments
2016-08-22 15:43:53 -04:00
Peter Sprygada
c23f57c0ef Merge pull request #4482 from privateip/ios_config
merge functions from ios into ios_config
2016-08-22 15:43:36 -04:00
Peter Sprygada
23f067a0ec Merge pull request #4484 from privateip/nxos_command
added new functionality to nxos_command
2016-08-22 15:43:26 -04:00
codyrat
50133f1ed6 re.match for numeric only for kwargs[key] = int(value) (#4495) 2016-08-22 15:00:33 -04:00
Peter Sprygada
85b0bbc5c0 added new functionality to nxos_command
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.  Command and output are required arguments. Output
accepts valid values text and json.
2016-08-22 14:01:06 -04:00
Peter Sprygada
9e241129fe Merge pull request #4481 from privateip/ios_facts
fixes issue with duplicated commands in CommandRunner
2016-08-22 12:33:29 -04:00
Peter Sprygada
2c9f143ec3 Merge pull request #4480 from privateip/ios_command
added new functionality to ios_command
2016-08-22 12:32:25 -04:00
Peter Sprygada
4d79b7fa00 fixes issue with duplicated commands in CommandRunner
The CommandRunner will not allow duplicate commands to be added to the
command stack.  This fix will now catch the exception and continue if
a duplicate command is attempting to be added to the runner instance.
2016-08-22 11:58:36 -04:00
Peter Sprygada
2961087f26 added new functionality to ios_command
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.  Command and output are required arguments. Output
accepts valid values text and json.
2016-08-22 11:46:27 -04:00
Peter Sprygada
73352bb9a3 update nxos_config with new arguments
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or without defaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-21 08:50:59 -04:00
Peter Sprygada
f6dab64bc5 merge functions from ios into ios_config
* merge changes from ios shared module functions into ios_config.
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or withoutdefaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-20 08:11:20 -04:00
jctanner
713863a37e git: add a umask parameter (#4473)
Sources #10504
Fixes #10279
2016-08-19 14:59:10 -04:00
nishiokay
a24398d025 Add ipv6 paramater to digital_ocean module (#4447) 2016-08-19 09:07:47 +02:00
Toshio Kuratomi
90673cf6db Refactor stat.py so that it would be more friendly for unittests. (#4462)
* Refactor stat.py so that it would be more friendly for unittests.

* PEP8ify since we're moving most of the lines in the file and there's no open PRs
2016-08-18 13:16:06 -07:00
Peter Sprygada
91a839f1e3 Merge pull request #4458 from jedelman8/devel
improve working with trunks with nxos_switchport
2016-08-18 08:29:54 -04:00
Jason Edelman
5dc29dbc8b added a period 2016-08-18 07:21:32 -04:00
Jason Edelman
d49d61784f make aliases a list in the docstring 2016-08-18 07:00:19 -04:00
Jason Edelman
164021a6a8 remove commented out code, add alias, and doc 2016-08-18 06:53:04 -04:00
Jason Edelman
c009fe7e66 updated version_added for new param 2016-08-17 19:43:32 -04:00
Jason Edelman
996a34fbf7 fixed error handling 2016-08-17 19:19:07 -04:00
Jason Edelman
b8f6e130ed fixed docs 2016-08-17 19:15:25 -04:00
Jason Edelman
160fd0126f improve functionality for vlan trunks based on #4082 2016-08-17 19:11:50 -04:00
Chris Houseknecht
ff2eae0729 Merge pull request #4457 from listx/devel
docker_service: fix files/project_files typo
2016-08-17 17:30:52 -05:00
Linus Arver
74c8954d86 docker_service: fix files/project_files typo
The original decision to rename from `project_files' to `files' was in
3a5dd00076.
2016-08-17 14:50:27 -07:00
Chris Houseknecht
d796ab54b7 Merge pull request #4456 from chouseknecht/devel
Exposing tcp and udp for same port fails. Fixes issue #4354.
2016-08-17 16:13:49 -05:00
chouseknecht
95f69c55fa Exposing tcp and udp for same port fails. Fixes issue #4354. 2016-08-17 17:03:37 -04:00
Ryan Brown
8da5e2cb88 Merge pull request #4275 from shaunbrady/ec2_elb_lb_respect_vpc
Make ec2_elb_lb respect VPCs when resolving groups
2016-08-17 14:06:25 -04:00
Chris Short
013e91e9b0 find.py: Editing contains description to say regex (#4452)
find module contains argument appears to accept regex; correcting description accordingly
2016-08-17 11:53:05 -04:00
Alexey Sheplyakov
5f1ac88414 apt_key: fix spurious failure to import a subkey (#4366)
Importing a (sign only) subkey with apt_key module always fails,
however the actual keyring gets created and contains the correct keys.
Apparently the all_keys function skips the subkeys, hence the problem.

Fixes #4365
2016-08-16 18:01:07 +02:00