Commit Graph

3556 Commits (b837e5275c625e3b4b996e5dd3e06a5880f9d992)

Author SHA1 Message Date
Richard C Isaacson 9244283122 Spelling and formatting. 11 years ago
Cove Schneider 29f1528492 change order of copyright 11 years ago
Cove Schneider f47fe7af62 add sponsor copyright/attribution 11 years ago
Cove Schneider cbd1da6457 add yum module downgrade support 11 years ago
Scott Anderson db67c3d772 Fixes a bug that prevents round-tripping of * and @ 11 years ago
James Cammarata 5a235f9e99 Merge pull request #6318 from jimi-c/issue_5305_ec2_elb_None_issue
Adding a wait loop to ec2_elb for the initial lb state when registering
11 years ago
Michael DeHaan 616d7e53b1 Merge pull request #6305 from amree/fix-mysql-replication-port
Fixed SQL syntax error when running mysql_replication module
11 years ago
Michael DeHaan 7710867922 Merge pull request #6308 from muffl0n/file_fix_documentation
Module "file": Fix link to "path" in documentation
11 years ago
Michael DeHaan acd64bf5a1 Merge pull request #6313 from phenomenes/msg-encoding-fix
Don't use keyword `error` in encode
11 years ago
James Cammarata 9f2999df79 Un-escape newlines in delimiters for assemble module 11 years ago
Jimena Cabrera-Notari cc6e1ec261 Don't use keyword `error` in encode
This is not supported in Python 2.6. Just use positional arguments.
11 years ago
Sven Schliesing f62cc1e351 Fix link in documentation
c(dest) -> c(path)
11 years ago
willthames 4a093a9709 Make it easier to determine whether instance creation or tagging fails 11 years ago
Will Thames b9a7352e0a 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
11 years ago
amree 1d731e5c30 MASTER_PORT variable for CHANGE MASTER TO command can only accept integer value 11 years ago
James Cammarata 25cf215f54 Create the tempdir in the accelerate module if it doesn't exist
Fixes #6047
11 years ago
jctanner 6a615f18c5 Merge pull request #5872 from tomdymond/add-ignoreerror-to-sysctl
Add option to enable the sysctl -e option
11 years ago
jctanner 40ee030790 Merge pull request #6265 from franckcuny/gce-fixes
Add credential parameters to the GCE modules.
11 years ago
Franck Cuny 6294264dc4 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.
11 years ago
Michael DeHaan da2126eda5 Merge pull request #6279 from techtonik/patch-1
setup: Fix KeyError: 'ipv4_secondaries' (issue #6274)
11 years ago
anatoly techtonik a48f0da9d8 setup: Fix KeyError: 'ipv4_secondaries' (issue #6274) 11 years ago
Michael Scherer 5fd7b8010f 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
11 years ago
jctanner 0e494242cf Merge pull request #6271 from jimkytola/docker-image-fix
Removes pluralization of manager tag attribute.
11 years ago
Jim Kytola 186d19f224 Removes pluralization of manager tag attribute. 11 years ago
ToBeReplaced 23d4ecc2a5 Add comment about mod_admin_extra
Fixes issue #6027.
11 years ago
willthames f568140ea5 Allow ec2_tag module to list the tags of an instance
Use the list argument to state to just collect the
tags of a resource through the AWS API.
11 years ago
Quinn Slack 635fdcb533 Add new cloud/rds DB instance types (db.m3 and db.cr1 families) 11 years ago
Joshua Conner 10f36e8c62 nova_compute: remove ternary statement 11 years ago
James Tanner 39e368b713 Fix debconf docstring indentation 11 years ago
James Tanner ff1ae57fbf Merge branch 'debconf' of git://github.com/bcoca/ansible into bcoca-debconf 11 years ago
James Tanner abd7c0b565 Update cpanm module to newer module patterns 11 years ago
James Tanner 4da0428d89 Merge branch 'module-cpanm' of git://github.com/franckcuny/ansible into franckcuny-module-cpanm 11 years ago
jctanner b1a3e367b6 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
11 years ago
James Cammarata 7f1989dc9c Adding a wait loop to ec2_elb for the initial lb state when registering
Fixes #5305
11 years ago
jctanner 1e01fb856d Merge pull request #6242 from scottanderson42/rds-group-modules
Adds modules for managing Amazon RDS parameter and subnet groups.
11 years ago
Scott Anderson 5c9739ae9c Adds modules for managing Amazon RDS parameter and subnet groups. 11 years ago
Gareth Rushgrove a26bc3e2f9 correct name in documentation and example 11 years ago
Gareth Rushgrove 87265cd4b3 correct version added 11 years ago
Brian Coca 400a1aa49a didnt make 1.5 ... lets see 11 years ago
Brian Coca 68510ecda8 added better gentoo/funtoo support 11 years ago
Gareth Rushgrove c770462fad Added modules to manage ec2 autoscaling groups
Includes management of Launch Configuration and related Autoscaling
Groups
11 years ago
Michael DeHaan 90655cb7b0 Fix up examples in the assert docs to match the way things work. 11 years ago
Joshua Conner ce5939c507 nova_compute: fix for partial match b/w params['name'] and an existing name
When there is an Openstack instance that has a name that's a partial match
for module.params['name'], but a server with name module.params['name']
doesn't yet exist, this module would fail with a list index out of bounds
error. This fixes that by filtering by exact name and only then getting the
server from the list if the list is still not empty.
11 years ago
Eugene Brevdo fa3d84d59e Tiny bugfix in ec2_vol documentation. 11 years ago
Michael DeHaan 4b281ca5c7 Make the npm production parameter in the docs list the choices. 11 years ago
Michael DeHaan 6c43e0e010 Simplify file module parameter description. 11 years ago
Michael DeHaan bbb88517ef Since the ec2 parameter is named 'key_name' and 'keypair' is just an alias, use
the primary name of the parameter in the examples.
11 years ago
Michael DeHaan b2c8b8ba86 Merge pull request #6222 from csinchok/patch-1
Typo in rabbitmq_plugin docs
11 years ago
Michael DeHaan 9d3a344c06 Merge pull request #6223 from lvh/patch-2
Support ssh-ed25519 keys
11 years ago
Laurens Van Houtven 80e2c597a8 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.
11 years ago
James Cammarata 57486b268a 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
11 years ago
Chris Sinchok 796ac6d01c Typo in rabbitmq_plugin docs
Should be "plugins", not "users".
11 years ago
Richard C Isaacson f17e549ff9 Typo fix. 11 years ago
Richard C Isaacson 809b714bfc 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.
11 years ago
Richard Isaacson cca7fd3c0c Merge pull request #1 from bcoca/stat_updaates
added octal representation of mode and made md5 checksumming optional
11 years ago
Richard Isaacson 44da82c90f Merge pull request #6218 from risaacson/issues_6194
Copy Module: Add the ability to set directory attributes on recursive copy.
11 years ago
Richard C Isaacson 7b6c7366d1 Minor cleanup. 11 years ago
Richard C Isaacson 890202e4c0 copy module: cleanup and if directory_mode not set default to umask 11 years ago
jctanner 42a2586dfa 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
11 years ago
Richard C Isaacson cf4a6b39cc 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.
11 years ago
James Tanner aeccbeeed2 add failsafe comment for install_repoquery 11 years ago
James Tanner 122a7021bc remove install_repoquery docstring 11 years ago
James Tanner 3f43fa529d Install yum-utils by default 11 years ago
James Tanner 58c78539bb Fix typo 11 years ago
James Tanner da210522f3 Fix up docstring type and extra info about list 11 years ago
James Tanner 79fb252dc9 Update docstring for rhn details 11 years ago
James Tanner f89e5315af Add install_repoquery parameter to the yum module 11 years ago
Michael DeHaan 829f959dce Merge pull request #6201 from cchurch/devel
Escape subversion parameters for running svn commands
11 years ago
Richard Isaacson 73fa767a6b Added instance_tenancy functionality per social request. 11 years ago
Chris Church 5c2c29e71f Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 11 years ago
James Cammarata 32a2636dc7 Add expanduser calls on src/dest in the module too 11 years ago
James Cammarata 3274785350 Merge pull request #5689 from pgehres/devel
Adding the region to the output of the ec2 module's creation of a new in...
11 years ago
Pavel Antonov 21a7bace77 Support docker_py >= 0.3.0, Docker API >= 1.8, extended error reporting 11 years ago
James Cammarata bb5da4c5f6 Merge branch 'devel' of https://github.com/josephtate/ansible into josephtate-devel
Conflicts:
	library/cloud/ec2
11 years ago
James Cammarata d6b912c429 Modifying the wait logic for newly created images to avoid tracebacks
Fixes #4619
11 years ago
James Cammarata e659d55d62 Merge branch 'devel' of https://github.com/muffl0n/ansible into muffl0n-devel 11 years ago
James Cammarata 8a7c68dc18 Merge branch 'ec2-params' of https://github.com/scottanderson42/ansible into scottanderson42-ec2-params
Conflicts:
	lib/ansible/module_utils/ec2.py
	library/cloud/ec2
11 years ago
Michael DeHaan 404765162d Merge pull request #6184 from patrys/patch-1
Properly match existing security group
11 years ago
Patryk Zawadzki da1efee21f Properly match existing security group
If we don't care about `vpc_id` then neither should the code.
11 years ago
Guido Kollerie a000f37132 Emphasize target is on remote host. List supported file types.
From the documentation it is not immediately clear that the 'target'
option refers to a location on the remote host. This change emphasizes that.
In addition to .sql files, .bz2 and .gz files are supported for dumps and
restores. This is now documented.
11 years ago
jctanner 6fa898c511 Merge pull request #5092 from willthames/ec2_snapshot
Module to create EC2 snapshots
11 years ago
jctanner 1277b45b3c Merge pull request #5941 from sivel/rax-name-search-opts
rax module: Use regex start and end of string with name base filters
11 years ago
Brian Coca 53d71a3949 added octal representation of mode and made md5 checksumming optional
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Joshua Conner 9c72b52c01 docker: add 'version_added' to the appropriate documentation entries 11 years ago
Chris Church 1d6bdd451b Fix setup module to gather facts from PowerPC Macs. 11 years ago
Joshua Conner 66eb91c2f8 docker: update to docker-py 0.3.0, plus full port binding support, container names, links 11 years ago
James Tanner 0cca4a3919 Fixes #5255 yum: set disabled repos before enabled repos and fix the parameters used 11 years ago
James Cammarata 03cb2f5ffa Merge branch 'git_version_tags' of https://github.com/j2sol/ansible into j2sol-git_version_tags 11 years ago
James Cammarata cb79947054 Fixing the unicode issue in uri for EL6 platforms
Fixes #5869
11 years ago
James Cammarata 6fe369fca0 Merge branch 'usermod_fix' of https://github.com/tknguyen79/ansible into tknguyen79-usermod_fix
Conflicts:
	library/system/user
11 years ago
James Cammarata 97eededc99 Handle unicode content in the uri module properly
Fixes #5869
11 years ago
Stefan J. Betz 789ae4697c Require force for LVM shrink and remove operations in lvol. Fixes #5774
Conflicts:
	library/system/lvol
11 years ago
Michael DeHaan 05bf80751b Merge pull request #6158 from risaacson/issues_5165
If you try to resize a lvol to the current size return a changed=False and don't fail.
11 years ago
Richard C Isaacson bf30707670 If you try to resize a lvol to the current size return a changed=False and don't fail.
This addresses GH-5165 and adds the ability to check if a lvol exists.

The tests for this don't fit nicely into the current integration tests so they are below.

```
---

- name: remove any existing lv=one of vg=main
  lvol: lv=one vg=main state=absent

- name: remove any existing lv=two of vg=main
  lvol: lv=two vg=main state=absent

- name: check to see if lv=one of vg=main exists
  lvol: lv=one vg=main state=present
  ignore_errors: true
  register: lvol_result0

- name: Assert that we will get a "No size given."
  assert:
    that:
      - "'No size given.' in lvol_result0.msg"

- name: create lv=one of vg=main sized 30g
  lvol: lv=one size=30g vg=main state=present
  register: lvol_result1

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result1.changed == True"

- name: check to see if lv=one of vg=main exists
  lvol: lv=one vg=main state=present
  register: lvol_result2

- name: Assert that we did not make changes."
  assert:
    that:
      - "lvol_result2.changed == False"

- name: remove lv=one of vg=main
  lvol: lv=one vg=main state=absent

- name: create lv=two of vg=main sized 30G
  lvol: lv=two size=30G vg=main state=present
  register: lvol_result3

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result3.changed == True"

- name: reduce lv=two of vg=main to 15G
  lvol: lv=two size=15G vg=main state=present
  register: lvol_result4

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result4.changed == True"

- name: increase lv=two of vg=main to 30G
  lvol: lv=two size=30G vg=main state=present
  register: lvol_result5

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result5.changed == True"

- name: create lv=two of vg=main sized 30G when already exists at 30G
  lvol: lv=two size=30g vg=main state=present
  register: lvol_result6

- name: Assert that we did not make changes."
  assert:
    that:
      - "lvol_result6.changed == False"

- name: remove lv=two of vg=main
  lvol: lv=two vg=main state=absent
```
11 years ago
Kyle Kelley b5eb4d2a71 Fix expires 11 years ago
James Cammarata be0be16e89 Merge branch '5853-python-2.5-apt_repository-fix' of https://github.com/timurbatyrshin/ansible into timurbatyrshin-5853-python-2.5-apt_repository-fix 11 years ago
James Cammarata 3b2d409906 Fixing several bugs in assemble and updating tests
Bugfixes:
* the remote_src param was not being converted to a boolean correctly,
  resulting in it never being used by the module as the default behavior
  was remote_src=True (issue #5581)
* the remote_src param was not listed in the generic file params, leading
  to a failure when the above bug regarding remote_src was fixed
* the delimiter should always end with a newline to ensure that the file
  fragments do not run together on one line

Fixes #5581
11 years ago
James Cammarata f03d6a67c8 Adding new tests for assemble role 11 years ago
Richard C Isaacson aaf0a182e1 Merge remote-tracking branch 'jeromew/ansible_script_creates' into issues_4986 11 years ago
Scott Patten dbde446358 In the route53 module, documenting that TXT and SPF requests
must be surrounded by quotes.

Otherwise you get a cryptic error message from Route 53.
11 years ago