Commit graph

4042 commits

Author SHA1 Message Date
Michael DeHaan
a01525bd30 Merge branch 'aix-fixes' of git://github.com/dagwieers/ansible into devel
Conflicts:
	library/setup

Tweak formatting.
2013-02-16 13:35:37 -05:00
Michael DeHaan
df63f60b63 Tweak doc examples 2013-02-16 13:32:49 -05:00
Romeo Theriault
1232e498c4 fixed the documentation so it build properly 2013-02-16 13:32:48 -05:00
Romeo Theriault
2ecf3f9b94 moved module checking below module initialization 2013-02-16 13:32:48 -05:00
Romeo Theriault
27145fab7f uri module 2013-02-16 13:32:48 -05:00
James Martin
7129a9e355 Using "OtherLinux" in module_commons, cleander detection in setup. 2013-02-16 13:32:48 -05:00
James Martin
5646bc278b Support for amazon linux distribution facts. 2013-02-16 13:32:48 -05:00
Michel Blanc
0cd0a7fda3 Fixes jina typos
Moved *jina* to *jinja2*
2013-02-16 13:32:48 -05:00
Michel Blanc
1c22f2146e Adds configurable jinja2 extension loading
Jinja extensions adds features to the jinja2 templating engine. This
patch allows module loading for the templating engine vian an
ansible.cfg configuration key (jinja_extensions).
The default behaviour doesn't change (no module loading).
Requested modules can be added coma separated in ansible.cfg

Adds whitespace handling in jinja_extension config

Added whitespace handling in jinja_extension configuration directive, so
things stay safe if user adds spaces around comas in the directives
list.

Adds config example for jinja_extensions

Added config example with multiple extentions for jinja_extensions
2013-02-16 13:32:48 -05:00
Yves Dorfsman
83ce1b2dc5 Modified to follow Daniel Hokka Zakrisson's recommendations. 2013-02-16 13:32:48 -05:00
Yves Dorfsman
4de1b4e8a9 Added an insertbefore option. 2013-02-16 13:32:48 -05:00
Blair Zajac
fa8e653011 Simplify and correct comparisons with None. 2013-02-16 13:32:48 -05:00
Michael DeHaan
2172201795 Merge pull request #2091 from davixx/sysctl2004
Solving bug : sysctl check_after failing on multi-value sysctl parameters
2013-02-16 10:19:16 -08:00
Michael DeHaan
21693b2d22 Merge pull request #2079 from huberteff/devel
Add NetBSD support for 'service' module, and add an example to 'lineinfile'
2013-02-16 10:08:25 -08:00
Michael DeHaan
7827db6996 Merge pull request #2078 from huberteff/e2158b661d250c04609e7faff4d8e67df9cb37e4
Add example for adding to sudoers file
2013-02-16 10:05:08 -08:00
Michael DeHaan
9cb710b2f7 Merge pull request #2073 from nigelm/hosts_comment_fix
Allow end of line comments in inventory file - fixes #2072
2013-02-16 09:57:20 -08:00
Michael DeHaan
85c87e507e Slight docs tweak about thirsty mode on the copy module 2013-02-16 12:36:16 -05:00
Michael DeHaan
b5f90ef054 Merge branch 'thirsty_copy' of git://github.com/bcoca/ansible into testing 2013-02-16 12:35:16 -05:00
Michael DeHaan
11c730c4ca Merge branch 'devel' of git://github.com/trendels/ansible into testing 2013-02-16 12:32:18 -05:00
Johan Wirén
75b52d745e Updated documentation. Works with ansible-doc 2013-02-16 15:11:07 +01:00
Stoned Elipot
438c77f762 pasto and core connection plugins reference fix 2013-02-16 13:40:04 +01:00
davixx
8bf0c8dc5c Solving bug https://github.com/ansible/ansible/issues/2004
Now handle positive integer value in virtual files if they are separated
by group of space characters where the count is unpredictable.
Thanks to romeotheriault for filing this bug.
2013-02-15 19:14:01 +01:00
Michael DeHaan
36f613f51e Merge pull request #2088 from pas256/devel
Documentation fix for apt module: install-recommends
2013-02-14 19:37:54 -08:00
Peter Sankauskas
6fd0316fa6 The default for install-recommends is actually Yes, not No, as is
visible on line 121
2013-02-14 15:27:20 -08:00
martin f. krafft
ab39909260 Initialise PTY from calling environment
If we need to acquire a PTY for sudo's use, then it should really
inherit the capabilities of the calling environment. This is what
OpenSSH does, and so it makes sense to copy this behaviour for the
paramiko connection type.

Closes: #2065
Signed-off-by: martin f. krafft <madduck@madduck.net>
2013-02-15 10:23:34 +13:00
martin f. krafft
1cf43e9afe Only allocate a PTY when sudo is used
Postpone the paramiko.Channel.get_pty until we know sudo is used. If
sudo is not used, then we do not need a PTY. In fact, the paramiko docs
explicitly state that it's not desirable to allocate a PTY for a simple
exec_command.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2013-02-15 10:17:43 +13:00
lwade
0a2a647831 Updated comments and closed code example. 2013-02-14 14:40:28 +00:00
lwade
8617b6df90 Adding a simple EC2 volume module for creation and attach 2013-02-14 14:18:35 +00:00
Johan Wirén
94813d38e6 Added zfs example playbook 2013-02-14 14:16:33 +01:00
Johan Wirén
19c94d7380 Added zfs module 2013-02-14 14:16:08 +01:00
Mark Maas
6a89177a59 Added support for AIX 5.3 and 6.1
A collegue of mine has added basix AIX support to the setup, user and group modules.

We have tested this on AIX 5.3 and 6.1 and it works "as advertised"
2013-02-14 12:45:08 +01:00
Daniel Hokka Zakrisson
584fd7a261 Fix Python 2.6-isms in sysctl module 2013-02-14 12:14:44 +01:00
Hubert Feyrer
18d9fc581d Add support for NetBSD. Tested on NetBSD 6.0/i386. 2013-02-13 22:07:31 +01:00
Hubert Feyrer
e2158b661d Add Linux-style path for sudoers file, to be consistent with other examples. 2013-02-13 22:02:17 +01:00
Hubert Feyrer
d4b9de643b Add an example on how to *add* a %wheel line to sudo - tricky as it has
a colon, which needs some special attention.
2013-02-13 21:42:12 +01:00
Nigel Metheringham
c0e28762f0 Allow end of line comments in inventory file
See github issue 2702
https://github.com/ansible/ansible/issues/2072
2013-02-13 14:15:22 +00:00
Michael DeHaan
81d426de2a Merge pull request #2066 from lorin/git-example
Add example of read-write git checkout via ssh
2013-02-13 05:22:55 -08:00
Lorin Hochstein
321175cdfa Add example of read-write git checkout via ssh 2013-02-12 22:08:14 -05:00
Daniel Hokka Zakrisson
7e2999ed2d Add directory detection to _remote_md5 and use this in copy
If it is a directory, change the destination path by appending the
basename of the source file, like is done if the destination ends with a
/, and try to get the MD5 of the new path.
2013-02-12 22:39:05 +01:00
Daniel Hokka Zakrisson
f12dbd431a Don't remove invocation from the result in the log callback
Fixes #2064.
2013-02-12 22:26:30 +01:00
Daniel Hokka Zakrisson
85fb8494c5 Clean up device fact gathering
Remove lots of re use that really shouldn't have been re in the first
place. Initialize pcidata even if lspci is unavailable, and check for
its usability before trying to use it.

Fixes #2060.
2013-02-12 18:48:14 +01:00
Daniel Hokka Zakrisson
0212fed922 Merge pull request #2061 from candeira/fix_bug_in_user_module
fix remote execution NameError in module 'user'
2013-02-12 09:22:46 -08:00
Javier Candeira
ae81e3607f fix remote execution NameError in module 'user' 2013-02-13 04:01:46 +11:00
Michael DeHaan
589548531e Merge pull request #2054 from kavink/devel
Fixing logical error in detecting virtual device.
2013-02-11 18:25:32 -08:00
Kavin Kankeshwar
3042366199 Fixing logical error in detecting virtual device.
So In my Centos 5.9 machine, if there is RAID mount ansible will crash, as it cannot find scheduler file. The reason being, this should be a virtual device as there is no "device" folder under e.g. /sys/block/md0/

Here is the crash:

[kk@u1 ansible]$ ansible q3 -m setup -k -u root --tree=/tmp/facts
SSH password:
q3 | FAILED => failed to parse: /sys/block/md0
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1797, in ?
    main()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1050, in main
    data = run_setup(module)
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1000, in run_setup
    facts = ansible_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 990, in ansible_facts
    facts.update(Hardware().populate())
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 312, in populate
    self.get_device_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 439, in get_device_facts
    m = re.match(".*?(\[(.*)\])", scheduler)
  File "/usr/lib64/python2.4/sre.py", line 129, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
2013-02-11 18:23:58 -08:00
Michael DeHaan
af3402fe35 Merge pull request #2043 from chrishoffman/rabbitmq
Rabbitmq Module Updates
2013-02-11 17:43:07 -08:00
Daniel Hokka Zakrisson
d632210941 Allow using other users' home directories as well 2013-02-11 23:43:30 +01:00
Daniel Hokka Zakrisson
89e73c123f Fix tilde expansion for fileglob
Use common suffix to determine what part of original term to keep and
how much of the full path to combine to get a usable filename.
2013-02-11 23:43:27 +01:00
Daniel Hokka Zakrisson
57e51f7fdf Clean up some extra_vars redundancy 2013-02-11 23:25:50 +01:00
Daniel Hokka Zakrisson
57cac788fb Fix setup when /sys/block is inaccessible 2013-02-11 23:24:47 +01:00