Commit graph

9024 commits

Author SHA1 Message Date
Peter Sprygada
db38f0c876 Merge pull request #4719 from privateip/eos_template
minor bug fixes in eos_template
2016-09-07 08:42:40 -04:00
Peter Sprygada
e464599632 minor bug fixes in eos_template
* fixes issue where configuration was not being loaded (#4704)
* fixes issue where defaults were not included when argument was set to True

tested on EOS 4.15.4F
2016-09-06 22:51:40 -04:00
Matt Davis
5a5c1491ae fix async_wrapper start suspended race (#4718)
Main thread in started-suspended process may not be immediately resumable on slow targets- poll for proper state for awhile before attempting resume
2016-09-06 16:51:17 -07:00
Matt Davis
a746eff954 Windows async module support (#4710)
Powershell impls of async_wrapper, async_status- associated tests and async action changes are in https://github.com/ansible/ansible/pull/17400.
2016-09-06 13:26:40 -07:00
Brian Coca
8e0cc9d370 updated include_role docs 2016-09-06 14:05:43 -04:00
Dag Wieers
dfb170cab9 Support DOS file attributes (e.g. archive-bit or hidden-bit) (#4705)
This fixes #4554
2016-09-06 10:30:47 -07:00
Peter Sprygada
635fa22753 Merge pull request #4708 from privateip/fix-4707
fixes issue where the configobjs are not deserialized to a list
2016-09-05 15:47:01 -04:00
Peter Sprygada
e5419a2738 fixes issue where the configobjs are not deserialized to a list
When the configuration is compared and the results deserialized, the
dumps() function returns a string.  This cohereces the return to a list
in case before and/or after needs to be applied

fixes 4707
2016-09-05 15:44:21 -04:00
Peter Sprygada
ecca37a959 Merge pull request #4699 from privateip/vyos_config
removes argument from vyos_config module
2016-09-04 09:26:49 -04:00
Peter Sprygada
0045cf31c5 Merge pull request #4687 from privateip/junos_command
add new functionality to junos_command module
2016-09-04 09:25:11 -04:00
Peter Sprygada
f0e5a8c7ab Merge pull request #4688 from privateip/junos_netconf
update junos_netconf module
2016-09-04 09:25:01 -04:00
Peter Sprygada
4ab3492011 Merge pull request #4689 from privateip/junos_template
update junos_template module
2016-09-04 09:24:32 -04:00
Peter Sprygada
eca9d0700d Merge pull request #4692 from privateip/junos_config
update junos_config module
2016-09-04 09:24:20 -04:00
Peter Sprygada
74ae5a6257 Merge pull request #4697 from privateip/nxos_config
updates nxos_config to remove state argument
2016-09-04 09:23:57 -04:00
Peter Sprygada
a756d1baea Merge pull request #4696 from privateip/ops_config
removes state argument from ops_config module
2016-09-04 09:23:44 -04:00
Peter Sprygada
eae87e21d9 Merge pull request #4698 from privateip/ios_config
removes state argument from ios_config
2016-09-04 09:23:24 -04:00
Peter Sprygada
cba30b637a updates nxos_config to remove state argument
The state argument should not be in the nxos_config module.  This change
removes the state argument for this release
2016-09-04 09:19:40 -04:00
Peter Sprygada
989a2c7d0f removes argument from vyos_config module
The state argument should not be in vyos_config.  This commit removes the
state argument
2016-09-04 09:17:15 -04:00
Peter Sprygada
e0f7912e37 removes state argument from ios_config
The state argument should not be in ios_config.  This change removes the
state argument
2016-09-04 09:16:31 -04:00
Peter Sprygada
330e323705 removes state argument from ops_config module
this removes the state argument from ops_config.  The state argument should
not have been there
2016-09-04 09:15:03 -04:00
Peter Sprygada
a11a311b49 update junos_config module
* adds src argument to load configuration from disk
* adds src_format to set the source file format
* adds update argument with choices merge or replace
* deprecates the replace argument in favor of update=replace
2016-09-03 15:15:37 -04:00
Peter Sprygada
256730e997 add new functionality to junos_command module
* commands argument now accepts a dict arguments
* rpcs argument now accepts a dict argument
* 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-09-03 06:09:46 -04:00
Peter Sprygada
ba8613cae9 update junos_netconf module
Updates the junos_netconf module with changes to load the
NetworkModule instead of the get_module factory method.  This
update is part of the 2.2 refactor of network modules
2016-09-02 22:40:38 -04:00
Peter Sprygada
0dfd3f177f update junos_template module
This updates the junos_template module implementing the changes for
Ansible 2.2
2016-09-02 22:36:22 -04:00
Matt Clay
982c4557d2 Python 3 fixes for async_wrapper and async_status. (#4671) 2016-09-02 18:35:14 -07:00
Matt Clay
05c6707a32 Make async_wrapper ignore '_' as an argsfile. (#4678)
This provides support for passing additional positional parameters to async_wrapper.
Additional parameters will be used by the upcoming async support for Windows.
2016-09-02 18:19:29 -07:00
scottb
b0ef99c73b Merge pull request #4659 from dharmabumstead/update-command-module-operatoers
Added semicolon to invalid operators list redux.
2016-09-02 14:58:12 -07:00
Scott Butler
1b86d838b6 Added semicolon to invalid operators list redux. 2016-09-02 12:26:33 -07:00
Kenny Woodson
269c06a4c9 Fix for validate rule. Ensure rule is a dict. (#4640) 2016-09-02 15:09:58 -04:00
Evan Kaufman
f7b34c810a Declare empty diff dict ahead of time (#4646)
Fixes #4634
2016-09-02 20:55:03 +02:00
Kenny Woodson
9b37dcb593 Getting rid of a None type error when no resource tags are defined. (#4638) 2016-09-02 11:54:27 -07:00
Toshio Kuratomi
42c74a0ce2 Python3 fixes to copy, file, and stat so that the connection integration tests can be run (#4632)
* Python3 fixes to copy, file, and stat so that the connection integration tests can be run

* Forgot to audit the helper functions as well.

* Fix dest to refledt b_dest (found by @mattclay)
2016-09-02 11:25:31 -07:00
Peter Sprygada
baa2e930bb Merge pull request #4649 from privateip/ios_facts
bugfix that adds missing itertools import to ios_facts
2016-09-02 09:07:49 -04:00
Peter Sprygada
4c8bbae415 bugfix that adds missing itertools import to ios_facts
fixes #4647
2016-09-02 08:15:07 -04:00
Peter Sprygada
8f3ee22a17 Merge pull request #4599 from skg-net/devel
Added Command and Config modules to support Dell Networking OS10 device
2016-09-01 10:26:49 -04:00
Michael Scherer
5f652c7584 Add support for selinux_boolean_sub conversion (#4570)
SELinux since 2012 use a configuration file to
convert boolean names from a old name to a new name,
for preserving backward compatibility.

However, this has to be done explicitely when using the python
bindings, and the module was not doing it.

Openshift ansible script use this construct to detect if
a boolean exist or not:

    - name: Check for existence of virt_sandbox_use_nfs seboolean
      command: getsebool virt_sandbox_use_nfs
      register: virt_sandbox_use_nfs_output
      failed_when: false
      changed_when: false

    - name: Set seboolean to allow nfs storage plugin access from containers(sandbox)
      seboolean:
        name: virt_sandbox_use_nfs
        state: yes
        persistent: yes
      when: virt_sandbox_use_nfs_output.rc == 0

On a system where virt_sandbox_use_nfs do not exist, this work. But
on a system where virt_sandbox_use_nfs is a alias to virt_use_nfs (like
Fedora 24), this fail because the seboolean is not aware of the alias.
2016-09-01 04:26:23 -07:00
Toshio Kuratomi
7e79c59d38 to_text, to_bytes, and to_native now have surrogate_or_strict error handler (#4630)
On python3, we want to use the surrogateescape error handler if
available for filesystem paths and the like.  On python2, have to use
strict in these circumstances.  Use the new error strategy for to_text,
to_bytes, and to_native that allows this.
2016-09-01 04:19:15 -07:00
John R Barker
ceddebaf28 Consistent naming of Arista EOS device (#4616) 2016-09-01 12:10:32 +01:00
Peter Sprygada
1d48b47cad Merge pull request #4627 from privateip/ops_template
update ops_template module using refactored network shared modules
2016-08-31 22:06:43 -04:00
Peter Sprygada
dd6751d60a Merge pull request #4612 from privateip/ops_command
added new functionality to ops_command
2016-08-31 22:06:31 -04:00
Peter Sprygada
3746ed6a63 Merge pull request #4611 from privateip/ops_facts
update ops_facts with enhancements
2016-08-31 22:05:56 -04:00
Peter Sprygada
244c626822 Merge pull request #4610 from privateip/ops_config
update ops_config module with new enhancements
2016-08-31 22:05:47 -04:00
Matt Clay
95353ded58 Add python3 testing for module PRs. (#4629) 2016-08-31 16:59:54 -07:00
Senthil Kumar Ganesan
51c13ad82d Cleaned up the module imports 2016-08-31 14:39:16 -07:00
Tobias Wolf
34201d6bc4 Fix database table quoting in privileges_unpack() (#3858)
In Ansible 2.x this module gives `changed = True` for all privileges
that are specified including a table with

    priv: "database.table:GRANT"

Mysql returns escaped names in the format

    `database`.`tables`:GRANT

However in PR #1358, which was intended to support dotted database names
(a crazy idea to begin with), the quotes for the table name were left
out, leading to `curr_priv != new_priv`.

This means that the idempotency comparison between new_priv and
curr_priv is always 'changed'.

This PR re-introduces quoting to the table part of the priv.
2016-08-31 14:23:54 -07:00
Jean Prat
86366eca68 if user is empty, it is not converted to tuple when using host_all (#3038) 2016-08-31 21:56:08 +02:00
James Cammarata
e7cf786851 Adding 'end_play' docs to meta module 2016-08-31 14:12:29 -05:00
Peter Sprygada
9c64d1947c update ops_template module using refactored network shared modules
This updates the ops_template module to work with the network shared
modules introduced in Ansible 2.2

Tested with OpenSwitch 0.4.0
2016-08-31 15:01:16 -04:00
Peter Sprygada
b99cad4128 added new functionality to ops_command
* commands argument now accepts a dict arguments
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowed when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

Tested on OpenSwitch 0.4.0
2016-08-31 14:19:31 -04:00
Peter Sprygada
6f9ab60f81 Merge pull request #4615 from ansible/gundalow-patch-2
Consistent naming of Arista EOS device
2016-08-31 14:16:28 -04:00