HelenaTian
f620a0ac41
Update gce.py to correctly handle propagated metadata type from a mother template
...
My project is using Ansible to automate cloud build process. Ansible has a core module gce.py for managing GCE instances.
We've come across a use case that's not yet supported - when executing ansible-playbook, if a child template is included, then metadata which is defined in and propagated from the mother template is treated as string type and not parsed correctly(which instead is dictionary type), and triggers release flow failure.
We currently put some fix by explicitly casting metadata to string type in our own branch, but would like to contribute the fix to Ansible so that everyone onboarding GCE and using Ansible for release management could benefit from it, or hear owner's opinion on fixing the issue if there's a better fix in owner's mind:)
2015-05-12 20:53:36 -07:00
Toshio Kuratomi
ed6b95a0bb
Merge pull request #45 from Jmainguy/mysql_db_alldatabases
...
Adds name=all which allows a user to dump or import all data...
2015-05-12 13:42:12 -07:00
Jonathan Mainguy
f0af9b9ed5
Adds all_databases option which allows a user to dump or import all databases at once, identical to mysqldump --all-databases
...
fix line 132
Update to name=all
cleaned up all_database per abadger's suggestions
2015-05-12 16:35:38 -04:00
Toshio Kuratomi
030c0e95d6
Merge pull request #1310 from h1ppo/patch-1
...
update flat description
2015-05-12 10:45:05 -07:00
Matt Martz
760b39fb60
Merge pull request #1311 from sivel/py27-compileall
...
Add py27 compileall to test all modules
2015-05-12 10:55:17 -05:00
Matt Martz
06171c4590
Add py27 compileall to test all modules, specifically for syntax errors
2015-05-12 10:43:36 -05:00
James Cammarata
576ca33bdc
Fixing digital_ocean documentation and a bug in os_subnet
2015-05-12 10:32:43 -05:00
Brian Coca
52626b4da9
Merge pull request #1309 from aioue/patch-1
...
Update uri.py
2015-05-12 08:37:58 -04:00
Jason Paige
72e5e3a17a
update flat description
...
default behavior is to append the `hostname/path/to/file`, not prepend as currently stated by the flat arg docs
2015-05-12 12:56:37 +01:00
Tom Paine
97b64abf75
Update uri.py
...
Move choices from description to choices field.
2015-05-12 12:29:00 +01:00
Benno Joy
88509fdb27
Merge pull request #729 from PugglePay/ec2_vol_find_or_create
...
[ec2_vol] Find or Create volume by name
2015-05-12 12:32:10 +05:30
Jell
6b27cdc08e
[ec2_vol] Find or Create volume by name
2015-05-12 07:06:37 +02:00
Brian Coca
20abd5cf68
Merge pull request #1305 from bcoca/unarchive_max_tb_fix
...
generic fix for Exceptions that happen when trying to set permissions
2015-05-11 22:46:10 -04:00
Toshio Kuratomi
1f99382dfb
Finish up cleanups to modules:
...
* Add python>= 2.6 to documented requirements when a module's deps need
python>= 2.6 so we know when a module can use python2.6+ syntax
* Remove BabyJSON usage
* Change modules to use if __name__ == '__main__' so that they can
potentially be unittested
The BabJSON changes Fixes #1211
2015-05-11 13:21:17 -07:00
Toshio Kuratomi
60a66a544d
Several cleanups to many modules:
...
* Fix docs to specify when python2.6+ is required (due to a library
dep). This helps us know when it is okay to use python2.6+ syntax in
the file.
* remove BabyJson returns. See #1211 This commit fixes all but the
openstack modules.
* Use if __name__ == '__main__' to only run the main part of the module
if the module is run as a program. This allows for the potential to
unittest the code later.
2015-05-11 12:15:53 -07:00
Toshio Kuratomi
c8d099a50c
Run python2.4 compat tests on a pair of amazon modules that do not use boto
2015-05-11 12:15:11 -07:00
Brian Coca
9a2e64b76d
generic fix for Exceptions that heppen when trying to set permissions on extracted files
...
fixes ansible/ansible#10934 which is really a corner case
2015-05-11 13:18:05 -04:00
Toshio Kuratomi
36891d8273
Merge pull request #1296 from sivel/py24-fixes
...
Fix up modules that have python24 syntax error
2015-05-11 09:06:51 -07:00
Matt Martz
7ca732830f
Python2.4 fixes
...
* Ignore accelerate.py
* Don't use a lambda or a ternary
2015-05-11 11:04:44 -05:00
Brian Coca
00ee4f8da9
Merge pull request #1299 from nathanielks/patch-1
...
Update set_fact.py
2015-05-11 12:02:45 -04:00
Nathaniel
5aae7f3e51
Update set_fact.py
...
Context: I recently discovered that when setting a fact, key=value pairs and complex arguments differ in how the fact is stored. For example, when attempting to use complex arguments using key=values, the result can be stored as a unicode string as opposed to an object/list/etc.
I'm hoping the above example update will better demonstrate to and instruct people to use complex arguments instead of key=value pairs in certain situations.
2015-05-09 15:51:17 -05:00
Toshio Kuratomi
aab13daa6a
Merge pull request #1293 from sivel/python24-compat-test
...
Add test validating if modules are python24 compatible
2015-05-08 13:03:58 -07:00
Brian Coca
18ccced5fe
Merge pull request #1274 from bennojoy/issue-122
...
fixes issue 122, where the module recreates the route table in each run
2015-05-08 15:50:37 -04:00
Brian Coca
bc22ee9069
Merge pull request #1015 from jml/ec2-eip
...
Make ec2_eip idempotent
2015-05-08 15:24:20 -04:00
Matt Martz
e12ca16399
Add compileall testing via travis to validate modules are python24 compatible
2015-05-08 13:42:06 -05:00
Toshio Kuratomi
8b4e201772
Expand tildes and vars in the config file path
2015-05-08 10:41:01 -07:00
Brian Coca
296691d34d
Merge pull request #1281 from ChrisLundquist/patch-1
...
[ec2_ami_find] fix ami_search doc copy pasta
2015-05-08 09:09:08 -04:00
Brian Coca
8ec2673431
Merge pull request #1282 from macbeth76/patch-1
...
Update user.py
2015-05-07 16:57:50 -04:00
macbeth76
bb2fc14865
Update user.py
...
M in date format is minutes. m is for months.
2015-05-07 16:55:28 -04:00
Chris Lundquist
4670e1285b
[ec2_ami_find] fix ami_search doc copy pasta
2015-05-07 11:51:11 -07:00
Toshio Kuratomi
7540cbb845
Explain why the apt module does not do implicit regex matches on package name since this is different than the apt-get command line tool.
...
Fixes #1258
2015-05-07 08:16:46 -07:00
Brian Coca
2729899390
Merge pull request #1278 from jmdh/apt_key_docs
...
apt_key documentation: add a note explaining the benefit of including 'id'
2015-05-07 10:53:17 -04:00
Dominic Hargreaves
d197f898a5
apt_key documentation: add a note explaining the benefit of including 'id'
2015-05-07 15:49:50 +01:00
Benno Joy
e2deee66d3
fixes issue 122, where the module recreates the route table in each run
2015-05-07 16:04:01 +05:30
Brian Coca
6a8df98710
Merge pull request #1265 from gimoh/docker-fix-get-deployed-no-name
...
Fix ``get_deployed_containers`` when no name specified
2015-05-06 10:11:18 -04:00
Toshio Kuratomi
a6c0cf0369
Merge pull request #1264 from rtnpro/fix_typo_in_docker_module
...
Fixed typo in cloud docker module.
2015-05-06 05:57:03 -07:00
gimoh
79510a826c
Fix `get_deployed_containers
` when no name specified
...
Previous fix missed one remaining instance of ``i``.
2015-05-06 13:20:36 +01:00
Ratnadeep Debnath
be66acb436
Fixed typo in cloud docker module.
2015-05-06 15:23:40 +05:30
Brian Coca
ec5cd89d7c
Revert "Add deprecated documentation for _quantum_subnet"
...
cause it was already added
This reverts commit 3fa32c4984
.
2015-05-05 17:14:04 -04:00
Toshio Kuratomi
1fa3efd7b4
Fix documentation
2015-05-05 13:58:41 -07:00
Toshio Kuratomi
73737b294e
Fix documentation formatting
2015-05-05 13:46:46 -07:00
Toshio Kuratomi
bb933e27e6
Merge pull request #304 from Jmainguy/yum_except_feature
...
Adds the exclude= option to the yum module. Works the same way --exclude...
2015-05-05 11:07:25 -07:00
Jonathan Mainguy
3e66e409d5
Adds the exclude= option to the yum module. Works the same way --exclude does when yum install or yum update
2015-05-05 14:00:49 -04:00
Toshio Kuratomi
3fa32c4984
Add deprecated documentation for _quantum_subnet
2015-05-05 10:50:24 -07:00
Brian Coca
a9781b3712
Merge pull request #1250 from afeinberg/patch-1
...
Fix a typo in create_instances
2015-05-05 10:40:07 -04:00
Brian Coca
f99bc6a17f
Merge pull request #1254 from samdoiron/devel
...
Fix Issue #1216 (ValueError with Amazon RDS)
2015-05-05 10:11:51 -04:00
Sam Doiron
de76c797ab
Fix Issue #1216 (ValueError with Amazon RDS)
...
Fix typo where wrong variable was used, causing ValueError.
2015-05-05 10:53:17 -03:00
Brian Coca
35703caf6f
Merge pull request #1101 from willthames/postgresql_reduce_alter_role
...
Update postgresql users only when necessary
2015-05-05 08:49:45 -04:00
Brian Coca
9d25d88b9a
Merge pull request #1187 from chrismeyersfsu/feature-azure_delete_disks
...
correctly delete disks associated with vms
2015-05-05 08:47:03 -04:00
Herby Gillot
6ce3ef36e3
Use existing ec2_eip address if already associated
...
If an EC2 instance is already associated with an EIP address, we use
that, rather than allocating a new EIP address and associating it with
that.
Fixes #35 .
2015-05-05 11:37:47 +01:00