Commit graph

22143 commits

Author SHA1 Message Date
Michael DeHaan
157d21b1c3 Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file. 2012-05-06 18:01:11 -04:00
Michael DeHaan
2d75199d83 Fix doc error about nested groups 2012-05-06 17:16:42 -04:00
Michael DeHaan
e485aec355 Rebuild 2012-05-06 17:14:21 -04:00
Michael DeHaan
f0d9f9652c Document inventory format upgrades in 0.4 2012-05-06 17:13:57 -04:00
Michael DeHaan
1a00e2635e Further work on making the YAML inventory parser use the new inventory objects. 2012-05-06 17:03:17 -04:00
Michael DeHaan
7f5c1b8f02 Temporary note about YAML support in 0.4, in case anyone tries it, coming back very very soon! 2012-05-06 15:05:42 -04:00
Michael DeHaan
a8f0b5fd06 Fix playbooks such that they work with external inventory scripts. We really want to find out why the 'all'
group isn't available, but group vars don't make sense for external inventory anyway.
2012-05-06 15:00:17 -04:00
Michael DeHaan
256377166a Reinstate external inventory script support this time using the new more OO-ey inventory system.
Next up: YAML format.
2012-05-06 14:47:05 -04:00
Michael DeHaan
5730a29814 missing files 2012-05-05 16:37:28 -04:00
Michael DeHaan
0669ce858a Refactored inventory to make it object oriented, need to make YAML format and executable script
format compatible with this still, and add some tests for INI-style groups of groups
and variables.
2012-05-05 16:31:03 -04:00
Michael DeHaan
39e791a1d3 Log last execution of ansible-pull to /var/log/ansible-pull.log
TODO: logrotate script and append to log instead.
2012-05-05 12:18:04 -04:00
Michael DeHaan
99a7522b03 Update devel branch version in RPM spec. 2012-05-05 12:16:19 -04:00
Seth Vidal
81418afbbb fix up service module to make it start processes that are listed to be
running and to report errors from starting them
2012-05-04 01:20:51 -04:00
Michael DeHaan
eadc78549f Rebuild 2012-05-02 00:55:54 -04:00
Michael DeHaan
0dcbffe784 Merge branch 'minor_edits' of https://github.com/johncallender/ansible.github.com
Conflicts:
	rst/modules.rst
2012-05-02 00:55:19 -04:00
Michael DeHaan
2f04126ea8 Merge pull request #94 from wgjohnson/master
Change the 'name' value for Playbook's variable example
2012-05-03 19:12:02 -07:00
Wes Johnson
77f33a70ba remove old dest entries 2012-05-03 18:01:11 -07:00
Wes Johnson
b06c4a1618 rewrite file's 'dest' argument
Previously, there were two entries for 'dest'. I've combined them in a
way that makes sense to me.

This will be superfluous when 'path' is made. Ideally, I'd like to see
'path' have the bulk of the definition, and 'dest' to be an alias to
'path'.
2012-05-03 17:47:44 -07:00
Wes Johnson
8f165e1d3c Revert "ignore eclipse's .project file"
This reverts commit 21550f6586.
2012-05-03 17:04:47 -07:00
Wes Johnson
21550f6586 ignore eclipse's .project file 2012-05-03 16:55:17 -07:00
Wes Johnson
dfd671d60e change 'name' to a better description for variable example.
'make a directory' is a bad description, since the command "template …"
doesn't actually create a directory.
2012-05-03 16:54:41 -07:00
Michael DeHaan
5954a7d8cc Merge pull request #88 from sfromm/selinux
Update file documentation for se* options
2012-05-03 15:47:41 -07:00
Michael DeHaan
449c60153c Merge pull request #90 from pas256/patch-1
Add UID to user module documentation
2012-05-03 15:46:59 -07:00
Peter Sankauskas
01576f9447 Add UID to user module documentation 2012-05-03 10:47:27 -07:00
Stephen Fromm
2059c5f657 Update file documentation for se* options
Describes how you can use '_default' to seuser, serole, setype, and
selevel to use the default context from the policy, if available.
2012-05-02 12:03:56 -07:00
John Callender
26c141e96e Issue #84: Doc tweaks for modules, moduledev, and playbooks 2012-05-02 06:53:29 -07:00
John Callender
b247da54f1 Issue #82: Minor edits to doc text and formatting 2012-05-01 22:35:02 -07:00
Michael DeHaan
1c5f5acadf Rebuild 2012-05-02 00:34:56 -04:00
Michael DeHaan
0c2dd7b057 Clarify include section 2012-05-02 00:34:37 -04:00
Michael DeHaan
b300aac551 Include files are no longer to be considered Jinja2 templates, but individual THINGS
in included files can still be templated just like top level playbooks.  Resolves
some issues about statements being evaluated before facts were available
2012-05-02 00:28:19 -04:00
Michael DeHaan
16c4802476 Docs rebuild 2012-05-02 00:24:01 -04:00
Michael DeHaan
139a1324e9 Allude to ansible-pull, more docs coming later. 2012-05-02 00:23:47 -04:00
Michael DeHaan
adca320490 Change defaults so people have to make conscious decisions about pull setup. 2012-05-01 23:25:19 -04:00
Michael DeHaan
a33320d03d Add some comments to ansible-pull and the example playbook 2012-05-01 23:22:23 -04:00
Michael DeHaan
e54eeb7629 Merge branch 'local' of https://github.com/sfromm/ansible into devel 2012-05-01 23:06:50 -04:00
Stephen Fromm
84c9caa805 Simplify ansible-pull to just invoke ansible and ansible-playbook
This eliminates the creation of runner and playbook instances and just
invokes the processes ansible and ansible-playbook.
2012-05-02 09:51:19 -07:00
Stephen Fromm
23ff967f38 Copy inventory file to client 2012-05-02 09:51:19 -07:00
Stephen Fromm
672794f586 Add ansible-pull
A first stab at a pull-based model for ansible.  This does two things:
    1. Invoke the git module via Runner to set up a git repository on the
       localhost.  It sets up Runner to use transport='local' and forces
       the inventory to just 'localhost'.
    2. Run any playbooks provided.  By default, this wants to run the
       playbook local.yml.  This also sets transport='local' and sets
       the host_list to a list: localhost, fqdn, and hostname.
The reason for setting the host_list and not using override_hosts is
because there may be plays in the playbook that are not meant for a
specific host.  That is, if the git repository is for the entire site
and not host-specific, you don't want to override hosts and apply all
plays to any given host.  This has the downside of potentially running a
play three times if the play is defined for 'hosts: all'.
2012-05-02 09:51:19 -07:00
Stephen Fromm
3803b27f6c Add playbook and template to set up ansible-pull
Playbook will install ansible, create directory where git checkout goes,
and set up a cron job to run ansible-pull.
2012-05-02 09:51:19 -07:00
Michael DeHaan
df61a65344 Merge pull request #294 from jhoekx/inventory-hostname
Define 'inventory_hostname' variable for hosts.
2012-05-02 04:37:45 -07:00
Michael DeHaan
fe90650311 Merge pull request #295 from jhoekx/user-existing-groups
Group order in user module should not matter.
2012-05-02 04:36:47 -07:00
Jeroen Hoekx
2c8fbdbd20 Group order in user module should not matter.
Groups are not necessarily returned in the defined order, especially when the user already existed before ansible started managing the system.
2012-05-02 11:54:27 +02:00
Jeroen Hoekx
03541baba7 Define 'inventory_hostname' variable for hosts. 2012-05-02 09:56:58 +02:00
Michael DeHaan
28cf753756 changelog update 2012-05-01 23:05:40 -04:00
Michael DeHaan
5b8ee8488d update development changelog 2012-05-01 23:03:00 -04:00
Michael DeHaan
02efcdced6 Merge branch 'devel' of https://github.com/skvidal/ansible into skvidal-devel 2012-05-01 22:58:47 -04:00
Seth Vidal
38ea61054f if a playbook has no vars - still include the global vars 2012-05-03 15:52:02 -04:00
Seth Vidal
dc35dd99c0 inventory group 'all' variables are global variables
applied to every host and available all over
they are read in so that ones defined first can be used to define
the later ones.
2012-05-02 18:30:58 -04:00
Rafal Lewczuk
3de61fb180 Fix: file module does not remove dangling symlinks 2012-05-01 22:56:37 -04:00
Rafal Lewczuk
06e99ee75e Trivial fix: make PyDev happy (imports). 2012-05-01 22:56:21 -04:00