Commit Graph

2072 Commits (be35a035b3f4cd7d4fca87bc0d0d42f5d2483459)
 

Author SHA1 Message Date
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>
11 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'
11 years ago
John Jarvis eb97624de3 typo 11 years ago
John Jarvis abffe2e9a6 using instance_ids and state=absent for removing instances 11 years ago
Vincent Viallet e7f17e7989 Improve error messages on missing required variables. 11 years ago
Vincent Viallet c3846dd33b Consistent wait_timeout between doc and module 11 years ago
Vincent Viallet a04af8e461 Fix last bugs, complete all tests. 11 years ago
Vincent Viallet fa0595e72b Update documentation 11 years ago
Vincent Viallet 3efba3f529 Add linode cloud provider. 11 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.
11 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.
11 years ago
Mike Grozak da2fb08d47 Fixed typo 11 years ago
Mike Grozak 58618eef8d Updated documentaion for the file module 11 years ago
Mike Grozak ee813d3bd7 added possibility to force symlinks to none-existent destination (which might appear later) 11 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' 11 years ago
Michael DeHaan 0ed5d18d60 Fixup versions of newly added modules. 11 years ago
Michael DeHaan 997bf64f3f Fix up some module docs formatting errors. 11 years ago
Michael DeHaan e6bc5ce124 YAML fix 11 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
11 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
11 years ago
Michael DeHaan 78bc5fd729 Various code reformatting 11 years ago
Michael DeHaan 7b8101eebf Merge branch 'rds' of git://github.com/bpennypacker/ansible into rds 11 years ago
Michael DeHaan 2b5a7c69a9 Quote some strings in the docs 11 years ago
Michael DeHaan b5d25b9843 Merge pull request #3171 from mynameisdaniil/devel
Adds 'groups' field into ec2 plugin
11 years ago
Michael DeHaan 28157b5a7a Merge pull request #3226 from jpmens/ini_file2
ini_file: add support for lists of options/values
11 years ago
Michael DeHaan f986665c5d Merge branch 'ocean' into devel
Conflicts:
	library/cloud/digital_ocean
11 years ago
Michael DeHaan a85c97edfb Reformat examples 11 years ago
Vincent Viallet a8e6e7c312 Rename digital ocean module to digital_ocean, add documentation. 11 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. 11 years ago
Vincent Viallet 0d649ebe26 Add digital-ocean cloud support. 11 years ago
Michael DeHaan 1bbbf445b3 Merge branch 'digitalocean' of git://github.com/devo-ps/ansible into ocean 11 years ago
Michael DeHaan 71e6f1ee67 Merge branch 'purge' into devel 11 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>
11 years ago
Michael DeHaan fe871ecfd4 Merge branch 'fix-apt-purge' of git://github.com/madduck/ansible into purge 11 years ago
Joshua Lund 166ea0e175 * Updated all ansible.cc references in the documentation to point
to ansibleworks.com
* Fixed a few misspelled words
11 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
11 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
11 years ago
Daniil 9d79bfa4ee Allow 'ec2.group' field to handle lists of groups 11 years ago
Michael DeHaan 909395f81a Merge pull request #3262 from j2sol/add-host-name
make name the parameter, with hostname as alias
11 years ago
Michael DeHaan e401602837 Merge pull request #3260 from lorin/migrate-noinput
django_manage: Pass --noinput to migrate
11 years ago
Michael DeHaan 9f97a1b208 Merge pull request #3264 from arturaz/devel
datadog_event module requires urllib2, not httplib2.
11 years ago
Bruce Pennypacker 85c8c87361 Set master_password for modify command 11 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>
11 years ago
Arturas Slajus ce8c3a5685 datadog_event module requires urllib2, not httplib2. 11 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>
11 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>
11 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
11 years ago
Lorin Hochstein 4f841e6f62 django_manage: Pass --noinput to migrate
The django 'migrate' command should receive the --noinput command,
otherwise it can block waiting for user input.
11 years ago
Patrick Callahan d76151d47b bug fix: modify get_device_facts to handle servers with multiple pci domains
On machines with multiple pci domains get_device_facts would fail to
find a matching pci device causing setup to fail. Also on some platforms
there is additional information between the pci information and 'host'.
Modified get_device_facts to call lspci with the -D option and modified
the regex to account for the pci domain and to be more selective.
11 years ago
Michael DeHaan 0596f474cf Merge pull request #3147 from toshywoshy/setup_mtab_without_bind
changed get_mount_facts to ignore mount types 'none'
11 years ago