Commit Graph

3588 Commits (bc5d0a8cd499ffb57598b02e38c31c499236d691)

Author SHA1 Message Date
Toshio Kuratomi 3f97fc2ba6 Merge pull request #10162 from jonhadfield/fix_2.4_hashing
correct typo that breaks hashing on python 2.4.
10 years ago
Brian Coca 07dfbaedc3 Merge pull request #9602 from cchurch/powershell_splatting
Handle PowerShell parameters passed via splatting
10 years ago
Jon Hadfield 6874f5056d correct typo that breaks hashing on python 2.4. 10 years ago
Alexander Gubin 1968f99691 Wrong OS_FAMILY declaration for openSUSE 10 years ago
Toshio Kuratomi 019f74dced Update modules 10 years ago
Brian Coca 1b8d0b68a8 Merge pull request #10158 from bcoca/hosts_better_error
more resilient errors for bad host declarations in play
10 years ago
Brian Coca cbbe2f4e26 more resilient errors for bad host declarations in play
should fix #10148
10 years ago
Brian Coca 7ea2aff272 Merge pull request #9772 from jszwedko/allow-template-for-retries
Allow retries to be templatable
10 years ago
Toshio Kuratomi 788e47b693 Correct filter specification 10 years ago
Toshio Kuratomi 8fd7f4b121 Wrap some filters so they return unicode.
The rules are -- if the filter returns str type and the str may contain
non-ascii characters then wrap it to convert to unicode type.  Not
needed if the function already returns unicode type or only returns
ascii characters
10 years ago
Toshio Kuratomi a04138a887 Add v2's unicode.py to utils so we can use unicode_wrap in the filter_plugins 10 years ago
Toshio Kuratomi 6d788629a2 Be explicit about unicode str transformation
Fixes #10126
10 years ago
Toshio Kuratomi 97438f0039 Update the modules 10 years ago
Toshio Kuratomi 0e5f86cce4 Import hash functions for filters from the new location so the plugins will work on v1 and v2 10 years ago
Toshio Kuratomi 1011959d88 Move the hashing util functions to their own file to mirror v2 10 years ago
Toshio Kuratomi b3af2f9bee Better error message 10 years ago
Toshio Kuratomi f6e8ddfd5f Use pass instead of bare None value 10 years ago
Toshio Kuratomi 624a8dd1d9 Replace large if-elif-else blocks with a dict-dispatcher 10 years ago
Toshio Kuratomi 616fda5767 First try at only failing if the filter is actually used. 10 years ago
Maciej Delmanowski 7e46554160 Add ipaddr() filter plugin 10 years ago
Brian Coca 17666a1939 changed default for new retry path to be teh same as current
also added commented out entries in ansible.cfg to show other options
10 years ago
Brian Coca 540d13cf52 Merge pull request #9404 from mmoya/configure-retry-files
Configure retry file usage and location
10 years ago
Andreas Reischuck 6609f3ac03 fix suggested by @aikomastboom 10 years ago
Toshio Kuratomi ca35d138f1 Update modules 10 years ago
Toshio Kuratomi f355c11a3f Merge pull request #10129 from RadishTheHut/memfacts-fix
Fix for memory fact gathering
10 years ago
Brian Coca 7ab95e10f0 updated to latest core devel 10 years ago
Patrick McConnell 04b2c698ba Updated memory facts fix using dict.get() to avoid KeyError 10 years ago
Toshio Kuratomi 747cc26ae1 Update modules 10 years ago
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
10 years ago
Brian Coca c73254543a made env var also consistent 10 years ago
Brian Coca 4fd760467b made inventory consistent in config file, deprecated old config hostfile 10 years ago
Brian Coca 751701c6f2 Merge pull request #9672 from quinot/topic/lineno-in-inventory-err
Report location (filename and line number) for inventory syntax errors
10 years ago
Brian Coca e4a7b973fd Merge pull request #9128 from msabramo/expose_more_user_facts
Expose more facts about user on host system
10 years ago
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.
10 years ago
Alexander Gubin 5dec45e24a Fix wrong distribution facts on SLES/openSUSE 10 years ago
Toshio Kuratomi 556d4f0025 Update core modules 10 years ago
Toshio Kuratomi 44fe38030f Update core modules for subversion fixes 10 years ago
Toshio Kuratomi 3d5523fbb7 Fix for unicode filenames for template module
Fixes #10110
10 years ago
Toshio Kuratomi 0aac6360e4 Update core modules 10 years ago
Brian Coca 990d08b63f Merge pull request #10113 from bcoca/url_lookup
Url lookup
10 years ago
Brian Coca 11005e7b28 Merge pull request #9839 from nousdefions/memfacts
Memfacts
10 years ago
Brian Coca 3d6b6edea9 added url lookup plugin 10 years ago
Toshio Kuratomi 35321ec642 ansible.utils to_unicode/to_bytes isn't robust in the face of
non-strings.  Do some value checking in the calling code
10 years ago
Toshio Kuratomi 975b547aaa Update core modules 10 years ago
Toshio Kuratomi a63e4c595f Another place that needs to be json_dict_bytes_to_unicode 10 years ago
Toshio Kuratomi 0f6b87d33e Revert "Fix import statements" -- those impotrt statements were right
before... something else is fishy

This reverts commit 8ab536fbf2.
10 years ago
Toshio Kuratomi 8ab536fbf2 Fix import statements 10 years ago
Toshio Kuratomi d3666f3265 Make py2.4 remote checksum large-file-enabled as well 10 years ago
Toshio Kuratomi 6f5d18a20e Merge pull request #10087 from axos88/devel
fix checksum calculation for large files
10 years ago
Toshio Kuratomi 335cf2f05f Update module repos 10 years ago
Toshio Kuratomi 915d232d5f jinja2 cannot handle byte strs with non-ascii. So we need to transform potential byte str into unicode type. This fix is for dynamic inventory.
Fixes #10007
10 years ago
Brian Coca 9d190c8d8d Revert "Support variable values with dashes" 10 years ago
Brian Coca 13bbf9bfbb Merge pull request #9834 from nathancahill/fix-variables-with-dashes
Support variable values with dashes
10 years ago
Akos Vandra 03fa421f3f do not use with, it is not supported all the way down to 2.4 10 years ago
Akos Vandra e8144b3b90 fixes #10086 10 years ago
Steve Gargan c02f114967 Initial commit of Ansible support for the Consul clustering framework (http://consul.io).
Submission includes support for
 - creating and registering services and checks
 - reading, writing and lookup for values in consul's kv store
 - creating and manipulating sessions for distributed locking on values in the kv
 - creating and manipulating ACLs for restricting access to the kv store
 - inventory support that reads the Consul catalog and group nodes according to
     - datacenters
     - exposed services
     - service availability
     - arbitrary groupings from the kv store

This submission makes extensive use of the python-consul library and this is required
as a dependency and can be installed from pip.

The tests were written to target a vagrant cluster which can be setup by following the
instructions here http://github.com/sgargan/consul-vagrant
10 years ago
Toshio Kuratomi 53a3644ecd Update the modules 10 years ago
Toshio Kuratomi 364f772cc5 Fix quoting of shell parameters used in remote_checksum and add integration test to detect the error
Fixes #682
10 years ago
Brian Coca 54c25a101b Merge pull request #10029 from gaqzi/devel
Add filter to turn a string into a UUID
10 years ago
Toshio Kuratomi f2b1a289ed Update modules to pull in fixes 10 years ago
Toshio Kuratomi cce87acfed Fix integration test for unarchive to test zipfiles 10 years ago
Brian Coca 0e969aee06 updated submodules to latest devel 10 years ago
Björn Andersson 65e4f2b2bc Add filter to turn a string into a UUID
This filter was made because I needed to create idempotent UUIDs when
installing the agent for Go (http://go.cd), which uses UUIds to
distinguish the agents from each other.

It uses a newly created Ansible namespace to distinguish UUIDs created
by Ansible from any other source. The new namespace is a random one
created by uuidgen on OSX.
10 years ago
Brian Coca 82abe63eb2 Merge pull request #10055 from digi691/devel
Add the uuid of the device in ansible_mounts variable
10 years ago
Toshio Kuratomi e6b5cc9ccb Merge pull request #9887 from lmacken/devel
Use send instead of sendv on the systemd.journal (fixes #9886)
10 years ago
cdigiovanni 99bcbe746f Add the uuid of the device in ansible_mounts variable 10 years ago
Brian Coca 2ef5d6be1e Merge pull request #9702 from bcoca/better_errors_on_delegate
better exception handling with delegated hosts
10 years ago
Brian Coca 23783a5228 Merge pull request #10014 from bcoca/inventory_script_errorhandle
ansible now captures returncode errors on inventory scripts
10 years ago
Brian Coca 2a9d5054bf Merge pull request #9995 from bcoca/hash_filters
Hash filters
10 years ago
Toshio Kuratomi 46e486ba41 Update modules to fix docs build and unittests 10 years ago
Toshio Kuratomi 01be9f4399 Update modules to latest 10 years ago
Brian Coca 78e1a7ed93 Revert "Fix: Add support for SSL protocol version configuration option" 10 years ago
Brian Coca 9ccabbb95e Merge pull request #9808 from swimlappy/sslconfig
Fix: Add support for SSL protocol version configuration option
10 years ago
Toshio Kuratomi be4dbe76b9 Merge pull request #9997 from shawnsi/stdout_lines
Add stdout_lines to results when using with_items
10 years ago
Brian Coca 6b3d0f4788 now captures returncode errors on inventory scripts 10 years ago
Brian Coca c09d27bca1 handle json load errors as ansible error instead of ugly stacktrace 10 years ago
Toshio Kuratomi 1b8faa68d9 Update extras to pick up doc build fix 10 years ago
Toshio Kuratomi 6326daa34e Update modules for unarchive handling user,group,mode and add integration test for the same 10 years ago
Shawn Siefkas 682b987567 Add stdout_lines to results when using with_items 10 years ago
Brian Coca 35247fabb8 added hash and password_hash functions
documented new hashing filters and preexisting hashing filters
removed extra sha1 example in others, clarified some of the hashing examples
10 years ago
Toshio Kuratomi f1fdddb640 Do not send stat all the parameters that unarchive received
Fixes #546
10 years ago
Toshio Kuratomi edc27c5a5b Fix to_nice_json on python2.6 10 years ago
Toshio Kuratomi f2d37fba30 Update modules 10 years ago
Brian Coca bd62530700 Merge pull request #9947 from maxamillion/issue-9759-fix-processor-facts
don't double the count of i for LinuxHardware cpuinfo keys on 'vendor_id' and 'model name' keys
10 years ago
Adam Miller 06b70e4f9c When checking for Xen for LinuxHardware processor facts, don't check sysfs if already found in /proc/ 10 years ago
Nate Coraor 60e815c844 Set ansible_distribution_version differently for Solaris variants. 10 years ago
Toshio Kuratomi 5354df8643 s/nexentaStor/Nexenta/ 10 years ago
Toshio Kuratomi 04635333d0 Update fact gathering for solaris-family distributions 10 years ago
Brian Coca 058816237a updated submodule refs 10 years ago
Toshio Kuratomi 6305864cca Merge pull request #9814 from ccciudatu/devel
run_once tasks are skipped without checking the delegate_to host #9784
10 years ago
Toshio Kuratomi 364b5ac0ea Do a daily update of the modules 10 years ago
Adam Miller f274234824 Only add the overhead for each iteration of cpuinfo parsing if Xen is detected 10 years ago
Adam Miller 3729259b68 don't double the count of i for LinuxHardware cpuinfo keys on
'vendor_id' and 'model name' keys

Check for Xen paravirt and handle processor facts accordingly
10 years ago
Toshio Kuratomi eb19ff9d62 Update extras modules to fix docs building 10 years ago
Toshio Kuratomi bac086e705 Update modules 10 years ago
Brian Coca 1698b17b14 Merge pull request #8651 from ks888/enable-env-kw-at-play-level
Enable environment keyword at play level
10 years ago
Toshio Kuratomi 41399dedaf Update core modules for docker fix 10 years ago
Toshio Kuratomi 641c6a2859 Pull in apt changes 10 years ago
Luke Macken dea0ee663f Use send instead of sendv on the systemd.journal (fixes #9886) 10 years ago
Costi Ciudatu 1ed9b6629e run_once tasks are skipped without checking the delegate_to host #9784 10 years ago