Commit graph

3038 commits

Author SHA1 Message Date
Petr Svoboda
14a1a780cd Fail cloudformation operation when it is not completed successfully
When cloudformation operation is successfully submitted but some step
during stack creation or update fails, operation result should be
failed=True.
2013-09-30 15:47:43 +02:00
Petr Svoboda
bbd8205da2 Fix check for ROLLBACK_COMPLETE in cloudformation module
When stack creation is rolled back, final status is not
CREATE_ROLLBACK_COMPLETE but ROLLBACK_COMPLETE.
2013-09-30 15:15:19 +02:00
Nils Pascal Illenseer
e1ff809d1a Add option 'lz4' for compression 2013-09-30 14:20:21 +02:00
Petr Svoboda
de9bea0e3f Add version_added to cloudformation tags parameter 2013-09-30 10:20:39 +02:00
Petr Svoboda
ce4ec5e7ee Add Boto version check for tags parameter of cloudformation module
Tags parameter requires at least version 2.6.0 of Boto module. When tags
parameter is used with older version, error is raised. When tags
parameter is unused, module works as before.
2013-09-30 10:20:39 +02:00
Blair Zajac
a5cdf49184 apt: do not consider not-removed and not-upgraded packages as changes.
If one pins a package and does a 'apt-get dist-upgrade' then the
output looks like:

    # apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
      cassandra
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

The check for any changes made should only be on the 'upgraded' and
'newly installed' values and not include the 'to remove' and 'not
upgraded' values.
2013-09-28 16:50:50 -07:00
Blair Zajac
4a6c68e98a apt: pass child process stdout and stdout to m.fail_json() and m.exit_json().
Without this, this fails:

    - name: apt-get dist-upgrade
      action: apt upgrade=dist
      register: apt_get_contents

    - name: apt-get clean
      action: command apt-get clean
      when: apt_get_contents.stdout.find("0 upgraded") == -1

TASK: [apt-get clean] *********************************************************

fatal: [192.168.2.2] => error while evaluating conditional: {% if apt_get_contents.stdout.find("0 upgraded") == -1 %} True {% else %} False {% endif %}

FATAL: all hosts have already failed -- aborting
2013-09-28 16:28:18 -07:00
Cristobal Rosa
0cbb97bddc Added an space between code and comments in order to follow the coding standars 2013-09-28 00:02:43 +02:00
Cristobal Rosa
0b10e1d019 Added a new check to check whether an network interface is in promiscuous mode 2013-09-28 00:02:06 +02:00
Joshua Lund
bf5a4cbea4 * Updated SHA-256 functionality in the get_url module
(fixes issue #4277)

* The sha256sum error message now displays the invalid
  destination checksum if it doesn't match the one that
  is specified in the arguments. This is useful for
  debugging purposes.

* Non-alphanumeric characters, including the infamous
  Unicode zero-width space, are removed from the sha256sum
  argument prior to the check.
2013-09-27 14:37:21 -06:00
Petr Svoboda
67c786462f Add support for tags parameter to cloudformation module
Expose boto.cloudformation.create_stack() tags parameter. Supplied tags
will be applied to stack and all it's resources on stack creation.
Cannot be updated later (not supported by UpdateStack CloudFormation
API).
2013-09-27 13:39:01 +02:00
Skylar Saveland
d7e5fcf30f add executable option to subversion module 2013-09-26 14:27:40 -07:00
Skylar Saveland
bb4619e716 add executable option to hg, refactor in doing so 2013-09-26 14:27:16 -07:00
Skylar Saveland
3f74c2d986 add executable option to bzr module, refactor in doing so 2013-09-26 14:26:46 -07:00
Skylar Saveland
198c4702bd executable option to git module 2013-09-26 14:15:28 -07:00
Jan Urbański
b356dcbe52 The payment term param in the Linode module is an int. 2013-09-26 18:23:21 +02:00
James Cammarata
80a8ba1b51 Merge pull request #4228 from mragh/devel
Include database param if provided and valid in django_admin commands
2013-09-25 14:58:29 -07:00
James Cammarata
38487ea464 Merge pull request #4222 from lessmian/devel
Module lvol fails when decimal point is a colon
2013-09-25 14:54:58 -07:00
James Cammarata
64a4823c16 Merge pull request #4165 from jerm/devel
dest in s3 module does not work with ~username expansion for home directories
2013-09-25 14:54:11 -07:00
James Cammarata
8ba5ed4d68 Added a version_added string to the new digital_ocean module param 2013-09-25 16:49:48 -05:00
James Cammarata
db1299b535 Merge branch 'digital_ocean_idempotence_take2' of https://github.com/ralphbean/ansible into ralphbean-digital_ocean_idempotence_take2 2013-09-25 16:47:13 -05:00
James Cammarata
e14d857037 Make the ec2 wait code a little smarter
The code to determine the number of running instances could blow up
if the response from AWS did not actually contain any data. This code
makes it a bit smarter in handling, so that it will wait for a valid
response regardless of the wait condition.

Fixes #3980
2013-09-25 16:16:52 -05:00
James Cammarata
a774f686f7 Merge branch 'obsd-fix-release' of https://github.com/johanwiren/ansible into johanwiren-obsd-fix-release 2013-09-25 14:49:57 -05:00
James Cammarata
d1781dad8c Doc fix in htpasswd module due to colon on the line 2013-09-25 14:46:16 -05:00
James Cammarata
920bef12a3 Merge branch 'add-scheme-to-htpasswd-params' of https://github.com/PugglePay/ansible into PugglePay-add-scheme-to-htpasswd-params 2013-09-25 14:39:14 -05:00
James Cammarata
6dbb1ff878 Fixing up some open_iscsi docs and CHANGELOG update 2013-09-25 14:37:56 -05:00
James Cammarata
d920cbc25f Merge branch 'open_iscsi_bis' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-open_iscsi_bis 2013-09-25 14:35:01 -05:00
abelbabel
51cebb062d typo 2013-09-25 18:50:41 +02:00
abelbabel
19db4d381c removed typo 2013-09-25 18:38:46 +02:00
abelbabel
9e88993939 add check mode support
Could it be that easy or do I have missed something?
2013-09-25 17:51:17 +02:00
James Cammarata
888d6dfe9f Merge pull request #4231 from drfickle/svn_docs
Elaborate on capabilities of subversion module
2013-09-24 11:15:52 -07:00
Steve Fox
cf0ffda163 Elaborate on capabilities of subversion module 2013-09-24 11:10:09 -05:00
James Cammarata
43a5d3f008 Merge pull request #4229 from eggsby/supervisorctl
supervisorctl module: fixing typo in error handling
2013-09-24 08:48:15 -07:00
egghead
99c53981ff supervisorctl module: fixing typo in error handling 2013-09-24 15:36:16 +00:00
Jake Kreider
664aa794b0 Include database param if provided and valid in django_admin commands 2013-09-24 10:05:45 -05:00
Tomasz Lesniewski
0eb92ac852 Module lvol fails when decimal point is a colon 2013-09-24 16:19:07 +02:00
Rene Moser
9f969cd3ec host: minor doc style improvements 2013-09-24 15:47:39 +02:00
Tomasz Lesniewski
75ca71bf2c Module lvol fails when decimal point is a colon 2013-09-24 15:06:18 +02:00
Michael DeHaan
eca73d3c82 Merge pull request #4220 from dagwieers/setup-dmidecode-fix
Fix for commented dmidecode output
2013-09-24 05:04:33 -07:00
Dag Wieers
b4cdd15843 Fix for commented dmidecode output
This patch fixes the problem that on some system dmidecode prints out warning information as commented text. For example:

    [user@system ~]# dmidecode -s system-manufacturer
    # SMBIOS implementations newer than version 2.6 are not
    # fully supported by this version of dmidecode.
    HP

So we remove all commented lines from the output.
2013-09-24 12:46:48 +02:00
Rene Moser
497b742935 host: added another example 2013-09-24 09:15:16 +02:00
James Cammarata
ff2b87f350 Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel 2013-09-23 21:24:43 -05:00
James Cammarata
28592ed64f Minor pep8 cleanup 2013-09-23 16:37:42 -05:00
James Cammarata
926c3617df Merge branch 'supervisorctl' of https://github.com/eggsby/ansible into eggsby-supervisorctl 2013-09-23 16:31:50 -05:00
James Cammarata
d4ba1f9ded Fixing some bugs found during testing in the host module 2013-09-23 16:05:43 -05:00
James Cammarata
339f17d560 Merge branch 'feature/host' of https://github.com/resmo/ansible into resmo-feature/host 2013-09-23 15:42:30 -05:00
James Cammarata
b37f65f9eb Added a delimiter example and a version_added string for assemble 2013-09-23 15:32:36 -05:00
James Cammarata
8c8c0d4ec4 Fixed a bug in the delimiter change for the assemble module 2013-09-23 15:29:13 -05:00
James Cammarata
d41afd9a46 Merge branch 'devel' of https://github.com/pcgentry/ansible into pcgentry-devel 2013-09-23 15:18:15 -05:00
James Cammarata
104535ac48 Merge branch 'devel' of https://github.com/drybjed/ansible into drybjed-devel 2013-09-23 15:10:40 -05:00