Commit Graph

22325 Commits (5f27a073ba2d1bb95c8d3fcef687362c7018de0b)
 

Author SHA1 Message Date
Martin Froehlich 8bff781a0a Use get_aws_connection_info to get AWS creds.
Previously used get_ec2_creds did not consider security_token,
making MFA requests fail.
8 years ago
Brian Coca 831e1d8739 added updated cache time to apt, also started documenting return values 8 years ago
Jesse Keating 17aabee6df Add service option to avoid failure on missing service
This adds a must_exist option to the service module, which gives callers the
ability to be tolerant to services that do not exist. This allows for
opportunistic manipulation of a list of services if they happen to exist on the
host. While failed_when could be used, it's difficult to track all the
different error strings that might come from various service tools regarding a
missing service.
8 years ago
Jan Brauer af689dece3 Handle the case where a stack rollback fails. 8 years ago
Matt Schurenko ef140a084a adding stickiness support to ec2_elb_lb.py
removing policy if enabled is no

adding sanity checks

removing debuging

check if policy exists before deleting

updating version_added to 2.0

adding stickiness support to ec2_elb_lb.py (squashed commit)
8 years ago
Jell 2e007167b9 Find or Create volume by name 8 years ago
Toshio Kuratomi 5336217649 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.
8 years ago
Brian Coca 0567404c03 generic fix for Exceptions that heppen when trying to set permissions on extracted files fixes ansible/ansible#10934 which is really a corner case 8 years ago
Nathaniel 935550d20d 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.
8 years ago
Matt Martz 65508bb21a Python2.4 fixes
* Ignore accelerate.py
* Don't use a lambda or a ternary
8 years ago
macbeth76 fce97365a4 Update user.py
M in date format is minutes. m is for months.
8 years ago
Chris Lundquist 7b4107a169 fix ami_search doc copy pasta 8 years ago
Toshio Kuratomi dd02483b26 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
8 years ago
Dominic Hargreaves 535f0e9b11 apt_key documentation: add a note explaining the benefit of including 'id' 8 years ago
Benno Joy fc1ad5e1f1 fixes issue 122, where the module recreates the route table in each run 8 years ago
Ratnadeep Debnath a99d7da0c1 Fixed typo in cloud docker module. 8 years ago
Toshio Kuratomi 5844a04061 Fix documentation formatting 8 years ago
Bret Martin b2453bf9a3 ec2_vpc module: add route table resource tagging 8 years ago
Jonathan Mainguy f662a48de7 Adds the exclude= option to the yum module. Works the same way --exclude does when yum install or yum update 8 years ago
Herby Gillot 6a39dc891a 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.
8 years ago
louis 9d20a3091e added skeleton support in user module 8 years ago
(@cewood) 17b5d851f2 Support specifying cidr_ip as a list
Update/fix to Support specifying cidr_ip as a list

Unicode isn't compatible with python2, so we needed some other
solution to this problem. The simplest approach is if the ip item
isn't already a list, simply convert it to one, and we're done.
Thanks to @mspiegle for this suggestion.
8 years ago
Jonathan Mainguy 1ba2e34ae1 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
8 years ago
Sam Doiron a3ec0a1562 Fix Issue #1216 (ValueError with Amazon RDS)
Fix typo where wrong variable was used, causing ValueError.
8 years ago
Alex Feinberg 1ac9c20b6e Fix a typo in create_instances
Fix a typo in create_instances: use 'placement_group' instead of placement_group
when calling boto_siupports_param_in_spot_request().
8 years ago
Brian Coca fb527955c9 added deprecated doc entry 8 years ago
James Cammarata d7ce6b0d4b Fix bug in service where upstart services incorrectly use init scripts
Fixes #1170
8 years ago
Toshio Kuratomi c2bf2c7c54 Fix error when container has no names.
Rename loop variable from "i" to more informative "container"

Fixes #1188
8 years ago
David Shrewsbury dd6b153700 Update os_server for shade flavor API changes
Latest shade fixes the flavor API so that raw objects are not
returned.
8 years ago
Chris Meyers cec3c8c209 better timeout logic when deleting vm disks. Python 2.4 safe excepts 8 years ago
Chris Meyers cdcaa2d6a0 correctly delete disks associated with vms 8 years ago
Will Thames 9aff204f63 Usage is not a valid database or table privilege
Remove `USAGE` from the `VALID_PRIVS` dict for both database and
table because it is not a valid privilege for either (and
breaks the implementation of `has_table_privilege` and
`has_database_privilege`

See http://www.postgresql.org/docs/9.0/static/sql-grant.html
8 years ago
Will Thames 43bad27948 Update postgresql users only when necessary
For read-only databases, users should not change when no changes
are required.

Don't issue ALTER ROLE when role attribute flags, users password
or expiry time is not changing.

In certain cases (hashed passwords in the DB, but the password
argument is not hashed) passlib.hash is required to avoid
running ALTER ROLE.
8 years ago
Monty Taylor 78daf52994 Add OpenStack Server module
Also deprecated old nova_compute module
8 years ago
Ryan Hartkopf 118382ca70 synchronize: don't add ssh_args to ssh_opts when false or null 8 years ago
Brian Coca 2e9462aa21 minor doc fixes, set version added for new tags: parameter should Fix #10894 8 years ago
Toshio Kuratomi 8bc34613bc Second try at fixing #1227 -- set e default value earlier 8 years ago
Toshio Kuratomi 030858df67 Return empty list if an image has no repo_tags 8 years ago
Julia Kreger 6f7cd5c307 Set default for mysql_user config_file
The default value set by the module was a value of None for the
config_file parameter, which propogates into the connect method
call overriding the stated default in the method.

Instead, the default should be set with-in the parameter
specification so the file check is not requested to check None.
8 years ago
Toshio Kuratomi 0d468a3aa0 Get docker's default api version definition from both 1.2 location and pre-1.2 location
Fixes #1227
8 years ago
Brian Coca 018b0118dc removed deprecated docs, not true anymore 8 years ago
Toshio Kuratomi 4592b795d9 Only split on the first colon.
Fixes #1214
8 years ago
Brian Coca b5b34f6931 removed unused and undefined aws_regions 8 years ago
Evgenii Terechkov 37d6c10133 Add ALT Linux support to hostname module 8 years ago
Brian Coca 953ed0aecc avoid exception when boto is not available 8 years ago
Brian Coca 5e892b894b removed redundant region def 8 years ago
David Shrewsbury c29ae705f0 Update os_server_volume for latest shade
The shade volume API was updated to return a dict rather than the
object as returned by cinder.
8 years ago
David Shrewsbury 4ea6bded61 Update os_volume for latest shade
The shade volume API was updated to return a dict rather than the
object as returned by cinder.
8 years ago
Sven Schliesing 90d434d66d use default value for parameter config_file in connect() 8 years ago
mcameron dcb8fa0cb9 Net_id already present, remove unnecessary lookup. 8 years ago