Commit graph

3488 commits

Author SHA1 Message Date
Will Thames
7d0e161662 Work to allow security tokens and profiles to work with Ansible
Allow security tokens and profiles to be used as arguments
to the 'common' ec2 modules

Mostly refactoring to provide two new methods,
`get_aws_connection_info`, which results in a dict that can be
passed through to the boto `connect_to_region` calls, and
`connect_to_aws` that can pass that dict through to the
`connect_to_region` method of the appropriate module.

Tidied up some variable names

Works around boto/boto#2100

profiles don't work with boto < 2.24, but this detects for that
and fails with an appropriate message. It is designed to work
if profile is not passed but boto < 2.24 is installed.

Modifications to allow empty aws auth variables to be passed
(this is useful if wanting to have the keys as an optional
parameter in ec2 calls - if set, use this value, if not set,
use boto config or env variables)

Reworked validate_certs improvements to work with refactoring

Added documentation for profile and security_token to affected modules
2014-03-06 16:28:30 +10:00
jctanner
b105942654 Merge pull request #5872 from tomdymond/add-ignoreerror-to-sysctl
Add option to enable the sysctl -e option
2014-03-05 12:58:05 -05:00
jctanner
6ccdf7cba5 Merge pull request #6265 from franckcuny/gce-fixes
Add credential parameters to the GCE modules.
2014-03-05 00:11:52 -05:00
Franck Cuny
f59e832292 Add credential parameters to the GCE modules.
In order to simplify the workflow with the GCE modules, it's now
possible to add the parameters and project name as arguments to the
various GCE modules.

The inventory plugin also returns the IP of the host in
`ansible_ssh_host` so that you don't have to specify IPs into the
inventory file.

Some update to the documentation are also added.

Closes #5583.
2014-03-04 19:27:49 -08:00
Michael DeHaan
fb42d429c0 Merge pull request #6279 from techtonik/patch-1
setup: Fix KeyError: 'ipv4_secondaries' (issue #6274)
2014-03-04 14:24:36 -05:00
anatoly techtonik
63f0a644ac setup: Fix KeyError: 'ipv4_secondaries' (issue #6274) 2014-03-04 20:00:18 +02:00
Michael Scherer
fb16c9615d Fix wrong module name for exception in nova compute
failed: [127.0.0.1] => {"failed": true, "parsed": false}
  invalid output was: Traceback (most recent call last):
    File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 1328, in <module>
      main()
    File "/tmp/ansible-tmp-1393950384.39-102240090845592/nova_compute", line 241, in main
      except exc.Unauthorized, e:
  NameError: global name 'exc' is not defined
2014-03-04 17:30:15 +01:00
jctanner
8fe1737f2e Merge pull request #6271 from jimkytola/docker-image-fix
Removes pluralization of manager tag attribute.
2014-03-04 10:37:50 -05:00
Jim Kytola
6b8913ff8a Removes pluralization of manager tag attribute. 2014-03-04 10:07:32 -05:00
ToBeReplaced
b950ad6b1c Add comment about mod_admin_extra
Fixes issue #6027.
2014-03-04 09:19:44 -05:00
James Tanner
87f17e7e94 Fix debconf docstring indentation 2014-03-03 13:48:44 -05:00
James Tanner
b07e5742b3 Merge branch 'debconf' of git://github.com/bcoca/ansible into bcoca-debconf 2014-03-03 13:46:11 -05:00
James Tanner
5292c7050c Update cpanm module to newer module patterns 2014-03-03 13:37:32 -05:00
James Tanner
8642544221 Merge branch 'module-cpanm' of git://github.com/franckcuny/ansible into franckcuny-module-cpanm 2014-03-03 13:07:26 -05:00
jctanner
66558c350a Merge pull request #6196 from softzilla/feature/docker_py_0.3.0_ansible
docker_image: added support for docker_py >= 0.3.0, Docker API >= 1.8. Replace #6178
2014-03-03 11:58:16 -05:00
jctanner
6188f12fe7 Merge pull request #6242 from scottanderson42/rds-group-modules
Adds modules for managing Amazon RDS parameter and subnet groups.
2014-03-03 09:42:44 -05:00
Scott Anderson
20e710583a Adds modules for managing Amazon RDS parameter and subnet groups. 2014-03-02 19:36:07 -05:00
Brian Coca
a4f6a12181 didnt make 1.5 ... lets see 2014-03-01 22:28:51 -05:00
Brian Coca
a7444f5178 added better gentoo/funtoo support 2014-03-01 21:56:02 -05:00
Michael DeHaan
6aadf11ff8 Fix up examples in the assert docs to match the way things work. 2014-03-01 09:34:21 -05:00
Michael DeHaan
922c51176c Make the npm production parameter in the docs list the choices. 2014-02-28 14:00:00 -05:00
Michael DeHaan
2f12c6ddf6 Simplify file module parameter description. 2014-02-28 13:55:07 -05:00
Michael DeHaan
1f0991c88c Since the ec2 parameter is named 'key_name' and 'keypair' is just an alias, use
the primary name of the parameter in the examples.
2014-02-28 13:52:47 -05:00
Michael DeHaan
deb8868556 Merge pull request #6222 from csinchok/patch-1
Typo in rabbitmq_plugin docs
2014-02-28 12:59:28 -05:00
Michael DeHaan
d71921492b Merge pull request #6223 from lvh/patch-2
Support ssh-ed25519 keys
2014-02-28 12:59:05 -05:00
Laurens Van Houtven
c50b772e61 Support ssh-ed25519 keys
The newest version of OpenSSH supports a new, wonderful key type. authorized_key incorrectly discards pubkeys of this type as busted because it doesn't recognize type signature.
2014-02-28 18:46:54 +01:00
James Cammarata
08fca488f3 Use the no-user-groups option (-N) for useradd in the user module
If no group was specified, but a group by the same name as the user
exists, an error was raised in the situation where USERGROUPS_ENAB is
enabled in /etc/login.defs (which is the case for almost every major
linux distro). In this case, the user will be put in group 100 (which
is usually the "users" group on those same distros). This is currently
only done in the base class, as the issue may not exist on other
platforms like AIX or the BSDs.

Fixes #6210
2014-02-28 11:46:27 -06:00
Chris Sinchok
9170827caf Typo in rabbitmq_plugin docs
Should be "plugins", not "users".
2014-02-28 11:38:11 -06:00
Richard C Isaacson
7263148156 Typo fix. 2014-02-28 11:02:58 -06:00
Richard C Isaacson
1e2eb88926 Replace mode with octal renaming to mode.
Closes GH-6176

This way for mode we return in an octal format which is immediately usable compared to transforming it later.
2014-02-28 10:42:20 -06:00
Richard Isaacson
6ffeaa7ddd Merge pull request #1 from bcoca/stat_updaates
added octal representation of mode and made md5 checksumming optional
2014-02-28 10:39:41 -06:00
Richard Isaacson
4d498977d6 Merge pull request #6218 from risaacson/issues_6194
Copy Module: Add the ability to set directory attributes on recursive copy.
2014-02-28 10:14:04 -06:00
Richard C Isaacson
a707e858cd Minor cleanup. 2014-02-28 10:04:05 -06:00
Richard C Isaacson
3ca9fc64d5 copy module: cleanup and if directory_mode not set default to umask 2014-02-28 10:00:54 -06:00
jctanner
43373f068f Merge pull request #6171 from joshuaconner/update_to_docker-py_0.3.0
docker: update to docker-py 0.3.0, plus full port binding support etc. from #5639
2014-02-28 08:31:56 -05:00
Richard C Isaacson
326ed4eeeb Copy Module: Add the ability to set directory attributes on recursive copy.
Closes GH-6194.

These changes pass attribute modifications through to new directories during a recursive copy with an addition allowing for the directory mode to be set independantly.
2014-02-28 01:14:32 -06:00
James Tanner
eb177ecf4f add failsafe comment for install_repoquery 2014-02-27 13:42:05 -05:00
James Tanner
62661193fc remove install_repoquery docstring 2014-02-27 13:29:15 -05:00
James Tanner
0b98c6fbfb Install yum-utils by default 2014-02-27 13:16:30 -05:00
James Tanner
303a9a73f3 Fix typo 2014-02-27 12:40:51 -05:00
James Tanner
fc0de868ed Fix up docstring type and extra info about list 2014-02-27 12:39:27 -05:00
James Tanner
80c413d25d Update docstring for rhn details 2014-02-27 12:34:53 -05:00
James Tanner
6d63780ad6 Add install_repoquery parameter to the yum module 2014-02-27 12:18:25 -05:00
Michael DeHaan
607e66fb27 Merge pull request #6201 from cchurch/devel
Escape subversion parameters for running svn commands
2014-02-27 10:36:44 -05:00
Richard Isaacson
5ce0b80fd3 Added instance_tenancy functionality per social request. 2014-02-27 09:29:00 -06:00
Chris Church
0e955832d7 Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 2014-02-26 22:23:26 -05:00
James Cammarata
b667e1d404 Add expanduser calls on src/dest in the module too 2014-02-26 15:19:45 -06:00
James Cammarata
94506632d8 Merge pull request #5689 from pgehres/devel
Adding the region to the output of the ec2 module's creation of a new in...
2014-02-26 14:45:12 -06:00
Pavel Antonov
3ab673e91f Support docker_py >= 0.3.0, Docker API >= 1.8, extended error reporting 2014-02-27 00:27:39 +04:00
James Cammarata
f3ef528dfa Modifying the wait logic for newly created images to avoid tracebacks
Fixes #4619
2014-02-26 13:33:31 -06:00