Stephen Fromm
1144a21668
Apply logging of arguments to modules (issue #122 )
...
The ohai and facter modules use /usr/bin/logger to log the fact that
they have been invoked. I added 'import os' to the ping module
so that it could have the same syslog statements as the other modules.
I separated the condensed:
shlex.split(open(argfile, 'r').read())
into two separate statements similar to the other modules.
2012-05-09 15:19:20 -07:00
Matthew Williams
b89d8db7ce
removed debug code
2012-05-08 16:05:43 -07:00
Matthew Williams
efde61e537
allow unicode (utf8) characters in jinja templates
2012-05-08 16:03:51 -07:00
felix
5f8e2a3651
removed unecessary branch addition from switchver
2012-05-08 16:24:29 -04:00
felix
325b397ac0
added in support for branches in git module (now takes optional "branch")
2012-05-08 16:20:08 -04:00
Michael DeHaan
dd5f535925
Be able to use --extra-vars to set the hosts variable
2012-05-07 23:37:09 -04:00
Michael DeHaan
5e84a05db9
override hosts gone
2012-05-07 23:18:06 -04:00
Michael DeHaan
0abca68998
Since host variables are becoming important, it did not make sense to sustain --override-hosts, with the ability
...
to create hosts that didn't have inventory information, but also existed, in various groups.
2012-05-07 23:16:20 -04:00
Michael DeHaan
b2485850bf
Revert "fix indentation"
...
This reverts commit 42b55a07cd
.
2012-05-07 21:46:45 -04:00
Michael DeHaan
893bf90627
Revert "fix the get_hosts() error in get_groups returning a dict not a list of group objects"
...
This reverts commit f41fb90d78
.
2012-05-07 21:46:36 -04:00
Michael DeHaan
a54d9f66e6
Merge pull request #329 from skvidal/devel
...
inventory and indentation
2012-05-08 03:54:41 -07:00
Michael DeHaan
6c0511a2d0
Merge pull request #330 from jhoekx/yaml-inventory-list
...
Yaml inventory variable list
2012-05-08 03:53:46 -07:00
Jeroen Hoekx
1d28212f86
Inventory: undefined group -> ungrouped.
...
Also change test name collision.
2012-05-08 09:44:59 +02:00
Jeroen Hoekx
3b40158961
Inventory: support list of vars in host.
2012-05-08 09:44:29 +02:00
Michael DeHaan
b5f6558872
Merge pull request #327 from mrproper/devel
...
Devel - fix issue #315
2012-05-07 18:18:00 -07:00
Brendan Beveridge
f09ec78fbd
Merge remote-tracking branch 'ansible-origin/devel' into devel
...
Conflicts:
library/user
2012-05-08 10:33:18 +10:00
Michael DeHaan
f2e8836c94
Merge pull request #324 from lcosmin/devel
...
Prevent facter stderr messages from confusing ansible
2012-05-07 17:07:49 -07:00
Michael DeHaan
a589ee4d15
Reverting to apply correct attribution.
2012-05-07 20:07:12 -04:00
Michael DeHaan
de00dacff9
Don't let facter spew things to stderr and confuse Ansible, which now blends stdout/stderr due to paramiko
...
pty usage.
(This commit from lcosmin, manually applied due to github crossup on my part -- MPD)
2012-05-07 20:05:10 -04:00
Michael DeHaan
95069b7ee3
Merge pull request #326 from pas256/patch-2
...
Fixing append when user already in desired groups
2012-05-07 17:01:50 -07:00
John Kleint
db65cf5a90
Fix non-sudo execution, add --sudo-user to ansible-playbook.
2012-05-07 19:58:16 -04:00
Brendan Beveridge
5d63c6b204
remove now useless append check in user_mod
2012-05-08 09:49:37 +10:00
Brendan Beveridge
96c0ee0efc
Fixes issue #315
...
This adds some logic when usings groups possibly in combination with append
if just specifying groups and the current groups do not match the list
set groups
if specifying groups with append and any group thats not in the current groups
set groups with -a
2012-05-08 09:43:51 +10:00
Seth Vidal
42b55a07cd
fix indentation
2012-05-07 18:10:52 -04:00
Seth Vidal
f41fb90d78
fix the get_hosts() error in get_groups returning a dict not a list of group objects
2012-05-07 18:09:57 -04:00
Peter Sankauskas
6a4e8d7f4c
Code was adding '-a' even when the user was already in the desired groups causing usermod to fail since there was no '-G' option. This is duplicate code (3 lines) from the 'group' section, so could be improved, but it works.
2012-05-07 11:35:45 -07:00
Cosmin Luță
472395bd77
Prevent facter stderr messages from confusing ansible
2012-05-07 18:08:50 +03:00
Michael DeHaan
d6e56dee87
Update development changelog.
2012-05-06 18:34:07 -04:00
Michael DeHaan
66ba6b023c
Update manpage to mention -U (--sudo-user).
2012-05-06 18:32:43 -04:00
Michael DeHaan
4694c3fbba
Fixup the previous sudo_user support patch to work with playbooks.
2012-05-06 18:24:45 -04:00
Jim Richardson
a1ed9fc546
sudo -u works now. Needs testing and maybe a bit of cleanup
2012-05-06 18:24:45 -04:00
Jim Richardson
abcfdbeeaf
first bit of getting sudo -u functionality
2012-05-06 18:24:45 -04:00
Jim Richardson
4d623d0356
sudo -u works now. Needs testing and maybe a bit of cleanup
2012-05-06 18:24:44 -04:00
Jim Richardson
98dda72be1
first bit of getting sudo -u functionality
2012-05-06 18:24:44 -04:00
Michael DeHaan
cbbd9d8f3a
Merge pull request #316 from skvidal/devel
...
fix up service module to make it start processes that are listed to be
2012-05-06 16:43:20 -07:00
Michael DeHaan
85a04a2517
Add missing file
2012-05-06 18:02:53 -04:00
Michael DeHaan
a7b9bf958d
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
46c661b3e3
Further work on making the YAML inventory parser use the new inventory objects.
2012-05-06 17:03:17 -04:00
Michael DeHaan
c804752835
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
3fb2d38514
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
d9bec842ef
missing files
2012-05-05 16:37:28 -04:00
Michael DeHaan
4011d15faa
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
958832fb1f
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
23c6a0985c
Update devel branch version in RPM spec.
2012-05-05 12:16:19 -04:00
Seth Vidal
2c416b8f06
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
81b8190fc5
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
aec8995fd9
Change defaults so people have to make conscious decisions about pull setup.
2012-05-01 23:25:19 -04:00
Michael DeHaan
00ea71d8de
Add some comments to ansible-pull and the example playbook
2012-05-01 23:22:23 -04:00
Michael DeHaan
6be85f4fc5
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