Commit Graph

6615 Commits (022918e5af53a50b304b3bdfe3e3c45a88dc4881)
 

Author SHA1 Message Date
Mark Harrison 0419fb74bb Support check mode with pacman module 11 years ago
Mark Harrison f52a1c8f46 Allow installation of local packages with pacman 11 years ago
Michael Scherer 472654447c Allow to use '*test*' in enablerepo for yum action
Yum commandline permit to use a wildcard to enable and disable
repositories in the --enablerepo switch, permitting to enable
a complete set of repository at once ( like all rpmfusion, all
update-testing, etc ).

However, this doesn't work in yum due to more stringent checks
that verify that a exact match is given for the name of the
repository , see commit 5c26805.

This commit enhance the check by permitting to test more than
1 repository at a time, thus permitting to use wildcards.
11 years ago
Michael Scherer 3f158a4688 image_id is not required to delete a vm from openstack
Since deletion do not check the type of image or anything,
and since that's tedious to keep track of the image_id and
just adding noise to add image_id for nothing, this commit
just relax the requirement.
11 years ago
James Cammarata 5847720746 Fixing a small bug with the new role dependency feature
The block that added the original list of roles was indented too far,
and was only being reached if a role had dependencies. This resulted
in roles without dependencies from being added to the list of roles.

Credit goes to looped for reporting and diagnosing the issue.
11 years ago
Michael DeHaan 5452f0062b Updated changelog 11 years ago
Michael DeHaan 15e2ccd2d9 Moving some role deps stuff around a small amount. 11 years ago
Michael DeHaan 42648e2f0a Merge branch 'role_dependencies' of git://github.com/jimi1283/ansible into jimi1283-role_dependencies 11 years ago
Michael DeHaan 0eb1827936 Some install guide tweaks. 11 years ago
Michael DeHaan f2ec0d5ff2 Update changelog 11 years ago
Michael DeHaan dacd311474 Removing synchronize momentarily as it looks like this won't make 1.3 dates 11 years ago
James Cammarata 5429586985 Adding documentation on role dependencies and variable scope/inheritance 11 years ago
Michael DeHaan 33810c60cd Merge pull request #3867 from bcoca/pingdom_nicer_import_error
now missing dep gives nicer error and docs disambiguate lib
11 years ago
Brian Coca 49d7f22db8 now correctly detects hard links
simplified check_mode
simplified other file attribute handling in link mode
made conditionals clearer

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
James Cammarata d8a7a2d1b2 Adding evaluation of role vars as the dep tree is built
This allows variables to be inserted into the role scope specifically
while also being inserted into the global scope.
11 years ago
Brian Coca 52dd1dd4c5 now missing dep gives nicer error and docs disambiguate as several libs
out there have same name.
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Darragh O'Reilly fb42efc355 quantum_network should not default network provider type to local
It should allow the Quantum service to decide based on its configuration.
11 years ago
James Cammarata e12b99dba6 Small cleanup, no need to call _get_role_path a second time 11 years ago
James Cammarata 9a401e73a6 Adding support for role dependencies.
Fixes #3686

Dependencies are enabled by adding a new directory/file named
meta/main.yml to the role. The format of the dependencies are:

dependencies:
- { role: foo, x: 1, y: 2 }
- { role: bar, x: 3, y: 4 }
...

Dependencies inherit variables as they are seen at the time of the
dependency inclusion. For example, if foo(x=1, y=2) has a dependency
on bar(x=3,z=4), then bar will have variables (x=3,y=2,z=4).

Different roles can have dependencies on the same role, and this
variable inheritence allows for the reuse of generic roles quite easily.
For example:

Role 'car' has the following dependencies:
dependencies:
  - { role: wheel, n: 1 }
  - { role: wheel, n: 2 }
  - { role: wheel, n: 3 }
  - { role: wheel, n: 4 }

Role 'wheel' has the following dependencies:
dependencies:
- { role: tire }
- { role: brake }

The role 'car' is then used as follows:
- { role: car, type: honda }

And tasks/main.yml in each role simply contains the following:
- name: {{ type }} whatever {{ n }}
  command: echo ''

TASK: [honda tire 1]
TASK: [honda brake 1]
TASK: [honda wheel 1]
TASK: [honda tire 2]
TASK: [honda brake 2]
TASK: [honda wheel 2]
TASK: [honda tire 3]
TASK: [honda brake 3]
TASK: [honda wheel 3]
TASK: [honda tire 4]
TASK: [honda brake 4]
TASK: [honda wheel 4]
TASK: [I'm a honda]  <- (this is in roles/car/tasks/main.yml)
11 years ago
James Cammarata ad595eadea Enable error_on_undefined_vars by default 11 years ago
Jesse Keating 2b96c347dc Exit with status 3 if no failures but unreachable.
Provide hints to playbook callers that a playbook execution had
unreachable vs failures. 2 == failures, 3 == no failures, but
unreachable hosts. 0 continues to be all good.
11 years ago
Luca Berruti eee278e02b fix 11 years ago
Luca Berruti 5048218ab5 Fix: with_items and complex_args 11 years ago
Matt Hite e2278fd9e8 Automatically prepend partition if non-fully qualified monitors are passed 11 years ago
Matt Hite b26a88095f Documentation fixes and enhancements 11 years ago
James Cammarata 10a0f03cdc Cleaning up of apt_repository module and removing wget parts 11 years ago
Michael Vogt de404eac06 use either pycurl or wget to download from launchpad, also improve error message if neither is installed 11 years ago
Michael Vogt 5e56d42ed1 use pycurl instead of urllib2 when talking to launchpad to actually get SSL cert verification, see https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/915210 or CVE-2011-4407 for a previous similar issue in software-properties 11 years ago
James Cammarata c4852f6954 Cleaning up some pep8 whitespace issues in mongodb_user 11 years ago
lwade eaac295fb2 Basic module to tag resources in EC2. 11 years ago
James Cammarata 0958673574 Reverting version_added field in the apt_repository module 11 years ago
Alexander Saltanov ded947008a Replacement for apt_repository.
1. Debian Squeeze is supported out of box now.
2. Repository type "deb" or "deb-src" should be explicitly specified.
3. If a source had beed added it must be possible to remove it.
4. PPA can be only used against Ubuntu hosts.
11 years ago
asmajlovic 8f45b77d30 Comparison data type mismatch corrected 11 years ago
James Cammarata 0c98c764e3 Fixing up a small issue with the mongodb_user docs 11 years ago
Ben Podoll 94e60563b4 adding fixes to support older versions of mongo (and pymongo) as well as new versions 11 years ago
Ben Podoll bcef62cd39 adding comment about required version of mongodb to use the roles param 11 years ago
Serge van Ginderachter 173586b871 Ensure plugin_loader.all() only loads one instance
by ensuring all basedirs, plugin paths and extra
paths are handled as absolute paths and are checked
to not add any doubles.

This fixes the corner case where e.g. the user has
an additional plugin path configured to a dir
relative to his playbooks or inventory location,
which also matches the  _plugin subdir relative to
one of the basedirs in the play.

For most plugins this doesn't show as an obvious issue
except for callback_plugins, which might fire more
than once. Other plugins (inventory and template
plugins) might unnecessarily be ran twice.

e.g. ansible.cfg has
callback_plugins   = ./plays/callback_plugins
and plays/ contains a playbook file:
.
├── ansible.cfg
├── inventory
└── plays
    ├── callback_plugins
    │   └── timestamp.py
    └── site.yml

modified:   lib/ansible/utils/plugins.py
11 years ago
Ben Podoll d330228d11 adding the ability to specify roles when adding/modifying a mongo user 11 years ago
Ben Podoll 3e32654f9d fixing problem causing docs not to build 11 years ago
Ben Podoll 13bef3579f adding a little more info to the 'path' param so it's clear there are aliases (which are used in other examples) to avoid confusion 11 years ago
James Cammarata 6feb4e3837 Fail apt package install when nothing is matched by the fnmatch pattern
Related to PR #3823
11 years ago
Michael Vogt 5c39c659e5 add support for fnmatch() style apt filenames
You can write a apt action like "- apt: pkg=apt*" with this package.
11 years ago
Michael DeHaan 11fe4566f8 Document facts.d 11 years ago
Mark Mandel 6e3ec9ccc0 expand user home path in stat. 11 years ago
Michael DeHaan 9b09ff4a65 Merge pull request #3821 from danxshap/django_venv_expand_user
Use home path expansion for virtualenv param in django_manage module
11 years ago
danxshap 4db4607ee5 use home path expansion for virtualenv param in django_manage module 11 years ago
Michael DeHaan 4e5feb6322 Merge pull request #3763 from j2sol/rax-updates
Update rax to sync with rax_clb_nodes
11 years ago
Michael DeHaan eb54c222de update changelog 11 years ago
Michael DeHaan 06cb24940d Merge pull request #3797 from mscherer/openshift_github
Add openshift inventory plugin
11 years ago
Michael DeHaan bc02e20503 Merge branch 'rsynctake2' into devel
Conflicts:
	CHANGELOG.md
11 years ago