Commit graph

13738 commits

Author SHA1 Message Date
Andreas Reischuck
6609f3ac03 fix suggested by @aikomastboom 2015-01-30 21:04:52 +01:00
Brian Coca
368285b351 initial draft virtualbox inventory script 2015-01-30 10:53:21 -05:00
Toshio Kuratomi
363a47b48b Merge pull request #10133 from netroby/feature/update-repo-sh
Add shell script to fast update ansible repo
2015-01-30 07:52:42 -08:00
Toshio Kuratomi
4b89eb293f port fix for https://github.com/ansible/ansible/pull/10129 to v2 2015-01-30 07:51:19 -08:00
Toshio Kuratomi
ca35d138f1 Update modules 2015-01-30 07:46:36 -08:00
Toshio Kuratomi
f355c11a3f Merge pull request #10129 from RadishTheHut/memfacts-fix
Fix for memory fact gathering
2015-01-30 07:44:58 -08:00
Brian Coca
dfe629a872 Merge pull request #10137 from nmeum/devel
Saner ansible-pull output
2015-01-30 10:18:35 -05:00
Sören Tempel
773849d421 Only write actual errors to stderr 2015-01-30 15:55:37 +01:00
Brian Coca
7ab95e10f0 updated to latest core devel 2015-01-30 08:29:58 -05:00
ZhiFeng Hu
e63c03d60f Move update.sh to hacking repository ,see #10081 2015-01-30 14:19:47 +08:00
Patrick McConnell
04b2c698ba Updated memory facts fix using dict.get() to avoid KeyError 2015-01-30 05:59:34 +01:00
Toshio Kuratomi
747cc26ae1 Update modules 2015-01-29 18:31:15 -08:00
Toshio Kuratomi
be9b445245 Document the force=no changes for version control modules 2015-01-29 18:30:43 -08:00
ZhiFeng Hu
d4864eabdc Add shell script to fast update ansible repo 2015-01-30 08:45:46 +08:00
James Cammarata
c978c77796 Fixing more v2 bugs 2015-01-29 16:44:01 -06:00
Toshio Kuratomi
f20967078e Fixes to @RadishTheHut's memory facts as discussed in
https://github.com/ansible/ansible/pull/10129#issuecomment-72077500

* Switch default value from 0 to None.
* Prefill keys with default value so that determining calculated values
  is easier
2015-01-29 12:09:19 -08:00
Toshio Kuratomi
d57f7b4b9e Merge pull request #10130 from bcoca/inventory_consistent_naming
made inventory consistent in config file, deprecated old config hostfile
2015-01-29 10:48:03 -08:00
Marc Abramowitz
372a29744b Make AnsibleError a plain ol' exception
Python's Exception constructor already takes a `message` as a parameter,
which you can then get at by doing str(e) (e.message was deprecated).

The reason I bothered to make this change was because I was debugging
with pdb and I noticed that AnsibleErrors don't give useful information
in pdb (probably because they don't have a __repr__ method that prints
the `msg` attribute).

    (Pdb) c
    > /Users/marca/dev/git-repos/ansible/lib/ansible/runner/__init__.py(599)_executor()
    -> msg = str(ae)
    (Pdb) ae
    AnsibleError()
2015-01-29 10:36:06 -08:00
Brian Coca
c73254543a made env var also consistent 2015-01-29 13:32:00 -05:00
Brian Coca
4fd760467b made inventory consistent in config file, deprecated old config hostfile 2015-01-29 13:28:33 -05:00
Brian Coca
751701c6f2 Merge pull request #9672 from quinot/topic/lineno-in-inventory-err
Report location (filename and line number) for inventory syntax errors
2015-01-29 12:36:30 -05:00
James Cammarata
171a67cfef Tweaking role path searching in v2 to be a bit more like v1 2015-01-29 10:56:04 -06:00
Brian Coca
e4a7b973fd Merge pull request #9128 from msabramo/expose_more_user_facts
Expose more facts about user on host system
2015-01-29 09:55:30 -05:00
Patrick McConnell
0c3a273805 Fix for memory fact gathering
I have a host which started to fail while gathering facts after the addition
of expanded memory facts in PR #9839:

Traceback (most recent call last):
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 4278, in <module>
    main()
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 137, in main
    data = run_setup(module)
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 81, in run_setup
    facts = ansible_facts(module)
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 4217, in ansible_facts
    facts.update(Hardware().populate())
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 2339, in populate
    self.get_memory_facts()
  File "/home/ansible/.ansible/tmp/ansible-tmp-1422536976.05-133253824703289/setup", line 2375, in get_memory_facts
    'cached': memstats['swapcached']
KeyError: 'swapcached'

My problem host doesn't have SwapCached in /proc/meminfo. It may be better to
set defaults for these keys, since the values provided by /proc/meminfo can
change from version to version.
2015-01-29 15:00:01 +01:00
Alexander Gubin
5dec45e24a Fix wrong distribution facts on SLES/openSUSE 2015-01-29 14:54:53 +01:00
Toshio Kuratomi
fef435cc2a Correct typo 2015-01-28 22:04:10 -08:00
Toshio Kuratomi
0eabf3bb99 Change subversion tests -- export test didn't test exporting before 2015-01-28 17:28:00 -08:00
Toshio Kuratomi
556d4f0025 Update core modules 2015-01-28 16:31:08 -08:00
Toshio Kuratomi
7f362fe598 Add force=false changes to ChangeLog 2015-01-28 16:30:02 -08:00
Toshio Kuratomi
44fe38030f Update core modules for subversion fixes 2015-01-28 16:17:30 -08:00
Toshio Kuratomi
b3d5f82d29 copy to_bytes and to_unicode functions from kitchen for use in v2 2015-01-28 14:51:33 -08:00
Toshio Kuratomi
3d5523fbb7 Fix for unicode filenames for template module
Fixes #10110
2015-01-28 14:24:57 -08:00
James Cammarata
181dd058eb Fix roles_path loading in v2 2015-01-28 16:08:41 -06:00
James Cammarata
ed05db52ba Fixing playbook includes in v2 where included paths are relative 2015-01-28 15:03:06 -06:00
James Cammarata
b07ab41994 Fix directory loading of host/group vars in v2 2015-01-28 14:06:10 -06:00
James Cammarata
4d9bf37afa Fixing some v2 inventory bugs 2015-01-28 13:21:52 -06:00
James Cammarata
b6a34518ad Fixing checkmode support and some other things in v2 2015-01-28 13:21:52 -06:00
Brian Coca
daa2c3a956 Merge pull request #9584 from Sgoettschkes/issue_docs_missing_ansible_sudo
Adding inventory parameter to documentation
2015-01-28 13:42:59 -05:00
Toshio Kuratomi
0aac6360e4 Update core modules 2015-01-28 10:38:36 -08:00
Brian Coca
1988f9015e Merge pull request #10120 from rounds/devel
Reference tests/README.ME in the Makefile notes
2015-01-28 10:39:57 -05:00
Ofir Petrushka
37cc4cf9cb Reference tests/README.ME in the Makefile notes
https://github.com/ansible/ansible/issues/6776
2015-01-28 17:21:27 +02:00
Brian Coca
990d08b63f Merge pull request #10113 from bcoca/url_lookup
Url lookup
2015-01-28 09:54:40 -05:00
Brian Coca
11005e7b28 Merge pull request #9839 from nousdefions/memfacts
Memfacts
2015-01-28 09:39:24 -05:00
Brian Coca
66fb24adef Merge pull request #10117 from dago/patch-1
Add OpenCSW for Solaris
2015-01-28 08:46:57 -05:00
Dagobert Michelsen
7a90139e3c Add OpenCSW for Solaris 2015-01-28 10:23:03 +01:00
Erick Michau
59e92bc92c add support for local/remote syslog logging 2015-01-28 10:02:36 +01:00
Toshio Kuratomi
23a2e52cb7 Merge pull request #10111 from wjimenez5271/patch-2
explain -q flag for env-setup
2015-01-27 15:43:21 -08:00
Brian Coca
2fa9a0958a v2: added draft url lookup 2015-01-27 18:29:16 -05:00
Brian Coca
6118bf4b64 corrected missing quote 2015-01-27 17:48:39 -05:00
Brian Coca
3d6b6edea9 added url lookup plugin 2015-01-27 17:26:18 -05:00