Michael DeHaan
9858b1f2f3
Enable imports to work on a snippet based system, allowing for instance a library of common EC2 functions
...
to be reused between modules. See library/system/service and library/system/ping for initial examples. Can
work the old way to just import 'basic', or can import the new way to import multiple pieces of code from
module_utils/.
2013-10-26 11:09:30 -04:00
jctanner
43f48a2e02
Merge pull request #4167 from tima/rsync3
...
synchronization module take 3
2013-10-25 14:43:08 -07:00
James Tanner
40574c1938
Fixes #4448 reloaded services should be started if not running
2013-10-25 15:30:02 -04:00
James Cammarata
aa0577c211
Merge branch 'fix_autorized_keys' of https://github.com/mscherer/ansible into mscherer-fix_autorized_keys
2013-10-24 20:13:38 -05:00
James Cammarata
b58b287fce
Fixing up authorized_keys to accept comments with spaces
2013-10-24 20:12:56 -05:00
Michael Scherer
951a91723d
make sure that options are quoted, as people can add a shell
...
script there with a comma that would produce invalid configuration
upon being wrote again
2013-10-24 23:51:55 +02:00
Michael Scherer
7672e9fef8
sort the option_key to have a constant predictable line
2013-10-24 23:47:34 +02:00
Michael Scherer
264945a1f7
adding a single comma at the end of the options list confuse the module
...
it start to duplicate line, because this create
a empty option in the list, and so the module add a new line along the previous
one. See
>>> ' a,b, '.strip().split(',')
['a', 'b', '']
2013-10-24 23:46:49 +02:00
jctanner
f61a4c1eb3
Merge pull request #4631 from mmoya/mysql_variables-fix3
...
Fail if requested variable is not available
2013-10-24 10:37:37 -07:00
jctanner
509271f740
Merge pull request #4624 from SirScott/freebsd_service_module_uwsgi
...
Fix broken FreeBsdService class
2013-10-24 10:36:05 -07:00
James Tanner
8157d5e52a
Set version_added for ec2_eip's in_vpc parameter
2013-10-24 12:19:43 -04:00
jctanner
0b4f84d780
Merge pull request #4593 from pas256/eip-vpc
...
Add VPC support for EIP module
2013-10-24 10:22:43 -07:00
James Tanner
6f523111d3
Set bigip_pool_member version added to 1.4
2013-10-24 11:41:34 -04:00
James Tanner
b803aac6ec
Fixes #4500 change ec2 module params to type=bool
...
Revert 4833c2fdf0
2013-10-24 09:19:25 -04:00
jctanner
e34cde6bef
Merge pull request #4112 from jsdalton/add_az_support_to_ec2_elb
...
Add enable_availability_zone parameter to ec2 module.
2013-10-22 14:01:24 -07:00
jctanner
de1e3f0cbc
Merge pull request #4054 from mhite/bigip_pool_member
...
New bigip_pool_member module
2013-10-22 13:55:41 -07:00
Maykel Moya
3db7ec8356
Fail if requested variable is not available
2013-10-22 09:30:19 +02:00
Scott Sturdivant
4d24e2e29f
If the output of rcvar isn't a key=value pair, ignore it.
2013-10-21 14:20:54 -06:00
Michael DeHaan
21d4400c96
Misc pep8 fixes
2013-10-19 13:03:15 -04:00
Michael DeHaan
aa93ce2dc2
Fix deprecation warnings in the Google modules.
2013-10-19 13:03:14 -04:00
Michael DeHaan
75e0a1c6de
Merge pull request #4592 from mscherer/fix_4586
...
setup module, replace ':' by '_' in interface name, fix #4586
2013-10-19 09:07:56 -07:00
Jimmy Tang
0568abeb14
check for ubuntu distribution first
2013-10-19 14:41:00 +01:00
Michael DeHaan
232eb9f8e6
Merge pull request #4595 from mscherer/fix_4563
...
fix logic in module host to add aliases even if none exist already, fix #4563
2013-10-18 17:09:23 -07:00
Michael DeHaan
b5c34308dd
Merge pull request #4594 from mscherer/fix_4587
...
fix distribution detection in apt_repository module, so it also work on mint as it work on Debian, partially fix #4587
2013-10-18 17:08:35 -07:00
Michael Scherer
d5c290b513
fix logic in module host to add aliases even if none exist already, fix #4563
...
self._has_aliases is used to know if a alias already exist, but
the test we want is to know if we need to add a new alias, which
is stored in self.aliases
2013-10-19 01:51:42 +02:00
Michael Scherer
19bb44288e
fix distribution detection in apt_repository module, so it also work
...
on Mint as it work on Debian, fix #4587 .
PPAs are not supported however, since that's a Ubuntu specific feature
and mint is detected as a generic distribution and use a different
codename than the Ubuntu release it is based on, which mean that apt_repository
cannot add detect and add the proper url without a better heuristic.
2013-10-19 00:57:08 +02:00
Michael Scherer
fc211ac1a0
setup module, replace ':' by '_' in interface name, fix #4586
2013-10-19 00:24:07 +02:00
Peter Sankauskas
b793248df4
Now this disassociates EIPs from instances inside a VPC correctly. Time
...
for a PR.
2013-10-18 15:12:49 -07:00
James Tanner
3c4dd618e4
Fixes #4454 Make a temporary clean cnf file if unable to parse existing
2013-10-18 17:42:40 -04:00
Peter Sankauskas
0e459f65f0
First round of changes to the EIP module to get it to be able to work well inside a VPC, and to be able to delete EIPs as well
2013-10-18 14:38:58 -07:00
jctanner
92edf99c80
Merge pull request #4562 from nimbis/devel
...
Adding aws_access_key and aws_secret_key aliases to ec2_group arguments
2013-10-18 06:17:50 -07:00
Brian Schott
bdc8ea828e
added aws_access_key and aws_secret_key aliases to ec2_group arguments
2013-10-17 15:23:24 -04:00
jctanner
12eaefb7e6
Merge pull request #4539 from sayap/git-sha1
...
git: Always return the before/after revisions, even in check mode.
2013-10-17 11:36:03 -07:00
Michael DeHaan
8666f8ea24
Merge pull request #4568 from mmoya/features
...
Improve change detection in mysql_variables
2013-10-17 10:51:36 -07:00
James Tanner
4f674ec522
Fixes #4554 Enumerate user homedir if not passed as an argument
2013-10-17 13:15:32 -04:00
Maykel Moya
b90a250165
Improve change detection in mysql_variables
...
mysql_variables bindly executes a SET var = value query even when
the variable already has the requested value.
With this patch the query is executed only if the current value is
different to the requested one.
2013-10-17 19:13:58 +02:00
Michael DeHaan
8a516d1479
Various standardization to the proposed gce_storage module to bring things in line with updates to the S3 module.
...
Some typo fixes.
Further testing required.
2013-10-17 10:49:51 -04:00
Michael DeHaan
4bdf3da25a
Merge pull request #4333 from bennojoy/gcs
...
support for google cloud storage module
2013-10-17 07:35:53 -07:00
Michael DeHaan
baa13a5cc7
Merge pull request #4395 from erjohnso/devel
...
adding Google Compute Engine modules and inventory plugin
2013-10-17 07:30:55 -07:00
Maykel Moya
2592b2c3f9
Do key validation only when key is provided
...
key_id is optional, the previous code didn't handle the case of key_id
not specified
2013-10-17 12:04:04 +02:00
jctanner
7e8e186b3b
Merge pull request #4517 from adfinis-sygroup/devel
...
Remove keys regardless of the options
2013-10-16 17:40:43 -07:00
jctanner
c737f222d5
Merge pull request #4480 from joemaller/absent_path_fix
...
ignore src when file module state=absent
2013-10-16 17:29:21 -07:00
jctanner
51a1a54bfb
Merge pull request #4428 from robparrott/devel
...
Properly handle DEFAULT section with ConfigParser in ini_file modules
2013-10-16 17:18:17 -07:00
James Tanner
23cbdba65e
Fixes #4350 Create homedirectory if create=yes and directory is missing
2013-10-16 20:08:41 -04:00
Michael DeHaan
db7e4510f2
Merge pull request #4544 from mmoya/features
...
apt_key: Validate key_id and accept a leading '0x'
2013-10-16 12:32:28 -07:00
Maykel Moya
1a79d9ae58
apt_key: Validate key_id and accept a leading '0x'
2013-10-16 20:52:18 +02:00
Lorin Hochstein
1c5bdba977
s3: better check for walrus
...
Check for Walrus endpoint by looking to see if the endpoint is not AWS.
This fixes a bug where the user specifies an AWS endpoint via S3_URL,
but the code interprets it as Walrus and then fails.
2013-10-16 13:22:41 -04:00
James Tanner
807e602228
mysql_db: if connection is a socket, do not specify hostname
2013-10-16 09:59:31 -04:00
James Tanner
84a692bcf7
Fixes #4301 Use module_common functions for mysqldump and return better errors
2013-10-16 09:51:08 -04:00
Yap Sok Ann
8519d586ba
git: Don't add --branch while cloning if the version is a SHA-1 hash.
2013-10-16 20:37:07 +08:00