Commit Graph

2537 Commits (307dd77589b96ab850a5e6da5ae9a0bce2589035)

Author SHA1 Message Date
James Cammarata f9c87868ac Added keepalive packets to accelerate mode
Commands will now be started up in a separate task from the main
handler thread, so that it can be monitored for completeness while
sending a keepalive packet back to the controller to avoid a socket
receive timeout.
11 years ago
James Cammarata 344d8d51ab Use atomic_move to put the file, rather than shelling out
Fixes #4321
11 years ago
James Cammarata 9341587520 Merge branch 'sha256sum-updates' of https://github.com/jlund/ansible into jlund-sha256sum-updates 11 years ago
James Cammarata c8dcdc7b7a Merge branch 'source_control-executable' of https://github.com/skyl/ansible into skyl-source_control-executable 11 years ago
cdigiovanni 7ff2b3befd Added support to disable and enable upstart jobs 11 years ago
ryanaudiencepi 9da0ae2a1f Fix monit module. Monit restart bug 11 years ago
ryanaudiencepi c2e2d53a16 Fix monit module. Use lowercase letters check instead of uppercase 11 years ago
James Cammarata 52a42bf607 Add more verbose debugging options for accelerate 11 years ago
Petr Svoboda 19fb4f861c 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.
11 years ago
Nils Pascal Illenseer 4ee6c6d5df Add option 'lz4' for compression 11 years ago
Joshua Lund 20489f1346 * 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.
11 years ago
Skylar Saveland b339485da8 add executable option to subversion module 11 years ago
Skylar Saveland d8c61528db add executable option to hg, refactor in doing so 11 years ago
Skylar Saveland c4947ebc7d add executable option to bzr module, refactor in doing so 11 years ago
Skylar Saveland 5243bd5fa3 executable option to git module 11 years ago
Jan Urbański 7fa92054fe The payment term param in the Linode module is an int. 11 years ago
James Cammarata 2ed803837e Merge pull request #4228 from mragh/devel
Include database param if provided and valid in django_admin commands
11 years ago
James Cammarata 9dd2d1eb13 Merge pull request #4222 from lessmian/devel
Module lvol fails when decimal point is a colon
11 years ago
James Cammarata 80524a8f2b Merge pull request #4165 from jerm/devel
dest in s3 module does not work with ~username expansion for home directories
11 years ago
James Cammarata 484297cfa8 Added a version_added string to the new digital_ocean module param 11 years ago
James Cammarata 3fd0eefb97 Merge branch 'digital_ocean_idempotence_take2' of https://github.com/ralphbean/ansible into ralphbean-digital_ocean_idempotence_take2 11 years ago
James Cammarata 8b010cbb45 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
11 years ago
James Cammarata 301a00ccf5 Merge branch 'obsd-fix-release' of https://github.com/johanwiren/ansible into johanwiren-obsd-fix-release 11 years ago
James Cammarata b41ea366c8 Doc fix in htpasswd module due to colon on the line 11 years ago
James Cammarata 786a765063 Merge branch 'add-scheme-to-htpasswd-params' of https://github.com/PugglePay/ansible into PugglePay-add-scheme-to-htpasswd-params 11 years ago
James Cammarata 23417368df Fixing up some open_iscsi docs and CHANGELOG update 11 years ago
James Cammarata c98ed252fe Merge branch 'open_iscsi_bis' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-open_iscsi_bis 11 years ago
James Cammarata 776fc044dd Merge pull request #4231 from drfickle/svn_docs
Elaborate on capabilities of subversion module
11 years ago
Steve Fox bd48251b34 Elaborate on capabilities of subversion module 11 years ago
James Cammarata a2be93e4b8 Merge pull request #4229 from eggsby/supervisorctl
supervisorctl module: fixing typo in error handling
11 years ago
egghead 255d2d6770 supervisorctl module: fixing typo in error handling 11 years ago
Jake Kreider bd446ef777 Include database param if provided and valid in django_admin commands 11 years ago
Tomasz Lesniewski 385ffcdfb1 Module lvol fails when decimal point is a colon 11 years ago
Rene Moser ff84812047 host: minor doc style improvements 11 years ago
Tomasz Lesniewski e2815a56dc Module lvol fails when decimal point is a colon 11 years ago
Michael DeHaan 314e1aafc1 Merge pull request #4220 from dagwieers/setup-dmidecode-fix
Fix for commented dmidecode output
11 years ago
Dag Wieers 5bd7664fac 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.
11 years ago
Rene Moser 803b2b91a6 host: added another example 11 years ago
James Cammarata 93336ce00d Merge branch 'devel' of https://github.com/volker48/ansible into volker48-devel 11 years ago
James Cammarata a6d62ef59b Minor pep8 cleanup 11 years ago
James Cammarata 29bff3ffc1 Merge branch 'supervisorctl' of https://github.com/eggsby/ansible into eggsby-supervisorctl 11 years ago
James Cammarata 4420379f59 Fixing some bugs found during testing in the host module 11 years ago
James Cammarata da0d50c383 Merge branch 'feature/host' of https://github.com/resmo/ansible into resmo-feature/host 11 years ago
James Cammarata d647c5dc00 Added a delimiter example and a version_added string for assemble 11 years ago
James Cammarata a97872906f Fixed a bug in the delimiter change for the assemble module 11 years ago
James Cammarata bcf9a75d94 Merge branch 'devel' of https://github.com/pcgentry/ansible into pcgentry-devel 11 years ago
James Cammarata a8fac7906d Merge branch 'devel' of https://github.com/drybjed/ansible into drybjed-devel 11 years ago
James Cammarata c31ece58fa Added version_added string to new modprobe module and CHANGELOG update 11 years ago
James Cammarata 4d7b5da25d Merge branch 'modprobe-module' of https://github.com/stygstra/ansible into stygstra-modprobe-module 11 years ago
James Cammarata 30a1560d67 Merge branch 'devel' of https://github.com/tomdymond/ansible into tomdymond-devel 11 years ago
James Cammarata 080f35f63a Merge branch 'ec2_boto' of https://github.com/CharlesBlonde/ansible into CharlesBlonde-ec2_boto 11 years ago
James Cammarata ca2950141b Merge branch 'bcoca-env_facts' into devel 11 years ago
James Cammarata d1f713938e Modified env fact gathering to use the native python method
Also updated CHANGELOG for this feature
11 years ago
James Cammarata 19343288df Merge branch 'env_facts' of https://github.com/bcoca/ansible into bcoca-env_facts 11 years ago
Michael DeHaan 0dc232a177 Merge pull request #4159 from stygstra/quantum_subnet-nameservers
Add option for DNS nameservers to quantum_subnet module
11 years ago
Maciej Delmanowski 551b93c547 Made re.search string shorter 11 years ago
Maciej Delmanowski 40b0471e95 Add Linux Container identification 11 years ago
Andrey Shorin ea488f5e05 Make --check mode work with fireball and accelerate connections 11 years ago
James Cammarata 4a467f71cd Change touched -> touch for new file state, and cleaning up docs 11 years ago
James Cammarata 4d417401c0 Merge branch 'feature/file-state-touched' of https://github.com/resmo/ansible into resmo-feature/file-state-touched 11 years ago
Johan Wirén e9554e5da2 Fixed setup module to no longer break on OpenBSD release versions. 11 years ago
René Moser 3a0fd84115 file: added file attributes in state=touched 11 years ago
René Moser 573ea5bdce file: skip in check_mode if state=touched 11 years ago
egghead 3f4dc876fc supervisorctl module: adding support for custom supervisord installations
Supervisord can be installed at the user level or system level.
Installating as a user is particularly useful for systems without root access.

Adds the ability to provide a custom supervisorctl executable path, supporting custom installations
11 years ago
René Moser 06fae59e8b file: implemented state=touched. Closes GH-4097 11 years ago
James Cammarata 4efdf0d49f More housekeeping
* Modified version_added strings in recent modules
* Added firewalld inclusion to the CHANGELOG
11 years ago
James Cammarata 8721ad2909 Moving firewalld module from net_infra to system 11 years ago
James Cammarata 720b68a3c6 Merge branch 'maxamillion/firewalld' of https://github.com/maxamillion/ansible into maxamillion-maxamillion/firewalld 11 years ago
James Cammarata a26c1b64c6 Minor pep8 cleanup in ec2_eip module 11 years ago
James Cammarata f369650922 Merge branch 'ec2_eip' of https://github.com/lorin/ansible into lorin-ec2_eip 11 years ago
James Cammarata ecaf649adc Changed the version_added field in rax_clb_nodes to 1.4 11 years ago
James Cammarata 93fd06d48c Minor doc fix and a CHANGELOG update for the new rax_clb_nodes module 11 years ago
James Cammarata e4ee97384a Merge branch 'rax-clb-nodes' of https://github.com/neuroid/ansible into neuroid-rax-clb-nodes 11 years ago
James Cammarata 519d195f2a Merge branch 'rax_wait_on_delete' of https://github.com/jlaska/ansible into jlaska-rax_wait_on_delete 11 years ago
Phillip 4b5b6e91fe adding an optional delimiter argument to the assemble module 11 years ago
René Moser 0ba7acd205 host: code cleanup 11 years ago
James Laska 03252e1d30 [cloud/rax] support wait on delete
Add support to existing rax module to honor the wait (and wait_timeout)
parameters on delete operations.  This patch removes existing logic in favor of
the built-in pyrax.utils.wait_until method.
11 years ago
Pieter Avonts 60d8f92b3c changed deprecated channel_label attribute 11 years ago
James Cammarata c2e02fbd6b Minor tweak to service changed logic from the previous commit 11 years ago
James Cammarata f62093da56 Merge branch 'service-enable-fix' of https://github.com/gottwald/ansible into gottwald-service-enable-fix 11 years ago
Petr Svoboda 8d290e3394 Fix traceback in service module when svc_cmd is None (2nd fix)
When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

This extends fix from e2f20db534 also
for state=restarted.

Fixes issue #3533
11 years ago
René Moser bcaab4236b host: updated version_added 11 years ago
Rene Moser 7f96dd832f added module host
Add or remove entries in /etc/hosts using tasks:
- host: ip=127.0.0.1 hostname=localhost aliases=foobar.com,localhost.foobar.com
- host: ip=127.0.0.1 hostname=localhost state=present
- host: ip=192.168.1.1 state=absent
- host: hostname=localhost state=absent
- host: ip=::1 hostname=localhost aliases=ip6-localhost,ip6-loopback
11 years ago
René Moser ccf4cf1dd8 Fixed missing required package in notes. 11 years ago
Jeremy Price f56b3fba3e dest in s3 module does not work with ~username notation for home directories. Wrapped dest definition in os.path.expanduser() which will return the expanded path in case of successful tilde expansion and otherwise the original value 11 years ago
David Stygstra 58620ca477 Add Python 2.4 support to modprobe module 11 years ago
David Stygstra 27a08dc647 Module to manage kernel modules 11 years ago
Lorin Hochstein d4326d8196 htpasswd docs: add notes about depending on python-passlib 11 years ago
David Stygstra 3fdbb56465 Add option for DNS nameservers to quantum_subnet module 11 years ago
Erick Yellott af7b182958 Typo fix from `accelerated: true` to `accelerate: true` 11 years ago
Ralph Bean a9a2a96218 Add a new unique_name param to the digital_ocean module for idempotence.
As it stands now, it is difficult to write idempotent tasks for digital
ocean droplets.  Digital ocean assigns new nodes a random id when they
are provisioned and that id is the only key that can be used to identify
it in subsequent runs of that play.

The workflow previously involved manual intervention:

- write a play defining a new node with no specified id
- run it, collect the randomly assigned id by hand
- modify the play to add the id by hand so future runs don't create
  duplicate nodes
- perform future re-runs that check if the node exists (by its id)
  - if it does exist then do nothing.
  - if it does not exist, then create it and return a *new random id*
  - collect the new random id by hand, modify the playbook file, and
    start all over.

Its a huge pain.

The modifications in this commit allow you to use the 'hostname' as a
primary key for idempotence with digital ocean.  By default, digital
ocean will let you create as many hosts with the same hostname as you
like.  Here, we provide an option to constrain the user to using only
unique hostnames.

The workflow will now look like:

- write a play defining a new node with a specified hostname and
  "unique_name: true""
- run it, create the new node and move on.
- re-run it, notice that a node with that hostname is already created
  and move on.
11 years ago
Ralph Bean 6ecf41530b Fix an example with a yaml syntax error. 11 years ago
Ralph Bean d782d91b80 Fix some "make pep8" errors in the digital_ocean module. 11 years ago
James Cammarata 022918e5af Merge branch 'fix/apt_repository_update_cache' of https://github.com/resmo/ansible into resmo-fix/apt_repository_update_cache 11 years ago
René Moser 9fccf96d61 apt_repository: added option update_cache.
The default behavior is to update_cache if changed.

If you add more then one repo, you may not want to update cache for every repo separately.
So you can now disable update_cache with this new option e.g. update_cache=no

Updating cache can also be handled using the apt module.
11 years ago
Ralph Bean a1ea15141e Remove trailing whitespace in digital ocean module. 11 years ago
Ralph Bean 3eab663f2e Remove duplicate docs in digital ocean module.
The EXAMPLES block here has two copies of the same docs,
one nicely formatted, the other less so.

It looks like a pass was made to clean up the docs but the old
cruftier ones were never removed.
11 years ago
René Moser a991b62a51 apt_repository: fix update cache after state=changed. Closes GH-4136 11 years ago
James Cammarata 671eeb65b2 Merge pull request #4138 from resmo/fix/redundant-fail-json
apt: fixed duplicate fail_json
11 years ago
Rene Moser 9449d62fb2 apt: fixed duplicate fail_json 11 years ago
Shuhao Wu 0d2a3f1b0c Fixed monit restarted error.
Errors everytime...
11 years ago
James Cammarata f4c5f37ca6 Merge branch 'issue_3417_systemd_stuff' into devel 11 years ago
James Cammarata 02033f9ec8 Merge branch 'archlinux-fact' of https://github.com/Schnouki/ansible into Schnouki-archlinux-fact 11 years ago
James Cammarata c6fdb85d88 Merge branch 'issue_3421_apt_pkg_iU' into devel 11 years ago
James Cammarata cee2bddc24 Updated version_added string for the new validate_md5 option 11 years ago
James Cammarata d9cf1dfefb Merge branch 'fetch' of https://github.com/bpennypacker/ansible into bpennypacker-fetch 11 years ago
Michael DeHaan f93ef96a08 Merge pull request #4115 from r-p-e/devel
Add some more OpenBSD facts
11 years ago
Michael DeHaan 00c0770f1b Merge pull request #4075 from sayap/easy_install
Locate easy_install path after (optionally) creating virtualenv.
11 years ago
r-p-e 2f887c6dca Add some more OpenBSD facts
added:
 * ansible_distribution
 * ansible_distribution_release
 * ansible_distribution_version
11 years ago
Ingo Gottwald f7adbf2f29 Bugfix service module: Only change service state when needed 11 years ago
Lorin Hochstein 264d83731a AWS elastic IP: Support for allocating IPs
This commit adds support for allocating new elastic IPs with the
ec2_eip module.
11 years ago
Charles Blonde 00ec91bb36 Update instance_profile_name message 11 years ago
Thomas Jost dfb10e646e Add Archlinux "distribution" fact 11 years ago
James Cammarata 0d408ff295 Use low-level package objects in the apt module to check installed state
Packages which are half-installed are not adequately represented by
the .is_installed field of the apt.package.Package object. By using the
lower-level apt_pkg.Package object (which provides the .current_state
field), we can check for a partially-installed state more accurately.

Fixes #3421
11 years ago
James Cammarata d2bf244eb8 Merge branch 'fix_changed_for_yum_group' of https://github.com/hnakamur/ansible into hnakamur-fix_changed_for_yum_group 11 years ago
James Cammarata 72eaa0570e Allow service module to manage services not ending in .service
Fixes #3417
11 years ago
James Cammarata 5110b2d440 Slight refactorization of the sysctl module
* Added in support for freebsd-style sysctl commands
* Replaced some functionality that was provided by module_common
* Simplified some logic in a couple of places (ie, not checking
  a split with len() but instead limiting the split to 1)

Fixes #3380
11 years ago
James Cammarata 3e9b63febd Compare exploded values in the sysctl module to avoid whitespace errors
Fixes #3931
11 years ago
James Cammarata b2741f451e Fixes to the service module for Ubuntu 12.04 (LTS)
Fixes #3615
Fixes #3572
11 years ago
Brian Coca ef5b735cd5 now w/o python module dependencies
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
James Cammarata 9a3a3e648b Check for systemd ownership of a service even if an init.d script exists
Also slight modification to the error message in the earlier commit that
modified the update-rc.d detection portion of the code

Fixes #3474
11 years ago
Hiroaki Nakamura 4d2c2a262a Add an example for installing a group with the yum module. 11 years ago
Hiroaki Nakamura caa68746ae Fix to getchanged correctly for yum groupinstall. 11 years ago
James Cammarata 7c8aa669cf Minor fix to account for template service names in systemctl 11 years ago
James Cammarata 6c3af4df81 Fix for update-rc.d based systems that also have systemd installed
By default, the service module had assumed that if the system had the
update-rc.d binary, the service was either managed via upstart or standard
sysV init-style scripts. This patch adds a check for systemctl ahead
of the other methods when update-rc.d is detected, and also simplifies
the logic around the detection of systemctl-managed services
11 years ago
Yap Sok Ann 498c2665de Locate easy_install path after (optionally) creating virtualenv.
Without this, the first call to the easy_install module with a new virtualenv
will only create the virtualenv without installing the intended package, since
the `_is_package_installed` check will succeed as running /usr/bin/easy_install
as non-root user will return permission denied error with empty stdout.
11 years ago
James Cammarata 808d9596b2 Fixing typos in is_keyid function definition and usage
Fixes #4068
11 years ago
Charles Blonde ac4e16a99b Add support to Boto library < 2.5.0 11 years ago
James Cammarata b3c0e3e45e Revert "Styling: deprecation"
This reverts commit ecc2b6e742.

Fixes #4069
11 years ago
James Cammarata af139cd56a Merge branch 'file_fixes' of https://github.com/bcoca/ansible into bcoca-file_fixes 11 years ago
Adam Miller 4220c3cc30 added try/catch around .connected call 11 years ago
Charles Blonde 02171711fa Fix wait_for default value to follow the documentation (documentation = 180, default value = 120) 11 years ago
Charles Blonde 9a993992be Fix wait_for conversion between String to int 11 years ago
James Laska 546788a1b6 The required package for selinux is libselinux-python 11 years ago
James Cammarata 7752a56091 Merge branch 'devel' of https://github.com/abompard/ansible into abompard-devel 11 years ago
James Cammarata 71bf9495ef Merge branch 'fix_postgresql_db' of https://github.com/yteraoka/ansible into yteraoka-fix_postgresql_db 11 years ago
James Cammarata b65cefe893 Cleaning up pep8 whitepsace issues in the mysql_replication module 11 years ago
James Cammarata 03e124d91f Merge branch 'bugfix' of https://github.com/jsmartin/ansible into jsmartin-bugfix 11 years ago
James Martin 8c1ed028d3 Fixes for python 2.4 support, better collection of riak version. 11 years ago
James Cammarata 3adb91a4b4 Added version_added to the mysql_variables module doc section 11 years ago
James Cammarata a57ced4b66 Merge branch 'mysql_variables' of https://github.com/banyek/ansible into banyek-mysql_variables 11 years ago
James Cammarata a56c695bc8 Added version_added to the mysql_replication module doc section 11 years ago
James Cammarata ff19cdae39 Merge branch 'mysql_replication' of https://github.com/banyek/ansible into banyek-mysql_replication 11 years ago
James Cammarata 441062f061 Cleaning up whitspace issues in the mysql_user module 11 years ago
John Hamelink 892c594319 Fixed #3767 - mysql_user command fails with dots (and underscores) in
database names.
11 years ago
Brian Coca c2d1607490 Added collection of user's env
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
James Cammarata aa0a31c0fc Merge pull request #3966 from sergevanginderachter/uribug
Fix bug in uri where redirect check fails.
11 years ago
James Cammarata 82e1722fff Merge branch 'aix_wpar_facts' of https://github.com/mplonka/ansible into mplonka-aix_wpar_facts 11 years ago
James Cammarata 84c977258f Merge branch 'rdsfixes' of https://github.com/jamespharaoh/ansible into jamespharaoh-rdsfixes 11 years ago
James Cammarata 4a30bac78b Corrected example for lineinfile due to ': ' on line
Closes #3992
11 years ago