Commit graph

8675 commits

Author SHA1 Message Date
Marcos Diez
f7558164b5 better authorized_keys documentation (#3739) 2016-07-12 08:52:00 -04:00
Chris Houseknecht
328f047fda Merge pull request #4040 from qiluo-msft/qiluo/actual_stdin_open
Fix getting actual_stdin_open
2016-07-11 13:24:17 -04:00
Chris Houseknecht
d97566dd6d Merge pull request #4157 from chouseknecht/devel
Fix multi-interface port binding.
2016-07-11 13:21:29 -04:00
Chris Houseknecht
4aee56553f
Fix multi-interface port binding. 2016-07-11 13:14:23 -04:00
Chris Houseknecht
9c88c45dd2 Merge pull request #4155 from chouseknecht/fix_4091
Support publishing all ports.
2016-07-11 12:47:02 -04:00
Chris Houseknecht
e51024c84d Fix 'all' option for published_ports parameter. 2016-07-11 12:41:20 -04:00
Chris Houseknecht
36ed0ad766 Add cleanup parameter. (#4144) 2016-07-11 11:49:31 -04:00
David Shrewsbury
a606e9cd37 Fix bug in os_router.py when router is not actually updated. (#4107)
The shade update_router() call will return None if the router is
not actually updated. This will cause the module to fail if we
do not protect against that.
2016-07-11 16:01:20 +02:00
Chris Houseknecht
391561fa5d Merge pull request #4151 from chouseknecht/fix_4139
Fix purge_networks
2016-07-11 10:00:31 -04:00
Peter Sprygada
359f1747be Merge pull request #4153 from privateip/ios_command
fix up ios_command to use NetworkModule
2016-07-11 09:57:39 -04:00
Peter Sprygada
d2aca4980b Merge pull request #4152 from privateip/ios_config
refactor ios_config for network module
2016-07-11 09:57:31 -04:00
Brian Coca
7437b6b25f updated checkmode for update-rc.d
fixes #4146
2016-07-11 09:39:30 -04:00
Peter Sprygada
ebc9f092ad fix up ios_command to use NetworkModule
* using check mode will now block all commands except show commands
* module will no longer allow config mode commands
* check args for unused values and issue warning
2016-07-11 06:01:32 -07:00
Peter Sprygada
5f08277eb4 refactor ios_config for network module
This refactors the ios_config module to use the network module added
in 2.2 to simplify common network functions

new features

* add src, dest arguments for working with config
* results now return flag if the config was saved or not
* adds append argument for updating the dest file (when dest is used)
2016-07-11 05:58:12 -07:00
Rene Moser
45845e0bdc os_server, doc: add version added for delete_fip
Also see #3509
2016-07-11 08:40:32 +02:00
David Shrewsbury
3979faf3e5 Allow os_server to delete FIP (#3509)
The os_server module could automatically generate a floating IP for
the user with auto_ip=true, but we didn't allow for this FIP to be
automatically deleted when deleting the instance, which is a bug.
Add a new option called delete_fip that enables this.
2016-07-11 08:35:51 +02:00
Chris Houseknecht
78f6c7e51e
Fix purge_networks 2016-07-11 00:23:58 -04:00
Andrei Lukovenko
ff223ee14c Bug: invocation with state=absent always leads to (#3051)
[localhost]: FAILED! => {"changed": false, "failed": true, "msg":
"'Domain' object has no attribute 'id'"}

How to reproduce:

- name: create domain
  digital_ocean_domain: state=present name=DOMAIN_NAME ip=DROPLET_IP

- name: destroy domain
  digital_ocean_domain: state=absent name=DOMAIN_NAME

Problem: DigitalOcean API accepts domain name, not record ID
(https://developers.digitalocean.com/documentation/v2/#delete-a-domain)
2016-07-11 01:26:31 +02:00
Adrian Moisey
74285d6a53 Add default port for aurora (#4102)
If a port isn't specified, it's looked up. The lookup breaks without
this.

Related: https://github.com/ansible/ansible-modules-core/pull/3414
2016-07-11 01:20:12 +02:00
Peter Sprygada
38e8c7d2d0 Merge pull request #4150 from privateip/ios_facts
update ios_facts module to use NetworkModule
2016-07-10 12:42:48 -04:00
Peter Sprygada
b2202c6da8 update ios_facts module to use NetworkModule
minor update to ios_facts to remove get_module() in favor of NetworkModule
2016-07-10 12:38:08 -04:00
jctanner
db8af4c5af add gather_timeout parameter (#4093) 2016-07-08 17:22:05 -04:00
Matt Davis
4c4a6de9d6 Merge pull request #3771 from jhawkesworth/doc_win_get_url_force_no_behaviour
document how force=no works for win_get_url and add RETURN
2016-07-08 13:38:47 -07:00
Peter Sprygada
25e98e869f Merge pull request #4124 from privateip/ios_facts
initial add of ios_facts module
2016-07-07 17:10:29 -04:00
Peter Sprygada
8655dc4aaf Merge pull request #4123 from privateip/ios_command
refactor ios_command to use CommandRunner class
2016-07-07 17:10:04 -04:00
Peter Sprygada
1ba45c1d03 Merge pull request #4065 from privateip/eos_command
refactor the eos_command module to use the CommandRunner
2016-07-07 17:06:29 -04:00
James Cammarata
799159b8ee Removing erroneous import from async_status 2016-07-07 13:45:21 -05:00
James Cammarata
b75f305079 Ensure async wrapper and status return consistent fields 2016-07-07 13:41:50 -05:00
Matt Clay
6b2ed8e468 Merge pull request #4135 from mattclay/notifications
Enable IRC and Slack notifications on Shippable.
2016-07-07 11:28:04 -07:00
Matt Clay
5dc0aab7bb Enable IRC and Slack notifications on Shippable. 2016-07-07 11:16:36 -07:00
James Cammarata
28567b6ea0 Merge pull request #4051 from Shrews/async_atomic_move
Use os.rename() in async_wrapper
2016-07-07 11:28:49 -05:00
Matt Clay
94f4dc0099 Merge pull request #4129 from mattclay/split-tests
Run each integration test separately.
2016-07-06 23:52:55 -07:00
Matt Clay
44d16c168d Run each integration test separately. 2016-07-06 23:47:45 -07:00
Matt Clay
0ecf3ce6ec Merge pull request #4127 from mattclay/shippable
Initial support for module integration tests.
2016-07-06 22:30:12 -07:00
Matt Clay
df4bfb431e Initial support for module integration tests. 2016-07-06 20:22:22 -07:00
Peter Sprygada
4f8f8f1998 initial add of ios_facts module
This adds the new module ios_facts for collect fact information from
ios devices
2016-07-06 21:30:55 -04:00
Peter Sprygada
11efe33730 refactor the eos_command module to use the CommandRunner
* This adds support the CommandRunner to handle executing commands on
the remote device.
* It also changes the waitfor argument to wait_for to remain compatable
with other modules and adds an alias for waitfor.
* Restricts commands to show commands only when check mode is specified.
* add version_added to wait_for doc string
2016-07-06 21:28:48 -04:00
Dag Wieers
37b7708c5d Fix a problem where the newly provided mode is a string (#3769)
* Fix a problem where the newly provided mode is a string

This fixes #3597

* Implement python3-compatible get_exception() handling
2016-07-06 15:16:51 -07:00
Dag Wieers
b66bf8e7a4 Revert PR #3575 since it causes problems related to exclude patterns (#3767)
* Revert PR #3575 since it causes problems related to exclude patterns

By using a different method for getting archive filelists, and extracting we introduced new problems related to excluding based on gtar patterns.

As a result files that would be excluded by gtar, would still be in the filelist. Implementing our own gtar compatible pattern exclusion mechanism is near to impossible (believe me, we looked at it...). The best way is to look at the original problem and deal with that, and ensure that extraction and filelists are done with the exact same tool and exact same options.

The solution is to decode the octal unicode representation in gtar's output back to unicode. Since gtar has no problem extracting these files in LANG=C, we simply has to compensate for it.

This reverts #3575 and fixes #11348.

* Implement codecs.escape_decode() instead of decode("string_escape") for python3
2016-07-06 14:40:48 -07:00
Chris Houseknecht
d861e90a16 Merge pull request #4120 from chouseknecht/azure-rc5
Remove object name validation.
2016-07-06 17:36:17 -04:00
Chris Houseknecht
bb582ae574
Remove object name validation. 2016-07-06 17:29:42 -04:00
Peter Sprygada
2be917851d refactor ios_command to use CommandRunner class
* fixes running commands in check mode.  now only show commands are allowd
* renamed waitfor to wait_for with alias to waitfor for consistency
2016-07-06 15:24:46 -04:00
Brian Coca
2373810034 updated set_fact docs with note about typing 2016-07-06 11:14:42 -04:00
nitzmahone
4a0a9cd1fc minor win_template doc corrections 2016-07-05 15:49:13 -07:00
Brian Coca
642221414f name was the issue, not pkg 2016-07-05 16:47:57 -04:00
Brian Coca
f176b767c6 protect another portion against None name 2016-07-05 15:39:08 -04:00
Brian Coca
3c76c3669e another fix for None in name 2016-07-05 15:33:09 -04:00
Brian Coca
97d70d948d avoid traceback when name is None 2016-07-05 15:31:13 -04:00
Robin Roth
f6fae82ec2 Fix git shallow update (#3912)
* remove unused variables

* fetch branch name instead of HEAD

fix #3782, which was introduced by f1bacc1d3f

* disable git depth option for old git versions

fixes #3782
git support for `--depth` did not fully work in old git versions (before 1.8.2)
fall back to full clones/fetches on those versions

* raise required git version to 1.9.1 for depth option

* use correct depth argument in switch_version
2016-07-05 14:57:38 -04:00
Christian Schwarz
f5e8204dbc service module: use sysrc on FreeBSD (#4042)
* service module: use sysrc on FreeBSD

sysrc(8) is the designated userland program to edit rc files on FreeBSD.

It first appeared in FreeBSD 9.2, hence is available on all supported
versions of FreeBSD.

Side effect: fixes #2664

* Incorporate changes suggested by bcoca.

- Use `get_bin_path` to find sysrc binary.
- Only use sysrc when available (support for legacy versions of FreeBSD)
2016-07-05 09:43:05 -04:00