Commit graph

3847 commits

Author SHA1 Message Date
Toshio Kuratomi
aeb194d4ff Vendorize match_hostname code so that ansible can push it out to clients along with the code that uses it. 2015-06-25 08:20:15 -07:00
James Cammarata
705ab6c1e2 Version bump for 1.9.2-1 release 2015-06-24 13:35:44 -04:00
Toshio Kuratomi
30ff9270ac Use BUFSIZE when putting file as well as fetching file. 2015-06-24 08:54:06 -07:00
Toshio Kuratomi
784fb8ff8e Fix exec_command to not use a shell 2015-06-24 08:54:00 -07:00
Toshio Kuratomi
480ad7413a Fix fetch_file() method 2015-06-24 08:53:54 -07:00
Toshio Kuratomi
8564dbaf95 Fix problem with chroot connection plugin and symlinks from within the chroot.
Manually apply changes from 952166f48e
because git won't cherry-pick successfully
2015-06-24 08:52:46 -07:00
Toshio Kuratomi
0845151c9c Better error messages when the file to be transferred does not exist. 2015-06-24 08:51:55 -07:00
Toshio Kuratomi
0056f025c3 Bumpt the BUFSIZE to 64k for better performance 2015-06-24 08:51:45 -07:00
Toshio Kuratomi
f0302f2e2d Fix problem with jail and zone connection plugins and symlinks from within the jail/zone. 2015-06-24 08:51:38 -07:00
Toshio Kuratomi
a431098fc5 Fix for symlink problem in jail and zone
Manually pull in changes from ca2f2c4ebd
as git won't cherry-pick those files successfully.
2015-06-24 08:49:19 -07:00
Toshio Kuratomi
24fd4719cc Fix forwarding the user-given params from fetch_url() to open_url() 2015-06-23 15:21:14 -07:00
Toshio Kuratomi
9bf06bfe84 Update the submodule refs for stable-1.9 2015-06-19 09:17:42 -07:00
Kirk Strauser
65fc0161a8 Don't panic if AIX's uname doesn't support -W
The current code expects "uname -W" on AIX to always succeed. The AIX 5
instance I have doesn't support the -W flag and facts gathering always
crashes on it.

This skips some WPAR handling code if "uname -W" doesn't work.
2015-06-16 19:10:28 -04:00
Toshio Kuratomi
73c7e98260 Backport security fixes to etcd and url lookup plugins 2015-06-15 16:13:05 -07:00
Toshio Kuratomi
08c1ddd24e Split the fetch_url() function into fetch_url and open_url().
open_url() is suitable for use outside of a module environment.  Will
let us use open_url to do SSL cert verification in other, non-module
code.
2015-06-15 12:30:15 -07:00
Toshio Kuratomi
4a5a8ed963 Add dnf to the list of module that we squash loop items for 2015-06-11 08:58:12 -07:00
Jon Hawkesworth
0868679f13 Get-FileChecksum allways returns a string now,
and the test_win_copy integration tests that depend on the checksum
have been updated in this change too.
2015-06-10 20:48:15 -04:00
Brian Coca
74afd24387 added test for notify in case it is defined as an empty keyword 2015-06-10 18:52:50 -04:00
Brian Coca
b70caac618 updated submodule refs 2015-06-03 14:38:51 -04:00
Brian Coca
7661f86c05 backported fix of missing import 2015-06-03 14:36:30 -04:00
Brian Coca
35ca1dd073 Merge pull request #11110 from myniva/t/11109-fix-keyerror
Fix KeyError which occurs when not-existing entry is tried to be removed.
2015-06-01 11:34:20 -04:00
Basil Brunner
2945a462f6 Fix KeyError which occurs when not-existing entry is tried to be removed. Fixes #11109 2015-06-01 11:02:54 +02:00
Toshio Kuratomi
2c9337157b Update stable submodule refs 2015-05-29 18:58:41 -07:00
Toshio Kuratomi
867a119425 Update core module ref to pull in yum fix 2015-05-29 13:47:54 -07:00
Toshio Kuratomi
8a4a342996 Oops, accidentally updated the submodule refs to devel instead of the
stable-1.9 branch
2015-05-29 13:27:17 -07:00
Monty Taylor
870afac287 Add defaults and a link to os-client-config docs
Conflicts:
	lib/ansible/utils/module_docs_fragments/openstack.py
2015-05-29 13:22:13 -07:00
Monty Taylor
7a76d4e03b Remove unneeded required_one_of for openstack
We're being too strict - there is a third possibility, which is that a
user will have defined the OS_* environment variables and expect them to
pass through.

Conflicts:
	lib/ansible/module_utils/openstack.py
	lib/ansible/utils/module_docs_fragments/openstack.py
	v2/ansible/module_utils/openstack.py
2015-05-29 13:18:14 -07:00
Toshio Kuratomi
be7c59c7bb Make fetch_url check the server's certificate on https connections 2015-05-28 13:28:05 -07:00
Simon Dick
c0265f80fb Allow the use of HTTP on custom ports in the fetch_url function 2015-05-28 13:27:59 -07:00
Brian Coca
54fb04afc4 made sequence more flexible, can handle descending and negative sequences and is skipped if start==end 2015-05-22 12:48:29 -07:00
Brian Coca
2816b8679b fixed corner case when counting backwards, added test cases for count=0 and backwards counts 2015-05-22 12:14:17 -07:00
James Cammarata
196d9e2893 Version update for release candidate 1.9.2-0.2.rc2 2015-05-22 14:01:16 -05:00
James Cammarata
8fab8aedc0 Submodule update for stable-1.9 2015-05-22 13:30:45 -05:00
James Cammarata
982bad7886 Version bump for release candidate 1.9.2-0.1.rc1 2015-05-15 21:02:17 -05:00
Brian Coca
127a669a23 made special treatment of certain filesystem for selinux configurable 2015-05-15 18:12:06 -04:00
Brian Coca
4eff3d5dc1 now properly inherit data from ansible.cfg for sudo/su ask pass
fixes #10891
2015-05-04 16:57:46 -04:00
Toshio Kuratomi
e79535d42f Update core module ref to pull in docker module fixes for 1.9 2015-05-01 08:00:54 -07:00
James Cammarata
b47d1d7e69 Version bump for release 1.9.1-1 2015-04-27 16:16:27 -05:00
James Cammarata
99af3a8dc1 version update for release candidate 1.9.1-0.4.rc4 2015-04-23 10:31:57 -05:00
Peter Oliver
3a5a6685a0 Consistently use "OracleLinux" in OS detection.
Previously, a mixture of "OracleLinux" and "Oracle Linux" was used,
causing the `ansible_os_family` fact not to be set to `RedHat`.

Fixes #10742.
2015-04-20 18:54:37 -04:00
James Cammarata
9a07855151 Version bump for release candidate 1.9.1-0.3.rc3 2015-04-17 14:47:21 -05:00
James Cammarata
763f44a52b Fix tag handling on meta:flush_handlers tasks
Fixes #10758
2015-04-17 13:01:39 -05:00
Brian Coca
8f4c97fdbe adjusted for the posibolity of lsblk not existing for fact gathering 2015-04-17 11:16:09 -04:00
Chris Church
a7a218349a Add -ExecutionPolicy Unrestricted back, was removed by #9602. 2015-04-16 08:47:45 -04:00
Chris Church
1cbc45700e Only try kerberos auth when username contains @ and pass realm to pywinrm. Alternative to #10644, fixes #10577. 2015-04-16 08:47:45 -04:00
Chris Church
baa6426c57 Remove winrm connection cache (only useful when running against one host). Also fixes #10391. 2015-04-16 08:47:45 -04:00
James Cammarata
e16e2b171c Version bump for 1.9.1-0.2.rc2 release candidate 2015-04-15 10:31:12 -05:00
Brian Coca
ea9db2a0cc bad hack to maybe fix some corner cases with pbrun custom prompts 2015-04-15 11:18:02 -04:00
Brian Coca
2e5bad3385 fixed indent when looking at delegate_to vars 2015-04-14 19:00:15 -04:00
Brian Coca
b1b78a4fd6 fixed another typo 2015-04-13 10:58:36 -04:00
Brian Coca
f8b5e0814c typo fix 2015-04-13 10:49:31 -04:00
Brian Coca
e609670fee fix for when calling bootinfo throws permmission errors (AIX)
fixes https://github.com/ansible/ansible-modules-core/issues/1108
2015-04-13 10:26:08 -04:00
Jesse Rusak
d13646dcc5 Fix --force-handlers, and allow it in plays and ansible.cfg
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
2015-04-13 10:20:11 -04:00
Toshio Kuratomi
efa93d4239 Reverse the error messages from jsonfile get and set 2015-04-09 10:41:29 -07:00
Kimmo Koskinen
9bd2e3b752 Use codecs module while reading & writing json cache file 2015-04-09 10:41:23 -07:00
Jason DeTiberus
626b2fc7ef Fix indentation 2015-04-07 23:00:54 -04:00
James Cammarata
b186f7b85e Version bump for 1.9.1-0.1.rc1 2015-04-06 13:38:33 -05:00
Brian Coca
b855456844 updated submodule refs 2015-04-02 16:00:22 -04:00
Brian Coca
277658835a capture IOErrors on backup_local (happens on non posix filesystems)
fixes #10591
2015-04-02 15:58:21 -04:00
Brian Coca
97a4483c7c removed folding sudo/su to become logic from constants as it is already present downstream in playbook/play/tasks 2015-04-02 15:57:26 -04:00
Brian Coca
b965d12f1e now ansible ignores tempate errors on passwords
they could be caused by random character combinations, fixes #10468
2015-04-02 15:53:58 -04:00
Brian Coca
84b8a80aa7 converted error on play var initialization into warning with more information 2015-04-02 15:53:16 -04:00
Brian Coca
1d4b96479f dont break everything when one of the vars in inject does not template correctly, wait till its used 2015-04-02 15:53:16 -04:00
Brian Coca
6ab57081ec readded sudo/su vars to allow role/includes to work with passed sudo/su 2015-03-29 10:17:41 -04:00
Brian Coca
c0afe27e2f updated sumbmodule refs 2015-03-26 18:02:59 -04:00
Toshio Kuratomi
a00056723f Make run_command() work when we get byte str with non-ascii characters (instead of unicode type like we were expecting)
Fix and test.

Fixes #10536
2015-03-26 07:52:05 -07:00
Toshio Kuratomi
d6afb5d80e Fix assert to work with unicode values 2015-03-26 07:52:05 -07:00
James Cammarata
29809bb83d Version bump for 1.9.0.1-1 2015-03-25 18:44:56 -05:00
Brian Coca
a0c7381a37 updated ref to extras 2015-03-25 18:05:09 -04:00
James Cammarata
d76f8deed5 Submodule updates for 1.9 2015-03-25 14:57:16 -05:00
James Cammarata
b268970564 Updating submodule pointers for 1.9 2015-03-25 14:46:54 -05:00
Brian Coca
0a334a160d updated to latest ref 2015-03-24 15:16:09 -04:00
Brian Coca
cf3313be0c makes raw module have quiet ssh so as to avoid extra output when not requried 2015-03-24 15:00:51 -04:00
James Cammarata
5d28d46b16 VERSION bump and submodule update for 1.9.0-0.2.rc2 2015-03-20 14:52:50 -05:00
Toshio Kuratomi
30af3166af Update core modules for asg tag fix 2015-03-20 11:39:12 -07:00
Eri Bastos
22b10a8f6e Patch for bug #10485 - ansible_distribution fact populates as 'RedHat' on Oracle Linux systems 2015-03-20 14:07:24 -04:00
Brian Coca
bb58cbcd91 now use combine vars to preserve existing cached host vars 2015-03-20 11:34:53 -04:00
Brian Coca
608496dbd3 removed debug play from tests 2015-03-20 11:24:35 -04:00
Brian Coca
e3e97f6e06 now correctly aplies add_host passed variables last to override existing vars. 2015-03-20 11:23:50 -04:00
Brian Coca
6dca95b309 now add_host loads hostvars 2015-03-20 10:34:51 -04:00
Toshio Kuratomi
fd47c4d687 Pull ec2_asg fixes by updating core modules 2015-03-19 22:47:14 -07:00
Toshio Kuratomi
6a803f6582 Pull another fix in from core modules 2015-03-19 12:49:42 -07:00
Brian Coca
2459eb6dbc updated module ref for core 2015-03-19 15:20:28 -04:00
Brian Coca
b34b50d8d1 updated core to latests stable 1.9 2015-03-19 14:47:47 -04:00
Brian Coca
da62887233 ignore PE methods that are not sudo for checksums until we get them working universally 2015-03-19 14:46:40 -04:00
Brian Coca
824fc036e7 removed bare variable detection as this confuses people and forced us to allow for bare expressions 2015-03-19 09:28:04 -04:00
Toshio Kuratomi
7d2915442e Update the extras module pointer 2015-03-18 20:25:06 -07:00
Toshio Kuratomi
ebc8193c48 Update core module pointer 2015-03-18 19:55:55 -07:00
Toshio Kuratomi
dbe0c4f771 Update docker module 2015-03-18 18:29:18 -07:00
Brian Coca
a4f2407328 added missing become method inventory override 2015-03-17 19:20:21 -04:00
Toshio Kuratomi
e819263820 Update core modules pointer 2015-03-17 11:02:53 -07:00
Brian Coca
2a229bdb6c fixed issue with su in plays 2015-03-16 19:39:16 -04:00
Brian Coca
7fba952a9e slight changes to allow for checksum and other commands to work correctly with quoting 2015-03-16 19:10:10 -04:00
Toshio Kuratomi
dc434dd74e Update core pointer to make use of DOCKER_TLS_VERIFY env var:
https://github.com/ansible/ansible-modules-core/issues/946
2015-03-16 11:45:27 -07:00
Toshio Kuratomi
29407752c5 Update core modules pointer 2015-03-16 11:35:51 -07:00
Brian Coca
2823c8c987 fixed raw return check for privilege escalation 2015-03-16 14:00:50 -04:00
Toshio Kuratomi
28892cca14 Update core module pointer 2015-03-13 13:54:08 -07:00
Hartmut Goebel
41c892baf4 Fix detect of docker as virtualization_type.
Not only match`/docker/`, but also `docker-` followed by a hex-id.

Example (shortened):
```
$ cat /proc/1/cgroup
8:blkio:/system.slice/docker-de73f4d207861cf8757b69213ee67bb234b897a18bea7385964b6ed2d515da94.scope
7:net_cls:/
```
2015-03-13 11:43:25 -07:00
James Cammarata
8d847efa37 Fix issue with unarchive disabling pipelining mode
Was using persist_files=True when specifying the create paramater,
which breaks pipelining. Switched to use delete_remote_tmp=False instead,
which is the proper way to preserve the remove tmp dir when running
other modules from the action plugin.
2015-03-12 10:24:38 -05:00
Toshio Kuratomi
0e2a21f1fa Update core pointer to pick up docker fix 2015-03-12 08:21:39 -07:00