Brian Coca
0f9eaedfa9
added missing alias to docker doc fragment
2016-04-25 10:20:59 -04:00
Toshio Kuratomi
87d2345cf5
Merge pull request #15562 from abadger/ziploader-minor
...
Quite a few individually minor changes to ziploader
2016-04-25 06:59:22 -07:00
Toshio Kuratomi
bdd73e31dc
Have test-module clean up the local temp dir when it exits
...
Get test-module's debugger switch to do something useful with ziploader modules
2016-04-24 20:44:42 -07:00
Toshio Kuratomi
3ffd55ce7f
Don't include "ansible" in the module output as there are a few files in the upper directory (args and the module)
2016-04-24 20:42:14 -07:00
Toshio Kuratomi
3c135ef3f2
Push debug files into a subdirectory to keep things cleaner.
...
We now have the ansible module directory, ansible_module_*.py script
file and the args file. Makes sense to push them all into a separate
subdir.
2016-04-24 20:42:14 -07:00
Toshio Kuratomi
e9553c975f
Add debug usage to comments in the ziploader wrapper and don't strip comments if ANSIBLE_KEEP_REMOTE_FILES=1
2016-04-24 20:42:13 -07:00
Peter Sprygada
03a77e025d
Merge pull request #15569 from privateip/local_action_junos_template
...
updates action plugin junos_template to guess file format
2016-04-24 13:13:34 -04:00
Peter Sprygada
a1a732e24d
updates action plugin junos_template to guess file format
...
This update will attempt to guess the file format based on the template
extension if the format argument isnt set. It will also set the commit
comment to the task name if the comment isnt' explicitly defined.
2016-04-24 11:41:00 -04:00
Peter Sprygada
ffd42118d9
Revert "add new action plugin junos_config"
2016-04-24 10:34:29 -04:00
Peter Sprygada
cea6d858bc
Merge pull request #15566 from privateip/junos
...
adds config_format to junos shared module
2016-04-24 08:57:08 -04:00
Peter Sprygada
c4bd1c5a33
Merge pull request #15553 from privateip/local_action_junos_config
...
add new action plugin junos_config
2016-04-24 08:25:30 -04:00
Peter Sprygada
c87300f9e7
adds check on config_format kwarg in junos
...
This adds a check to validate the arugment for config_format kwarg in
get_config. If the specified format is not a valid option, the shared
module will call fail_json
2016-04-24 08:20:14 -04:00
Peter Sprygada
61baf41edc
Merge pull request #5 from dgarros/pyez
...
Add options to get_config to accept format (text, set or xml)
2016-04-24 08:18:10 -04:00
Peter Sprygada
2c90472609
Merge pull request #15410 from privateip/junos
...
adds support for netconf to junos shared module
2016-04-24 06:57:18 -04:00
Toshio Kuratomi
44e21f7062
Allow AnsibleModules to be instantiated more than once in a module
...
Fix SELINUX monkeypatch in test_basic
2016-04-23 14:04:45 -07:00
chouseknecht
dc9b784432
Update per PR comments.
2016-04-23 12:47:16 -04:00
chouseknecht
8dc04770b6
Fix syntax error
2016-04-23 12:46:47 -04:00
chouseknecht
48a2165310
Adding docker_common util module.
2016-04-23 12:46:47 -04:00
Toshio Kuratomi
d7189a442e
ziploader currently needs absolute imports to know whether to include another module
2016-04-23 07:25:21 -07:00
Yannig Perre
72f17f3ff3
New get_all_subclasses function in basic modules and use it in fact modules.
2016-04-23 07:24:26 -07:00
Yannig Perre
eb18767f91
Visit all network class not just direct sub classes.
...
Fix for https://github.com/ansible/ansible/issues/15446
2016-04-23 07:24:26 -07:00
Toshio Kuratomi
09605ce806
Fix facts for the FieldAttribute list change in 30a38f9
2016-04-22 16:31:53 -07:00
Peter Sprygada
edbdf0d955
add new action plugin junos_config
...
This adds a new action plugin for junos for working with the junos configuration
file on the remote device
2016-04-22 15:48:51 -04:00
Peter Sprygada
32329b493d
adds support for netconf to junos shared module
...
Netconf support is provided using the junos-eznc library and the shared
module depends on junos-eznc to be installed on the local Ansible host. This
commit also adds changes to the netcfg library to handle receiving messages
over netconf.
To use netconf, specify transport=netconf for junos module. Be sure that
netconf has been enabled on the remote device.
2016-04-22 15:28:53 -04:00
James Cammarata
30a38f94ce
Create a special class of list FieldAttribute for splitting on commas
...
Which we're use on a case-by-case basis if we find people were actually
using comma-separated strings for list values outside of hosts. Support
for doing so is now deprecated and users should instead use the full
YAML syntax for lists of values.
Fixes #15291
2016-04-22 14:21:14 -04:00
Toshio Kuratomi
fcd6d7010d
Fixup perms dont rely on privileged user named root ( #15482 )
...
* Don't rely on username to check for root privileges
The SSH username isn't a reliable way to check if we've got root privileges on
the remote system (think "toor" on FreeBSD). Because of this check, Ansible
previously tried to use the fallback solutions for granting file access (ACLs,
world-readable files) even on systems where it had root privileges when the
remote username didn't match the literal string "root".
Instead of running checks on the username, just try using `chmod` in any case
and fall back to the previous "non-root" solution when that fails.
* Fail if we are root and changing ownership failed
Since this code is security sensitive we document exactly the expected
permissions of the temporary files once this function has run. That way
if a flaw is found in one end-result we know more precisely what scenarios
are affected and which are not.
2016-04-22 08:40:34 -07:00
jctanner
76f73dc81f
Change the raw module's detection of environment settings. ( #15535 )
...
The task_vars datastructure always contains an environment key,
so use the _task.environment property to look for a non-empty
list instead.
2016-04-21 22:58:07 -04:00
chouseknecht
a79e9182e1
Set the name of the user_agent in each mangement client.
2016-04-21 17:51:28 -04:00
Kei Nohguchi
9d5b4fe212
openswitch.py: Use new ops.dc declarative Config(DC) module ( #15489 )
...
Instead of using the old OpenSwitch runconfig, we'll use
Mir's new ops.dc declarative config for the DC interaction
with OpenSwitch. This gives us the clearer separation between
ansible and the OpenSwitch, as well as the performance
improvement done inside the ops.dc module itself.
Squashed the original Mir's change into single commit.
Tested-by: Kei Nohguchi <kei@nohguchi.com>
2016-04-21 17:23:43 -04:00
Brian Coca
a76531ca3a
submodule ref update
2016-04-21 16:30:27 -04:00
chouseknecht
af5e4abf66
Rename azure inventory script. Fix bug preventing AD user login via environment vars.
2016-04-21 14:34:08 -04:00
James Cammarata
772d659929
Updating CHANGELOG and extras submodule pointer for new kubernetes module
2016-04-21 13:23:32 -04:00
Toshio Kuratomi
bac47f6281
Update submodule refs
2016-04-21 07:42:08 -07:00
Chris Houseknecht
ba74f5f3e5
Adding docker doc frag ( #15494 )
2016-04-20 13:56:19 -04:00
Brian Coca
a5d79a39d5
Ensure action plugins remove tmp dirs created ( #15501 )
...
fixes #14917
2016-04-20 13:39:12 -04:00
Matt Davis
67e6bd18e4
Merge pull request #15488 from jctanner/AMC-32
...
WARN if the play or the task attempts to pass environment to the raw module
2016-04-20 10:03:17 -07:00
Toshio Kuratomi
6520312a65
Update submodule refs
2016-04-20 09:17:19 -07:00
Brian Coca
b1c3d2aacb
removed unused section regex, corrected group one
2016-04-20 11:52:50 -04:00
Toshio Kuratomi
5fc90058e4
Make ziploader handle python packages as well as python modules
2016-04-19 20:10:51 -07:00
James Tanner
095ec760ac
Provide a warning if the play or the task attempts to pass environment to the raw module.
...
Addresses ansible-modules-core/issues/32
2016-04-19 22:41:46 -04:00
James Cammarata
f32592f092
Merge pull request #14400 from d3matt/FIX/paramiko_lecture
...
paramiko transport appears to hang if it gets a sudo lecture
2016-04-19 13:31:17 -04:00
Toshio Kuratomi
ee18af48ef
Merge pull request #15385 from bjne/mysql_unix_socket
...
mysql_*: enable mysql connection via unix socket
2016-04-19 10:09:12 -07:00
James Cammarata
a0dea1ac35
Fix var precedence bug introduced in ff9f5d7d
...
Fixes #14067
2016-04-19 12:40:31 -04:00
Toshio Kuratomi
7b5d2d3bec
Make sure that args are interpreted as utf8 on python3
2016-04-19 09:37:17 -07:00
Toshio Kuratomi
e386a51cf8
Trnasform file name to bytes before opening it to avoid unicode errors if python tries to encode it implicitly
2016-04-19 08:33:01 -07:00
Toshio Kuratomi
0a31c24938
Merge pull request #15419 from nitzmahone/module_debug_arg_override
...
add _load_params debug overrides for module args/file passed on cmdline
2016-04-19 07:49:05 -07:00
Toshio Kuratomi
596f6e0894
Update core submodule ref again for another git fix
2016-04-19 07:44:26 -07:00
Toshio Kuratomi
0e63f09d5a
Fix for apt module test failures
2016-04-19 07:36:46 -07:00
Brian Coca
33761efd19
Merge pull request #15417 from bcoca/copy_vaulted
...
Copy vaulted
2016-04-19 10:22:30 -04:00
Toshio Kuratomi
c8cb5e1042
Update submodule refs
2016-04-19 07:01:50 -07:00