René Moser
0f5f5fffee
cloudstack: handle unicode API results in has_changed ( #16601 )
...
* cloudstack: handle unicode API results in has_changed
* cloudstack: add more case sensitve keys
2016-07-06 20:27:31 +02:00
Peter Sprygada
58eab8ee9f
Merge pull request #16573 from privateip/network
...
captures the responses from running commands and adds response to object
2016-07-06 14:19:13 -04:00
James Cammarata
690bc192d5
Use get_handler_blocks() to get list of role handlers
2016-07-06 12:29:29 -05:00
Toshio Kuratomi
3f4027f7b4
Add the PID of the Ansible process to local_tmp directory. ( #16589 )
...
This aids in associating a leftover cachedir with a previous run of
Ansible. Came about because of #16489
2016-07-06 10:02:20 -07:00
Will Thames
0e16a5f3ee
Retain local tar.gz roles during galaxy install ( #16592 )
...
Don't treat local tar.gz files as temporary when cleaning
up at the end of an ansible-galaxy install
2016-07-06 12:28:54 -04:00
nitzmahone
1c2bc49025
update docs for unsupported Windows features
2016-07-06 08:18:20 -07:00
Ryan S. Brown
59e499f8f0
Respect profiles & credentials for boto3 inventory
...
Using boto3 directly wasn't properly using profiles set in the `ec2.ini`
file, this change uses the `module_utils` boto3_conn instead.
2016-07-06 10:57:31 -04:00
Tom Paine
418f91d0e2
Fail softly when boto3 is not installed
...
Updated as per @ryansb comments. The EC2 inventory script will now fail
with a useful message when boto3 is not installed and the user is trying
to read RDS cluster information.
2016-07-06 10:57:31 -04:00
Tom Paine
bb5a1f7440
Add RDS cluster info to EC2 dynamic inventory
...
Add db_clusters to the ec2 inventory. Show tags. Only show clusters
matching tags in the `.ini`. Set `include_rds_clusters = True` option to
enable RDS cluster inventory collection.
Example inventory output:
```
{
"db_clusters": {
"ryansb-cluster-test": {
"AllocatedStorage": 1,
"AvailabilityZones": [
"us-west-2a",
"us-west-2b",
"us-west-2c"
],
"BackupRetentionPeriod": 1,
"DBClusterIdentifier": "ryansb-cluster-test",
"DBClusterMembers": [
{
"DBClusterParameterGroupStatus": "in-sync",
"DBInstanceIdentifier": "ryansb-test",
"IsClusterWriter": true,
"PromotionTier": 1
},
{
"DBClusterParameterGroupStatus": "in-sync",
"DBInstanceIdentifier": "ryansb-test-us-west-2b",
"IsClusterWriter": false,
"PromotionTier": 1
}
],
"DBClusterParameterGroup": "default.aurora5.6",
"DBSubnetGroup": "default",
"DatabaseName": "mydb",
"DbClusterResourceId": "cluster-OB6H7JQURFKFD4BYNHG5HSRLBA",
"Endpoint": "ryansb-cluster-test.cluster-c9ntgaejgqln.us-west-2.rds.amazonaws.com",
"Engine": "aurora",
"EngineVersion": "5.6.10a",
"MasterUsername": "admin",
"Port": 3306,
"PreferredBackupWindow": "06:09-06:39",
"PreferredMaintenanceWindow": "mon:11:22-mon:11:52",
"ReadReplicaIdentifiers": [],
"Status": "available",
"StorageEncrypted": false,
"VpcSecurityGroups": [
{
"Status": "active",
"VpcSecurityGroupId": "sg-47eaea20"
}
]
}
},
"rds": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"rds_aurora": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"rds_parameter_group_default_aurora5_6": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"ryansb-test": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"ryansb-test-us-west-2b": [
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"type_db_r3_large": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"us-west-2": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"us-west-2a": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"us-west-2b": [
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
],
"vpc_id_vpc_3ca34459": [
"ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
"ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
]
}
```
2016-07-06 10:57:31 -04:00
Ryan S. Brown
ddf2a73640
Make it possible to use boto3_conn outside modules
...
The `boto3_conn` function requires a module argument, and calls
`module.fail_json` if the connection doesn't receive enough arguments.
In non-module settings like inventory scripts, there is no module to be
passed.
The `boto3_inventory_conn` function takes the same arguments except for
`module`, and both call _boto3_conn which doesn't require a module be
passed.
2016-07-06 10:57:31 -04:00
Peter Sprygada
7d53fd2ef2
Merge pull request #16587 from privateip/netcfg
...
minor bug fixes found in netcfg
2016-07-05 21:16:15 -04:00
Peter Sprygada
c9dccd3566
Merge pull request #16588 from privateip/vyos
...
bug fixes in vyos shared module
2016-07-05 21:15:57 -04:00
Peter Sprygada
f30a836063
bug fixes in vyos shared module
...
* fixes lots of bugs with get_config function to perform correctly
* refactors load_config into load_candidate
* adds load_config function to convert commands to NetworkConfig
2016-07-05 20:27:11 -04:00
Peter Sprygada
3002965af0
minor bug fixes found in netcfg
...
* fixes issue with converting config to lines
* fixes issue with returning text config with single line
2016-07-05 20:25:53 -04:00
nitzmahone
c5e0d3d17b
prevent spurious pywinrm arg warnings for non-pywinrm connection args
2016-07-05 16:04:59 -07:00
nitzmahone
908ca727d6
bump core submodule ref
2016-07-05 15:50:26 -07:00
James Cammarata
a178ffa674
Merge pull request #15890 from brandond/inv_refresh_hostvars-fixes_15115
...
Ignore limits and restrictions when parsing inventory.
2016-07-05 15:59:05 -05:00
Brian Coca
ec61fba553
updated subref to fix pip issue
2016-07-05 16:49:43 -04:00
Brian Coca
65f87486fc
updated module subrefs
2016-07-05 15:36:26 -04:00
Robin Roth
d0ccedc617
Fix git shallow update ( #16224 )
...
* add git shallow fetch test
covers https://github.com/ansible/ansible-modules-core/issues/3782
updating a repo with depth=1 fails silently if version==HEAD
* raise git version support supporting depth to 1.9.1
2016-07-05 15:07:42 -04:00
James Tanner
d51917f306
Update submodule refs
2016-07-05 15:00:11 -04:00
James Cammarata
06379bb288
Prevent loop_control from being inherited via parent includes
...
Fixes #16542
2016-07-05 12:02:38 -05:00
James Cammarata
584ffe0c64
Merge branch 'axelspringer-iterator-returncode' into devel
2016-07-05 10:08:15 -05:00
James Cammarata
ea6efdbf2c
Merge branch 'iterator-returncode' of https://github.com/axelspringer/ansible into axelspringer-iterator-returncode
2016-07-05 10:05:20 -05:00
Martin Matuska
8bff6154a6
Determine failed hosts with _check_failed_state() ( #16566 )
2016-07-05 12:26:41 +02:00
Peter Sprygada
c5d4151234
Merge pull request #16576 from privateip/vyos_docs
...
initial add of vyos shared documentation fragments
2016-07-05 06:18:49 -04:00
Peter Sprygada
54199f1cfb
initial add of vyos shared documentation fragments
2016-07-04 22:58:00 -04:00
Peter Sprygada
0430923647
Merge pull request #16423 from privateip/netcfg
...
bug fix in netcfg replace method to handle whitespace argument
2016-07-04 22:54:16 -04:00
Peter Sprygada
65713c2418
Merge pull request #16574 from privateip/vyos
...
add get_config function to vyos shared module
2016-07-04 22:53:26 -04:00
Peter Sprygada
d9546d6367
Merge pull request #16572 from privateip/netcmd
...
adds new method to return specific response from command to netcmd
2016-07-04 22:34:50 -04:00
Peter Sprygada
2866c7a9fb
updates netcfg to remove dependency on collections module
...
This fixes the netcfg shared lib to be compatable with python versions
prior to 2.7.
2016-07-04 22:25:39 -04:00
Peter Sprygada
6b8c24e0f8
bug fix in netcfg replace method to handle whitespace argument
2016-07-04 22:24:02 -04:00
Peter Sprygada
75b8cf6ab3
captures the responses from running commands and adds response to object
...
The Command object can now store the response from executing the command
to allow it to be retrieved later by command name. This update will
update the Command instance with the response before returning.
2016-07-04 22:21:15 -04:00
Peter Sprygada
527e4196b2
adds new method to return specific response from command to netcmd
...
This adds a new method that will return the output from a specified
command that has already been excuted by the CommandRunner. The new
method, get_command takes a single argument which is the full name
of the command to retrieve.
2016-07-04 22:20:51 -04:00
Peter Sprygada
062db03f99
add get_config function to vyos shared module
...
This adds a new shard function get_config to retrieve the device
configuration either from module arguments or remotely from the
device.
2016-07-04 22:10:39 -04:00
Chris Houseknecht
54db1df244
Merge pull request #16559 from chouseknecht/azure-rc5
...
Fix authentication via params and env variables.
2016-07-04 15:03:13 -04:00
James Cammarata
83e4a4048b
Fix the way pull localhosts out of inventory for delegate_to
...
This patch corrects the way we look in the inventory hosts list for
implicit localhost entries when localhost aliases are used.
Fixes #16568
2016-07-04 11:25:53 -05:00
Robin Roth
1f04130c00
add more distribution version tests ( #16563 )
...
* ubuntu 16.04
* solaris 10, 11
* fedora 22, 25
Thanks Peter Oliver for providing the test data
2016-07-04 15:57:57 +02:00
René Moser
b410e710a0
Merge pull request #16562 from robinro/enable-apt-repo-tests-1604
...
reenable apt_repository tests in ubuntu 16.04
2016-07-04 15:51:47 +02:00
Robin Roth
8021adfe97
use git-core ppa instead of menulibre
...
menulibre is no longer actively maintained and does not support 16.04
2016-07-03 15:18:08 +02:00
Robin Roth
a5e394d23a
reenable apt_repository tests in ubuntu 16.04
...
fixes #15718
2016-07-03 14:43:04 +02:00
Chris Houseknecht
c71a939b08
Fix authentication via params and env vars. Update guide to RC5.
2016-07-02 21:36:34 -04:00
Chris Houseknecht
9e93f1c907
Merge pull request #16558 from chouseknecht/azure-rc5
...
Update and pin to azure-2.0.0rc5
2016-07-02 18:35:36 -04:00
chouseknecht
a076612b63
Update and pin to azure-2.0.0rc5
2016-07-02 18:16:43 -04:00
matsu-chara
9f8b0cabcd
fix default/main.yml to defaults/main.yml
2016-07-02 21:16:33 +09:00
Eric Chou
b6c30e7985
Added axapi_authenticate_v3 and axapi_call_v3 for new AXAPIv3 that is not backward compatible
2016-07-01 17:59:49 -07:00
Matt Clay
4e369a31db
Fix test_async. ( #16552 )
...
* Conditionally run test_async in docker containers.
* Revise test_async test.
2016-07-01 17:59:06 -07:00
Matt Clay
292785ff2b
Parse async response in async action. ( #16534 )
...
* Parse async response in async action.
* Add async test for non-JSON data before module output.
* Fix existing async unit test.
Resolves #16156
2016-07-01 14:52:45 -07:00
Eric Chou
147857d7ac
Added axapi_authenticate_v3 and axapi_call_v3 for new AXAPIv3 that is not backward compatible
2016-07-01 13:49:28 -07:00
jctanner
f86c527736
If the known_hosts file does not exist, do not attempt to stat it. ( #16548 )
...
paramiko: If the known_hosts file does not exist, do not attempt to stat it.
Fixes #10057
2016-07-01 16:39:02 -04:00