Commit Graph

1975 Commits (537166b1ea1e9fdfe785e75cf05fdeeae0d89397)
 

Author SHA1 Message Date
James Laska ab745fa0b6 Correctly load up2date configuration
Previously, a configuration file name of None was being passed into
up2dateInitConfig().  This resulted in a correct configuration import,
but failed to properly save the configuration back to disk in the event
a different serverURL was supplied.  This change removes support for
customizing the up2date filename entirely, and relies on up2date to
choose the default config filename.
12 years ago
Lorin Hochstein 12c189231c Doc: rabbitmq_user pw change and force
Document that need to add force=yes to change password of
existing user
12 years ago
martin f. krafft 3b7b061b07 Expand usage of Python 2.6 if statement
Syntax like "'foo' if bar else 'baz'" is not supported by all Python
versions targetted by Ansible. Hence we break it up.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft 22b30b9281 Let update-rc.d set changed flag properly
When update-rc.d is used to enable/disable service, the changed flag was
always true (see #2189). This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Benjamin Schwarze 7cc00f9a03 fix wrong argument_spec in digital_ocean module
as 'required' and 'default' are mutually exclusive removed 'required' in preference of 'default'
12 years ago
John Jarvis eb97624de3 typo 12 years ago
John Jarvis abffe2e9a6 using instance_ids and state=absent for removing instances 12 years ago
Vincent Viallet e7f17e7989 Improve error messages on missing required variables. 12 years ago
Vincent Viallet c3846dd33b Consistent wait_timeout between doc and module 12 years ago
Vincent Viallet a04af8e461 Fix last bugs, complete all tests. 12 years ago
Vincent Viallet fa0595e72b Update documentation 12 years ago
Vincent Viallet 3efba3f529 Add linode cloud provider. 12 years ago
John Jarvis 0cc09a47e5 Adds termination support to the ec2 module
Pass in the `instances` output of the ec2 module
to terminate a list of instances that were previously provisioned.

Useful for automated testing.
12 years ago
Stephen Fromm ddee9187f0 Add submodule support to git module
This does two things:
* add --recursive option to git clone command in clone().  This will
  initialize all submodules when cloning a remote repository.
* Add submodule_update() and call that from fetch().  submodule_update()
  calls two git commands iff the file .gitmodules exists in the
  repository:
  * 'git submodule sync' - synchronizes the submodules' remote URL
    configuration setting to the value in .gitmodules.
  * 'git submodule update --init --recursive' - initialize and update
    registered submodules to the commit specified in the index of the
    containing repository.

If a repository was cloned without --recursive, submodule_update() will
ensure that the submodules are initialized and updated.
12 years ago
Mike Grozak da2fb08d47 Fixed typo 12 years ago
Mike Grozak 58618eef8d Updated documentaion for the file module 12 years ago
Mike Grozak ee813d3bd7 added possibility to force symlinks to none-existent destination (which might appear later) 12 years ago
Mike Grozak 4716b779f6 added force parameter to symlink invocation, in order to force the creation in case of already existing destination with the type of 'file' 12 years ago
Michael DeHaan 0ed5d18d60 Fixup versions of newly added modules. 12 years ago
Michael DeHaan 997bf64f3f Fix up some module docs formatting errors. 12 years ago
Michael DeHaan e6bc5ce124 YAML fix 12 years ago
Michael DeHaan 52ef5056d9 Merge pull request #3273 from jlund/ansiblecc-to-ansibleworkscom
Update all ansible.cc references in the documentation to point to ansibleworks.com
12 years ago
Michael DeHaan 531e290033 Merge branch 'PR_add_chdir_to_pip' of git://github.com/y-p/ansible into devel
Conflicts:
	library/packaging/pip
12 years ago
Michael DeHaan 78bc5fd729 Various code reformatting 12 years ago
Michael DeHaan 7b8101eebf Merge branch 'rds' of git://github.com/bpennypacker/ansible into rds 12 years ago
Michael DeHaan 2b5a7c69a9 Quote some strings in the docs 12 years ago
Michael DeHaan b5d25b9843 Merge pull request #3171 from mynameisdaniil/devel
Adds 'groups' field into ec2 plugin
12 years ago
Michael DeHaan 28157b5a7a Merge pull request #3226 from jpmens/ini_file2
ini_file: add support for lists of options/values
12 years ago
Michael DeHaan f986665c5d Merge branch 'ocean' into devel
Conflicts:
	library/cloud/digital_ocean
12 years ago
Michael DeHaan a85c97edfb Reformat examples 12 years ago
Vincent Viallet a8e6e7c312 Rename digital ocean module to digital_ocean, add documentation. 12 years ago
Vincent Viallet dc5a34efbe Ensure an existing ssh-key returns useful information (id + name) instead of a string; this way it can be used to register a variable to use in a later task. 12 years ago
Vincent Viallet 0d649ebe26 Add digital-ocean cloud support. 12 years ago
Michael DeHaan 1bbbf445b3 Merge branch 'digitalocean' of git://github.com/devo-ps/ansible into ocean 12 years ago
Michael DeHaan 71e6f1ee67 Merge branch 'purge' into devel 12 years ago
martin f. krafft 71f0cdc334 Fix purging of packages
A small error in the reuse of a variable caused packages to never get
purged. This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Michael DeHaan fe871ecfd4 Merge branch 'fix-apt-purge' of git://github.com/madduck/ansible into purge 12 years ago
Joshua Lund 166ea0e175 * Updated all ansible.cc references in the documentation to point
to ansibleworks.com
* Fixed a few misspelled words
12 years ago
Michael DeHaan 204fb803c6 Merge pull request #3259 from dirtyharrycallahan/b_setup
bug fix: modify get_device_facts to handle servers with multiple pci domains
12 years ago
Michael DeHaan 79a9629108 Revert "now modules can implement with_items list globbing w/o updating"
This reverts commit 4942a06bc2.

Conflicts:

	lib/ansible/runner/__init__.py
12 years ago
Daniil 9d79bfa4ee Allow 'ec2.group' field to handle lists of groups 12 years ago
Michael DeHaan 909395f81a Merge pull request #3262 from j2sol/add-host-name
make name the parameter, with hostname as alias
12 years ago
Michael DeHaan e401602837 Merge pull request #3260 from lorin/migrate-noinput
django_manage: Pass --noinput to migrate
12 years ago
Michael DeHaan 9f97a1b208 Merge pull request #3264 from arturaz/devel
datadog_event module requires urllib2, not httplib2.
12 years ago
Bruce Pennypacker 85c8c87361 Set master_password for modify command 12 years ago
martin f. krafft a52f531c5b Always assume purged for older python-apt
Older python-apt modules don't export Package.installed_files and there
seems to be no other way to figure out if a package is
removed-but-not-purged, so we just always assume it's purged.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Arturas Slajus ce8c3a5685 datadog_event module requires urllib2, not httplib2. 12 years ago
martin f. krafft 3d1db80fe0 Introduce non-purged package status
A package may be removed but not purged with APT. The only way to
identify this state is by looking at the list of installed files of
a package. Even if the package has no files installed, this list will be
non-empty until the package is removed:

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None [u'']

  # dpkg --purge ruby1.8
  (Reading database ... 27904 files and directories currently installed.)
  Removing ruby1.8 ...
  Purging configuration files for ruby1.8 ...

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None []

See http://bugs.debian.org/712749 too.

If a package is not marked installed but it still 'has_files', then it
should be processed if the request is to purge it.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
martin f. krafft 1bf4438e60 Fix purging of packages
A small error in the reuse of a variable caused packages to never get
purged. This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
12 years ago
Jesse Keating c050f911af make name the parameter, with hostname as alias
name is used throughout Ansible, it's the "standard". This change
applies that standard to the add_host routine and updates the docs to
reflect that. Related to https://github.com/ansible/ansible/pull/3254
12 years ago