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
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
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
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
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
Michael DeHaan
cde87f2f55
Add missing version_added to docs.
11 years ago
Michael DeHaan
70c42eeb64
Merge pull request #3784 from drewblas/devel
...
Added git disclaimer about dealing with ssh host checking
11 years ago
Michael DeHaan
6af77226fa
Merge pull request #3818 from resmo/feature/docsite-update
...
update docsite about new variable inventory_file
11 years ago
Michael DeHaan
17aa0d12de
Merge pull request #3814 from ftao/inventory_dir_abs
...
fix inventory.basedir is not absolute path when hostfile is startswith "./"
11 years ago
Michael DeHaan
1336bbd2f2
Merge pull request #3815 from amenonsen/typos
...
Fix some typos discovered during casual reading
11 years ago
Michael DeHaan
5a063fd55a
Merge pull request #3816 from DanLovesProofs/fix-docs
...
Brings postgresql_db examples in line with documentation.
11 years ago
Abhijit Menon-Sen
1a90d01ba9
Fix some typos discovered during casual reading
11 years ago
René Moser
28267de3fe
update docsite about new variable inventory_file
11 years ago
Dan Robinson
bda2ce6ffd
Brings postgresql_db examples in line with documentation.
...
As of now, the documentation lists a parameter as "name",
whereas the examples use a parameter called "db". This brings
them in line.
11 years ago
ftao
51a180b150
fix inventory.basedir is not absolute path when hostfile is startswith "./"
11 years ago
Michael DeHaan
db8d9a6ea7
Update changelog
11 years ago
Michael DeHaan
f8c97d6e79
Style/docs cleanup, and also improve an error message.
11 years ago
Michael DeHaan
aeb8649da5
Merge branch 'ansible-rsync-take2' of git://github.com/tima/ansible into rsynctake2
11 years ago
Michael DeHaan
4d1f447908
Merge pull request #3650 from bcoca/forking_optimizations
...
forking least possible
11 years ago