Commit graph

9037 commits

Author SHA1 Message Date
Peter Sprygada
81aa3a760c Merge pull request #4730 from privateip/ios_template
fix bug in ios_template when include_defaults is set to true
2016-09-07 21:48:21 -04:00
Peter Sprygada
0a03d34916 Merge pull request #4729 from privateip/ios_config
adds path kwarg when performing config diff checks in ios_config
2016-09-07 21:48:02 -04:00
Peter Sprygada
c3c964475c fix bug in ios_template when include_defaults is set to true
Module was ignoring  include_defaults argument.  This fixes the issue
such that the correct configuration is returned
2016-09-07 19:56:27 -04:00
Peter Sprygada
05887b8f86 adds path kwarg when performing config diff checks in ios_config 2016-09-07 19:42:59 -04:00
mlewe
37d08500c5 Fixes ansible/ansible#15922 (#3793) 2016-09-07 15:22:16 -07:00
Matt Ferrante
624f813f60 Properly support tag updates on CloudFormation stack-update actions (#3638) 2016-09-07 16:16:32 -04:00
Peter Sprygada
52fd4914ca Merge pull request #4561 from jedelman8/nxos_interface
removed feature check for nxos_interface
2016-09-07 16:01:49 -04:00
Peter Sprygada
db18577df1 Merge pull request #4724 from privateip/eos_config
roll up of minor fixes in eos_config module
2016-09-07 14:56:21 -04:00
Peter Sprygada
87dc24b19e roll up of minor fixes in eos_config module
* fixes save argument to be type bool
* now properly sets the changed returned flag based on diff
* updates docstring RETURNS to add backup_path
* removes unneeded state argument

tested on EOS 4.15.4F
2016-09-07 14:24:08 -04:00
@skg_net
1d3a70a689 dnos10_template module 2016-09-07 17:34:06 +01:00
David J Peacock
3bede24323 description expanded for 112, AKA VRRP protocol) (#4645)
* description expanded for 112, AKA VRRP protocol)

* corrected syntax for description for IP protocols
2016-09-07 12:30:03 -04:00
Brian Coca
1d4c0abe29 added backup_file to module returns (#4723)
fixes #14502
also cleaned up some unused stuff and fixed imports
2016-09-07 12:18:33 -04:00
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