Commit graph

8700 commits

Author SHA1 Message Date
Ben Doherty
ae35ce5641 Make remove default to false. It's less frightening. 2016-05-26 23:58:17 -04:00
Ben Doherty
6db9cafdec Don't use <x> if <y> else <z> syntax 2016-05-26 23:49:32 -04:00
Ben Doherty
d3e041d1a2 Accept 'path' as a list argument, expose path and expanded_path,
Use correct variable in expanduser
2016-05-26 23:42:03 -04:00
Ben Doherty
cca70b7c91 Fix up for zip files and nesting logic.
* Don't include the archive in the archive if it falls within an archived path
* If remove=True and the archive would be in an archived path, fail.
* Fix single-file zip file compression
* Add more documentation about 'state' return
2016-05-26 23:09:35 -04:00
Ben Doherty
f482cb4790 Add license 2016-05-26 21:41:40 -04:00
Ben Doherty
ecd60f4839 Add compressed file source to successes when succeeds! 2016-05-26 21:38:36 -04:00
Ben Doherty
9cde150bd1 Add RETURN documentation 2016-05-26 21:38:31 -04:00
Ben Doherty
e9b85326a6 Fix write mode for ZipFiles ('wb' is invalid!) 2016-05-26 21:33:27 -04:00
Ben Doherty
431d8c9a8f Drop extra double-quote from documentation 2016-05-26 20:36:14 -04:00
Ben Doherty
cb4173957c Initial commit of extras/archive module.
This manages compressed files or archives of many compressed files. You can maintain or update .gz, .bz2 compressed files, .zip archives, or tarballs compressed with gzip or bzip2.

Possible use cases:

* Back up user home directories
* Ensure large text files are always compressed
* Archive trees for distribution
2016-05-26 19:54:30 -04:00
Elena Washington
3ca06bf1c8 iptables: option to configure Source NAT (#2292)
* Clean up trailing whitespace

* Add `--to-source` option to allow Source NAT (fix for #2291)
2016-05-26 09:51:31 -07:00
Matt Martz
1ea51b2f99 Merge pull request #2316 from sivel/mssql-py27
Exclude mssql_db.py from py24 syntax checks
2016-05-26 10:17:10 -05:00
Matt Martz
98039323e2 Exclude mssql_db.py from py24 syntax checks 2016-05-26 10:06:36 -05:00
Matt Martz
f78b7d65e1 Merge pull request #2310 from angstwad/fix-rabbitmq-user
Fix Traceback on rabbitmq_user when "node" argument is used
2016-05-26 09:56:50 -05:00
Andrew Miller
63134a85d2 Cpanm module could not use less than Python 2.6
Removed str.format() dependency to allow cpanm module to work on nodes with versions of Python less than 2.6.
2016-05-26 16:21:12 +09:00
Paul Durivage
ca61b2dd9d fix command list to extend, not append 2016-05-25 15:15:00 -05:00
Toshio Kuratomi
0e4a023a7e The pymssql library requires python 2.7 or greater so port the syntax of this file to use python3-style exception handling 2016-05-25 12:09:49 -07:00
Hans-Joachim Kliemeck
e7e3620983 allow empty user for kerberos ticket usage
fix syntax problems:
* it is possible that sql injection is done, therefore the [DBNAME] syntax is used.
* it is not possible to use default escape on cursor.execute for DBNAME, since it will insert single quotes around the name and this will cause syntax problems / single quotes within the actual DBNAME

implement autocommit setting, since some content can not be imported within transaction

fix for automatic tests

fix problems with named instances, corrected error message regarding configuration file

remove unused placeholder
2016-05-25 12:05:37 -07:00
Firat Arig
b827b7398c Working mssql db controller
Using pymssql string interpolation

Cursor does string interpolation at script execution

Handled edge cases in import and delete

updated ansible version number
2016-05-25 12:05:31 -07:00
Toshio Kuratomi
4b4557eb97 Fix exception catching for python3 2016-05-25 11:58:49 -07:00
Benjamin Curtis
76cbe30645 Add honeybadger_deployment module 2016-05-25 11:58:49 -07:00
Toshio Kuratomi
5b2bf6f08a Fix python3 syntax compilation 2016-05-25 11:48:16 -07:00
Mike Mochan
698d2a55c5 update remote tags if changed 2016-05-25 11:46:31 -07:00
Mike Mochan
cab7437e32 added tagging for the remote account 2016-05-25 11:46:31 -07:00
Mike Mochan
9a303f1628 Updates to version and requirements 2016-05-25 11:46:31 -07:00
Mike Mochan
2934495efc Added tagging functionality 2016-05-25 11:46:31 -07:00
Mike Mochan
a58a12fc1f All calls to describe_vpc_peering_connections need to use the params dict 2016-05-25 11:46:31 -07:00
Mike Mochan
8ab4963e78 Remove unused vars and pass params dict to describe_peering_connections 2016-05-25 11:46:31 -07:00
Mike Mochan
2291fc00d2 update to capture peer status 2016-05-25 11:46:31 -07:00
Mike Mochan
2392395a47 removed obsolete ec2 resource object 2016-05-25 11:46:31 -07:00
Mike Mochan
10ce4d8b88 refactored to use dict invocation for calling client peerings functions 2016-05-25 11:46:31 -07:00
Mike Mochan
f6c7bdf9c5 updates to Documentation - Removed refs to Boto, added params dict() and removed obsolete if statements 2016-05-25 11:46:31 -07:00
Mike Mochan
34ae687ae3 cloud/amazon/ec2_vpc_peer.py 2016-05-25 11:46:31 -07:00
Mike Mochan
f84af48733 removed debug package 2016-05-25 11:46:31 -07:00
Mike Mochan
92dea03181 Version added, GPLv3 License header added 2016-05-25 11:46:31 -07:00
Mike Mochan
400484f69f Initial commit for cross account VPC peering module 2016-05-25 11:46:30 -07:00
dougluce
b6b04795c3 Don't bomb if original didn't exist (#2295)
If we don't have an existing file, original ends up as None.  Bug
introduced in 70fa125
2016-05-25 07:54:07 +02:00
Adrian Likins
d1a4f703ce Fix pkgutil "upgrade_catalog must be one of" err (#2149)
The arg spec for update_catalog include 'type=bool'
and 'choices=["yes", "no"] which can never both be
true.

Remove the 'choices' directive, and update doc string.

Fixes #2144
2016-05-24 11:55:14 -04:00
René Moser
a055d7240a fix build and doc cleanups (#2286) 2016-05-24 13:24:04 +02:00
jhawkesworth
e35d5f2c54 Add info about where you can find product ids for changed checking on win_package module (#2281) 2016-05-23 16:14:49 -04:00
Toshio Kuratomi
342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 2016-05-23 13:06:14 -07:00
Fernando José Pando
0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
2016-05-23 11:39:20 -04:00
Dag Wieers
4afae893e1 Convert module to work with python 2.4 and fix a bug (#2251)
- Avoiding the use of 'with ... as ...' and 'except ... as ...' constructs.

- Make use of posixpath.join() rather than concatenating slashes ourselves
  (To avoid having consecutive slashes which broke something on our side)
2016-05-23 11:18:05 -04:00
Mike Mochan
6d52d84af7 New AWS module for managing VPC Network ACLs (#1502)
* New AWS module for managing VPC Networks ACLs

Moved return  outside of try block

botocore.exceptions to support python 2.5

For some reason Travis is using Python V2.4 to run the tests - My code is valid

duplicate file

* Fixed NameError Exception- module not being passed when calling some boto3 client methods

* Fixes a bug reported by @dennisconrad, where the nacl is not created when subnets list is empty

* nacl property changed to name and fixes a bug where nacl is not deleted when subnets list is empty

* Updates to version and requirements

* Fix 'vpc' param to 'vpc_id' to match documentation and convention
2016-05-23 10:42:11 -04:00
Ryan Sydnor
0ba34435cf Add encryption capability to AMI copy (#1409) 2016-05-23 10:39:02 -04:00
Brian Coca
eb6ba749c2 added return docs 2016-05-23 10:36:47 -04:00
Adam Števko
0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 2016-05-23 10:35:55 -04:00
Brian Coca
ecee427cbc added note about behaviour change in 2.2 2016-05-23 10:35:03 -04:00
Leo Antunes
d54905ecee Allow multiple keys per host + minor improvements (#716)
* known_hosts: clarify key format in documentation

Add a small clarification to the documentation about the format of the
"key" parameter.
Should make #664 less of a issue for newcomers.

* known_hosts: normalize key entry to simplify input

Keys are normalized before comparing input with present keys. This
should make it easier to deal with some corner cases, such as having a
hashed entry for some host and trying to add it as non-hashed.

* known_hosts: allow multiple entries per host

In order to support multiple key types and allow the installed ssh
version to decide which is more secure, the module now only overwrites
an existing entry in known_hosts if the provided key is of the same
type.
Old keys of different types must be explicitly removed. Setting
state to "absent" and providing no key will remove all entries for the
host.
2016-05-23 10:33:52 -04:00
Rob
b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 2016-05-23 10:31:41 -04:00