Commit Graph

4132 Commits (bb7d33adbcc0f1888c9c5fa6dfb87bb6d80efba1)

Author SHA1 Message Date
Toshio Kuratomi 223c2a2721 Update submodules 11 years ago
Brian Coca 6a8062baad accidentally 'fixes' ubuntu distribution parsing, this order should not matter, need followup to figure out why this is the case 11 years ago
Carlos E. Garcia cfbfd38723 just a few spelling error changes 11 years ago
Rene Moser 2f255f5b96 cloudstack: get_vm(): fix missing zone
Fixes returning wrong VM having identical name in different zone.
11 years ago
Rene Moser ca88189bf7 cloudstack: add method to to get infos of API
get_capabilities() allows you to get infos e.g. `cloudstackversion`
to compare functionality of the API in your modules.
11 years ago
Brian Coca 946c37fd88 Merge pull request #10612 from sivel/sync-ssh-args
Add ability to specify using ssh_args in synchronize
11 years ago
Rene Moser 3c0e406f5d cloudstack: fix missing self. in cloudstack utils 11 years ago
Rene Moser 6354ca0718 cloudstack: add _has_changed() to utils
Generic method to compare values in dict.
11 years ago
Rene Moser 765c8fe368 cloudstack: use _get_by_key in get_...() methods in utils
But also add backward compatibility for existing modules in extras.
11 years ago
Rene Moser 88540d3cdc cloudstack: add _get_by_key() to utils
Generic method to get the whole dict or just a singe value by key if found.
11 years ago
Rene Moser 31520cdd17 cloudstack: fix other projects not found 11 years ago
Joseph Callen 87bc705806 Fixes VMware module utils
Resolves syntax errors in the `wait_for_tasks`
Removes throw from `find_datacenter_by_name`
11 years ago
Brian Coca a1ddeaebe9 Merge pull request #10760 from jcpowermac/add_vmware_module_utils
Adding a new VMware utilities module
11 years ago
Joseph Callen 9b317858c1 Modified per @bcoca
Removed try/except raises
Modified wait_for_task
Added api exception error message
11 years ago
Brian Coca 2a59f27db4 Merge pull request #10789 from mavit/oracle_linux_os_family
Consistently use "OracleLinux" in OS detection.
11 years ago
Rene Moser 822c2c0cd3 cloudstack: fix vm not found by displayname 11 years ago
Rene Moser 0a26b149fc cloudstack: add error result handling in async job 11 years ago
Peter Oliver d8be6fec65 Consistently use "OracleLinux" in OS detection.
Previously, a mixture of "OracleLinux" and "Oracle Linux" was used,
causing the `ansible_os_family` fact not to be set to `RedHat`.

Fixes #10742.
11 years ago
Joseph Callen 986910be5d Adding a new VMware utilities module 11 years ago
James Cammarata f4172fb9da Fix tag handling on meta:flush_handlers tasks
Fixes #10758
11 years ago
Brian Coca 65be14e8b4 Merge pull request #10757 from jeffrizzo/netbsd_facts
Set distribution, release, and version for NetBSD.
11 years ago
Brian Coca 2e9c028c6c Merge pull request #10747 from bcoca/fix_lsblk_missing
adjusted for the posibolity of lsblk not existing for fact gathering
11 years ago
Jeff Rizzo 5c64956a7e Set distribution, release, and version for NetBSD. 11 years ago
Toshio Kuratomi 3075a4db25 Merge pull request #10734 from ralphbean/devel
Remove check of hardcoded AWS region list.
11 years ago
Michael Scherer b4f02625cd Add CoreOS facts detection, fix https://github.com/ansible/ansible-modules-core/issues/1000 11 years ago
Brian Coca ec01e071d8 adjusted for the posibolity of lsblk not existing for fact gathering 11 years ago
Ralph Bean 4903bca0c1 Remove check of hardcoded AWS region list.
You can extend boto to point at other regions that are defined in a
private cloud by defining ``BOTO_ENDPOINTS`` or ``endpoints_path`` in
the ``~/.boto`` file.

Ansible was doing a premature check against a hard-coded list of regions
that interrupted this possibility.  This commit removes that and
clarifies what the user can do if they specify a non-AWS region.
11 years ago
Brian Coca abb93d9115 Merge pull request #10732 from mscherer/prefer_dnf_to_yum
Prefer dnf to yum.
11 years ago
Michael Scherer f624ec4cb8 Prefer dnf to yum.
On Fedora 22 and later, yum is deprecated and dnf is installed by
default. However, the detection do not seems to take this in account,
and always use yum, even when yum cli is just a wrapper to tell "use
dnf", as this is the case on F22 and later ( see package dnf-yum ).

As dnf is not installed by default, except on F22, this shouldn't
break anything.
11 years ago
Toshio Kuratomi a0def30c34 Add integration test for unarchive filelist feature 11 years ago
Toshio Kuratomi aab681bc2b Update core and extras module refs and add tests for an unarchive
problem that the update fixes:

https://github.com/ansible/ansible-modules-core/issues/1064
11 years ago
Brian Coca dfce750fe6 Merge pull request #10701 from bcoca/delegate_to_fix_indent
fixed indent when looking at delegate_to vars
11 years ago
James Cammarata 46beaf8a47 Submodule update 11 years ago
Brian Coca 09efba2a7c fixed indent when looking at delegate_to vars 11 years ago
Brian Coca d5a7cd0efc bad hack to maybe fix some corner cases with pbrun custom prompts 11 years ago
Brian Coca 62c08d96e5 fixed another typo 11 years ago
Brian Coca 89cc54cc16 typo fix 11 years ago
Brian Coca b509de6c84 Merge pull request #10643 from bcoca/aix_facts_fix
fix for when calling bootinfo throws permmission errors (AIX)
11 years ago
Brian Coca 67512aeeb6 Merge pull request #10618 from jder/force-handlers
Fix --force-handlers, and allow it in plays and ansible.cfg
11 years ago
Feanil Patel 0abcebf1e4 Don't convert numbers and booleans to strings.
Before this change if a variable was of type int or bool and the variable was referenced
by another variable, the type would change to string.

eg. defaults/main.yml
```
PORT: 4567
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  port: "{{ PORT }}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the port would get represented in the output as a
string instead of as a number, but secrets would get represented as a dictionary.  This is
a mis-match in behaviour where some "types" are retained and others are not.  This change
should fix the issue.

Update template test to also test var retainment.

Make the template changes in v2.
Update to only short-circuit for booleans and numbers.

Added an entry to the changelog.
11 years ago
Jesse Rusak 652cd6cd5e Fix --force-handlers, and allow it in plays and ansible.cfg
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
11 years ago
Brian Coca e6fa169a05 Merge pull request #10629 from bcoca/backup_local_exists
backup_local now only tries to back up exising files, returns '' otherwise
11 years ago
Toshio Kuratomi 79f9fbd50e Reverse the error messages from jsonfile get and set 11 years ago
Brian Coca a90bb89b93 Merge pull request #10664 from cchurch/winrm_fixes
WinRM Connection Fixes
11 years ago
Chris Church 7ba2950c5a Remove winrm connection cache (only useful when running against one host). Also fixes #10391. 11 years ago
Chris Church 5675982b0f Only try kerberos auth when username contains `@` and pass realm to pywinrm. Alternative to #10644, fixes #10577. 11 years ago
Toshio Kuratomi c75baaa140 Merge pull request #10630 from viesti/viesti-master
Use codecs module while reading & writing json cache file
11 years ago
Chris Church 7f034a74d1 Add -ExecutionPolicy Unrestricted back, was removed by #9602. 11 years ago
Brian Coca 1c796543c9 fix for when calling bootinfo throws permmission errors (AIX)
fixes https://github.com/ansible/ansible-modules-core/issues/1108
11 years ago
Brian Coca e122236f55 updated submodule refs 11 years ago
Kimmo Koskinen 9409cc7443 Use codecs module while reading & writing json cache file 11 years ago
Brian Coca faadb68308 backup_local now only tries to back up exising files, returns '' otherwise 11 years ago
Brian Coca f82b1f12e8 Merge pull request #10628 from detiber/module_utils_facts
Fix indentation
11 years ago
James Cammarata f6c116a81f Updating version to contain the full major/release 11 years ago
Jason DeTiberus 43775daa4b Fix indentation 11 years ago
James Cammarata 5150d83d01 Fixing the version in lib/ 11 years ago
Joost Molenaar e79c920260 Add support for Arch to module_utils.basic.py
Fixes ansible/ansible#8653
11 years ago
Matt Martz d5eb4df23e Add ability to specify using ssh_args in synchronize 11 years ago
Brian Coca 92e400eb6d fixed minor issues with openstack docs not being valid yaml 11 years ago
Brian Coca 02b03cfdf5 Merge pull request #10593 from bcoca/backup_ioerror
capture IOErrors on backup_local (happens on non posix filesystems)
11 years ago
Brian Coca ee1af1b14e Merge pull request #10559 from bcoca/become_constants_fix
removed folding sudo/su to become logic from constants
11 years ago
Brian Coca 278c1e6514 Merge pull request #10514 from bcoca/fix_password_template_error
now ansible ignores tempate errors on passwords
11 years ago
Brian Coca 42b7321d4b Merge pull request #10587 from bcoca/fix_unrelated_lookup_fail
dont break everything when one of the vars in inject does not template
11 years ago
Toshio Kuratomi 5808b68d35 Update module pointers 11 years ago
Brian Coca 06c837cd87 Merge pull request #7487 from nirvinehh/devel
Clean non-printable chars from stdout instead of dropping the whole thin...
11 years ago
Brian Coca 4dd233b0dd Merge pull request #10237 from emonty/remove-auth-token
Remove auth token and port openstack module_utils changes to v2 tree
11 years ago
Brian Coca 1fa3dbb7d2 capture IOErrors on backup_local (happens on non posix filesystems)
fixes #10591
11 years ago
Brian Coca f6714ac051 Merge pull request #10507 from renard/fix-patch-action-plugin
Fix patch action plugin
11 years ago
Monty Taylor 87c99b4675 Align verify parameter with validate_certs
The rest of ansible uses validate_certs, so make that the main
documented parameter. However, leave verify as an alias since that's the
passthrough value to the underlying libraries.
11 years ago
Brian Coca 0d1e2e74a1 converted error on play var initialization into warning with more information 11 years ago
Brian Coca 17e086fe8c dont break everything when one of the vars in inject does not template correctly, wait till its used 11 years ago
Monty Taylor 90ca386555 Add api timeout now that shade spports it everywhere 11 years ago
Brian Coca f337707ef1 updated ref to pickup latest docfixes 11 years ago
Brian Coca 4919c225e6 updated ref so docs can build 11 years ago
Brian Coca f812582d9c updated submodule refs 11 years ago
Toshio Kuratomi 68880a797d Update core to fix cloudformation problem 11 years ago
Brian Coca 299314c6b6 Merge pull request #10545 from resmo/feature/cloudstack-utils
cloudstack: common code used in cloudstack modules
11 years ago
Brian Coca 2a8a302e7e fixed corner case when counting backwards, added test cases for count=0 and backwards counts 11 years ago
Brian Coca 662b35cbce readded sudo/su vars to allow role/includes to work with passed sudo/su 11 years ago
Brian Coca 35a2ca8a5d made sequence more flexible, can handle descending and negative sequences and is skipped if start==end 11 years ago
Brian Coca 5ec1f3bd6e removed folding sudo/su to become logic from constants as it is already present downstream in playbook/play/tasks 11 years ago
Brian Coca 76e3a9c93a Merge pull request #9894 from 47lining/cloud_modules_sts_support_redux_ansible
Cloud Modules STS Support Redux
11 years ago
Toshio Kuratomi b7936009c2 Correct typo 11 years ago
Toshio Kuratomi 0ec1b025a9 Update the module pointers 11 years ago
Toshio Kuratomi 5bf9ea6298 make sure the shebang we inject into the module is a str
Fixes #8564
11 years ago
Rene Moser 3e7d959c9d cloudstack: module utils are BSD licensed 11 years ago
Rene Moser c066a60b7c cloudstack: fail_json() if library cs is not found 11 years ago
Rene Moser 1ba05dd3a2 cloudstack: add doc fragment 11 years ago
Rene Moser bb6d983290 cloudstack: add utils for common functionality 11 years ago
Toshio Kuratomi aaa25eb75c Make run_command() work when we get byte str with non-ascii characters (instead of unicode type like we were expecting)
Fix and test.

Fixes #10536
11 years ago
Toshio Kuratomi c024057e97 Fix assert to work with unicode values 11 years ago
Brian Coca 19ba26e9a5 makes raw module have quiet ssh so as to avoid extra output when not requried 11 years ago
Brian Coca ec8118ec41 now ansible ignores tempate errors on passwords
they could be caused by random character combinations, fixes #10468
11 years ago
Brian Coca 72586d0df5 updated to latest core/devel 11 years ago
Toshio Kuratomi 8d8c4c0615 Update modules for asg tag fix 11 years ago
Eri Bastos d4eddabb2a Patch for bug #10485 - ansible_distribution fact populates as 'RedHat' on Oracle Linux systems 11 years ago
Sébastien Gross 6888f1ccd9 [patch] Use _make_tmp_path to prevent from copying full patch file path. 11 years ago
Sébastien Gross 8a5f162e29 [patch] fix "remote_src" behavior according patch module documentation.
Patch documentation says "remote_src" us False by default. That was not
the case in the action plugin.
11 years ago
Brian Coca d4ebe77502 now use combine vars to preserve existing cached host vars 11 years ago
Brian Coca a53cf9d6fa now correctly aplies add_host passed variables last to override existing vars. 11 years ago
Brian Coca 0c57bed728 now add_host loads hostvars 11 years ago
Toshio Kuratomi 6264eb4e02 Pull in ec2_asg fixes from core modules 11 years ago
Toshio Kuratomi ac1c49302d Update core modules pointer 11 years ago
Brian Coca 456f83962d ignore PE methods that are not sudo for checksums until we get them working universally 11 years ago
Toshio Kuratomi 73f5a1fcdd Update the extras module pointer 11 years ago
Toshio Kuratomi b8efd3f777 Update core module pointer 11 years ago
Toshio Kuratomi 9dd5f8c758 Update core module pointer 11 years ago
Brian Coca fd2d7fe447 Merge pull request #10290 from bcoca/remove_bare_warning
removed bare variable detection as this confuses people
11 years ago
Brian Coca ba4e9a4c82 added missing become method inventory override 11 years ago
Toshio Kuratomi f9a66a7ff7 Update core module pointer 11 years ago
Toshio Kuratomi e42848e0fe Better comment for why we have get_checksum call itself sometimes 11 years ago
Brian Coca b11be68249 updated module ref 11 years ago
Brian Coca bbdcba53da fixed bug on using su on play level not setting become method correctly 11 years ago
Brian Coca a47c132695 slight changes to allow for checksum and other commands to work correctly with quoting 11 years ago
Toshio Kuratomi 37ab61c542 Update core pointer to make use of DOCKER_TLS_VERIFY env var:
https://github.com/ansible/ansible-modules-core/issues/946
11 years ago
Toshio Kuratomi 1bf0e60646 Update core module pointer 11 years ago
Brian Coca b783ea94bb fixed raw return check for privilege escalation 11 years ago
Brian Coca 5eae435357 removed Darwin get_uptime_facts as it seems to crash on OS X, will waiy for a
patch tested by someone that has access to the platform
11 years ago
Chris Blumentritt 7813ffd719 Adding uptime_seconds fact for linux and darwin platforms
Adds ansible_uptime_seconds facts for linux and darwin platforms.  BSD
platforms may also work.
11 years ago
Toshio Kuratomi 8c3b5690e5 Merge pull request #10357 from htgoebel/devel
Fix detect of docker as virtualization_type.
11 years ago
James Cammarata eb850bf81a Fix issue with unarchive disabling pipelining mode
Was using persist_files=True when specifying the create paramater,
which breaks pipelining. Switched to use delete_remote_tmp=False instead,
which is the proper way to preserve the remove tmp dir when running
other modules from the action plugin.
11 years ago
Brian Coca a675b10b3b Merge pull request #10329 from bcoca/var_merge_combined
changed from hash_merge to combine vars which resets default to
11 years ago
Brian Coca ac1493faae fixed missed conversion of su to become 11 years ago
Toshio Kuratomi f5264414db Merge pull request #10426 from shirou/fix-hostvar-unicode-error
use to_unicode() in _jinja2_vars if type is str.
11 years ago
Shirou WAKAYAMA d92e8edf6e set 'nonstring' arg to passthru. 11 years ago
Toshio Kuratomi e413dba3a6 Update the module pointers 11 years ago
Brian Coca f229b770b2 fixed missed su to become conversion 11 years ago
Brian Coca 587ab17f10 fixes password error detection for ssh connection plugin
removes sycnronize test that does not work with current sudo setup
Fixes #10434
11 years ago
Brian Coca 747c7aaffa removed uneeded reference to su_user 11 years ago
Brian Coca de5eae2007 fixed traceback when x_user implicitly sets the become method
Fixes #10430

Also removed redundant resolution of sudo/su for backwards compatibility which
confused the conflict detection code.
11 years ago
Brian Coca a5f533e25d fixed bad paren in connection plugin 11 years ago
Shirou WAKAYAMA 2d73892acf use to_unicode() in _jinja2_vars if type is str. 11 years ago
Brian Coca 5f6db0e164 preliminary privlege escalation unification + pbrun
- become constants inherit existing sudo/su ones
- become command line options, marked sudo/su as deprecated and moved sudo/su passwords to runas group
- changed method signatures as privlege escalation is collapsed to become
- added tests for su and become, diabled su for lack of support in local.py
- updated playbook,play and task objects to become
- added become to runner
- added whoami test for become/sudo/su
- added home override dir for plugins
- removed useless method from ask pass
- forced become pass to always be string also uses to_bytes
- fixed fakerunner for tests
- corrected reference in synchronize action plugin
- added pfexec (needs testing)
- removed unused sudo/su in runner init
- removed deprecated info
- updated pe tests to allow to run under sudo and not need root
- normalized become options into a funciton to avoid duplication and inconsistencies
- pushed suppored list to connection classs property
- updated all connection plugins to latest 'become' pe

- includes fixes from feedback (including typos)
- added draft docs
- stub of become_exe, leaving for future v2 fixes
11 years ago
Brian Coca 17c710e713 Merge pull request #10420 from bmanojlovic/devel
add missing AIX network facts discovery
11 years ago
Boris Manojlovic a59784a581 don't use full path to command instead use module.get_bin_path 11 years ago
Matt Martz 4990814901 Prevent an empty error message 11 years ago
Boris Manojlovic 0f4cf8cb43 add missing AIX network facts discovery 11 years ago
pyroscope d0197195ed Handle /etc/os-release files with 'Raspbian' in them 11 years ago
Brian Coca d244390064 correclty added inventory this time 11 years ago
Brian Coca 642d9d6b56 readded inventory vars to runner's vars 11 years ago
Brian Coca 5453e2cbb8 removed redundant inventory call, moved grousp to proper priority 11 years ago
Chris Church 919db1025c Merge pull request #9601 from cchurch/set_delegate_before_connect
Set delegate on connection plugin before calling connect()
11 years ago
riedel 29cca0191b Adding oVirt recognition for oVirt guests. oVirt uses KVM. 11 years ago
Toshio Kuratomi 3e311db128 Update core and extras module pointers 11 years ago
Monty Taylor 8758ba08bd Update common OpenStack requests-related parameters
Also, update docs related to earlier changes in this stack.
11 years ago
Monty Taylor 8027a8a0b5 Change to auth_type to match python-openstackclient 11 years ago
Toshio Kuratomi d706fd1eda Merge pull request #10388 from willthames/no_log_skipped
Don't log item data for skipped tasks under no_log
11 years ago
Brian Coca c3d34a5386 Merge pull request #8936 from srvg/inventoryscript_onlychildren
Allow InventoryScript JSON with childgroups only
11 years ago
Brian Coca 761540e9fd Merge pull request #10392 from sgordon46/devel
facts.py throws exception when run on RHEV hypervisor #10383
11 years ago
Brian Coca aed493158c Merge pull request #9428 from landryb/openbsd_add_mount_facts
parse /etc/fstab on OpenBSD to get mount facts
11 years ago
Stephen Gordon b44bf0379b facts.py throws exception when run on RHEV hypervisor #10383 11 years ago
Will Thames 13a591eac0 Don't log item data for skipped tasks under no_log
Tasks with `no_log` set should not log data.
Remove log of item data for skipped tasks in loops

Fix for #10387
11 years ago
Toshio Kuratomi 241b905e85 Update core module pointer to fix mysql bug 11 years ago
Toshio Kuratomi 983b617fb7 Update the modules 11 years ago
Toshio Kuratomi fbc525cfb6 Use to_bytes instead of .encode(). Fixes the fact that errors is a positional argument, not a kw arg in .encode() 11 years ago
Toshio Kuratomi ffb281d96c Merge pull request #9600 from msabramo/make_AnsibleError_a_plain_ol_exception
Make AnsibleError a plain ol' exception
11 years ago
Brian Coca d43f542c1e Merge pull request #10373 from keithbentrup/patch-1
Incorrect keyword argument 'error'
11 years ago
Toshio Kuratomi a8c02b7049 Rework the shell quoting of remote checksumming
Instead of getting rid of pipes.quote, use pipes.quote and get rid of
the manually entered toplevel quotes.  This should properly escape
backslashes, quotes, and other characters.

Also fix the new checksumming python "one-liner" for csh.
ansible_shell_type needs to be set to csh.

Fixes #10363
Fixes #10353
11 years ago
Toshio Kuratomi c14a436df9 Update core and extras module pointers 11 years ago
Keith 788258917f Incorrect keyword argument 'error'
Incorrect keyword argument 'error'. It should be 'errors'.
11 years ago
James Cammarata 0314180dbe Updating core modules submodule pointer 11 years ago
Hartmut Goebel 8758ae201d Fix detect of docker as virtualization_type.
Not only match`/docker/`, but also `docker-` followed by a hex-id.

Example (shortened):
```
$ cat /proc/1/cgroup
8:blkio:/system.slice/docker-de73f4d207861cf8757b69213ee67bb234b897a18bea7385964b6ed2d515da94.scope
7:net_cls:/
```
11 years ago
Toshio Kuratomi a5ac9aafad Update modules for docs fix 11 years ago
Brian Coca 49fce3587b Merge pull request #10311 from jpmens/lookup-module-dig1
New lookup-plugin: `dig' for performing DNS lookups
11 years ago
Jan-Piet Mens a3618f619e New lookup-plugin: `dig' for performing DNS lookups
add support for argument qtype=XXX
remove spurious print
add dict returns
typo
Add dict returns for all major DNS types
Finish adding more types. For now. Until somebody complains.
I forgot to add NAPTR; here it is.
11 years ago
Toshio Kuratomi 38a5110250 Update core modules for docs fix 11 years ago
Toshio Kuratomi 084fbbdea9 Reverse the conditional so there's one less return from this function 11 years ago
Brian Coca 346689f9f2 Merge pull request #9293 from cchurch/module_suffixes
Simpler fix for module suffixes than c02e8d8c8.
11 years ago
Brian Coca 5a64b2e269 Merge pull request #10305 from bcoca/cartesian
Cartesian
11 years ago
Brian Coca 942ff8d0b9 Merge pull request #10035 from phenomenes/fix_9911
Adds seconds to backup timestamp
11 years ago
Brian Coca 5d729edd2f Merge pull request #9458 from sthen/openbsd_arch
set CPU architecture correctly for OpenBSD (powerpc not macppc, etc.)
11 years ago
Toshio Kuratomi 0f4b72cdfa Refactor loop to only calculate the full_path once 11 years ago
Toshio Kuratomi 68c99a12b3 Merge pull request #10346 from lekum/find_plugin_bugfix
Bug fix: Search only for files as candidates
11 years ago
Toshio Kuratomi 89159951dc Fix name of a task containing a template causing traceback
Workaround for #10321 Need to fix better in v2
11 years ago
Toshio Kuratomi 825dd25d43 Update module pointers 11 years ago
Toshio Kuratomi 8a5067d628 Adapt sanitize_output to log messages instead of assuming properly formatted key-value pairs
Fixes #10332
11 years ago
Alejandro Guirao b8cf131375 Bug fix: Search only for files as candidates 11 years ago
Monty Taylor 0b8773fc99 Remove state from central argument list
There is an old PR that shows a great use case for having a different
set of states for the server module. Before the other modules start
being in real use, pull this out so that we don't get ourselves into a
pickle.
11 years ago
Brian Coca 2d74bd4891 pulled in add_hosts docfix 11 years ago
Brian Coca dfc4fc5374 updated submodule refs 11 years ago
Toshio Kuratomi ac40ffa157 If remote_checksum fails because the dest is a directory, try a file within the dest.
Fixes #10300
11 years ago
Toshio Kuratomi d5af0ba346 Comment explaining return codes from checksum() 11 years ago
Brian Coca c81d981164 Merge pull request #10183 from bcoca/tag_control
adds complex tag management
11 years ago
Brian Coca a1e2ae083d Merge pull request #10320 from bcoca/ssh_fix_notokens
skips certain ssh errors and attempts to continue
11 years ago
Brian Coca 9ad8475be9 Merge pull request #9605 from msabramo/more_ssh_error_info
Display more info when SSH errors occur
11 years ago
Brian Coca 4fa51652b4 fixed typoe in combined_Vars 11 years ago
Brian Coca ce764063f1 corrected merge vs combined in all pertinent sections 11 years ago
Brian Coca e59b364641 changed from hash_merge to combine vars which resets default to
overwrite and not merge hashing
11 years ago
Matt Stephenson a2ea785d69 Add function to ipaddr for getting the nth host within a network 11 years ago
Matt Stephenson ce17f5e1ec Fix indentation 11 years ago
Brian Coca 65e68cdff9 Merge pull request #10316 from whereismyjetpack/winrm_https
plaintext https transport connecting over http
11 years ago
Toshio Kuratomi a6fbd83660 * Transform vars_prompt result to unicode type before returning (Fixes #10319)
* Rename prompt method as do_prompt to avoid potential bug when logging via a callback plugin
11 years ago
Toshio Kuratomi 920b71984e lists => frozenset as we're only using them in membership checks 11 years ago
Brian Coca b9aa8f07be skips certain ssh errors and attempts to continue
should fix #10225
11 years ago
Dann Bohn 5da5fa15c6 rm duplicate 11 years ago
Dann Bohn b9bfb22a9d fix https transport bug 11 years ago
Alvaro Lopez Ortega 2e929cf0ce Fixes bug #10281 - Trailing zeros were truncated from strings 11 years ago
Alvaro Lopez Ortega a14248ffe1 Fixes bug #10281 - Trailing zeros were truncated from strings 11 years ago
Brian Coca 6b64fe8bdd Merge pull request #9936 from sysadmin75/9415_hostname_as_dir
Fixes #9415 - fetch: should use hostname instead of ip for directory name
11 years ago
Brian Coca acbd096cf3 Merge pull request #10298 from bcoca/lookup_wantlist
Allow requesting a list to lookup plugins instead of , delimited string
11 years ago
Brian Coca 5d946ec4f2 adds cartesian product lookup 11 years ago
Brian Coca 1d90ff8b34 Merge pull request #10304 from dago/ldom
Add LDom support
11 years ago
Dagobert Michelsen c1dba60961 Use try block for field splitting 11 years ago
Dagobert Michelsen 90e760ba84 Add LDom support 11 years ago
Brian Coca 57674fa047 Allow requesting a list to lookup plugins instead of , delimited string 11 years ago
Brian Coca e842f8fab9 Merge pull request #10295 from bcoca/show_return_val_docs
ansible-doc now shows return value docs
11 years ago
Brian Coca c587bf1488 fixed absolute_import to be on top as it requries 11 years ago
Brian Coca c2023f6f59 Merge pull request #10285 from bcoca/math_filter_rearrange
rearranged math filters
11 years ago
Brian Coca 1e818f9c50 ansible-doc now shows return value docs 11 years ago
Brian Coca 8be8a7e2f5 Merge pull request #10277 from dago/solaris
Add Solaris zone support for inventory and connection

NOTE: the connection plugin will need some work for v2 (after 1.9 gets released)
11 years ago
Brian Coca 414737557e Merge pull request #10284 from mihirvj/devel-10221
Pulls machine id in ansible facts
11 years ago
Brian Coca e6ac2fa593 Merge pull request #10292 from dago/solaris-mounts
Add support for mounts in Solaris facts
11 years ago
Dagobert Michelsen b82a8576f1 Add support for mounts in Solaris facts 11 years ago
Brian Coca 7044b5a8d1 removed bare variable detection as this confuses people and forced us to allow for bare expressions 11 years ago
Brian Coca c92c4e7376 readded absolute_import 11 years ago
Brian Coca 8872bba21f rearranged math filters 11 years ago
Mihir Joshi 58a5f8dfaf Pulls machine id in ansible facts
- Fix #10221
11 years ago
Dagobert Michelsen 81f55ff8ff Adjust leftovers from chroot 11 years ago
jensdepuydt 730c2ba403 minor change to not search in non-existing paths 11 years ago
jensdepuydt adc0e8be97 Merge branch 'optimize-plugin-loader-10165' of github.com:ansible/ansible into optimize-plugin-loader-10165 11 years ago
Toshio Kuratomi 68e86de26f Optimize the plugin loader.
We have been caching the paths to the plugins but before we would only
cache the specific plugin that we were looking for.  This meant that we
might search through all of the plugin directories before finding the
specific module we were interested in.  The next plugin we needed we
might again search through all the plugin directories before finding the
plugin we wanted.

This new code will cache all the potential plugins in each directory
searched.  For a play that only uses one plugin we'll only search
through directories until we encounter the directory that has the proper
plugin.  For a large playbook with many plugins used we'll search
through each directory at most once each.

This should alleviate #10165
11 years ago
Dan Rue 67eb9f301d Do not mark "skipped" when changed is false
When using the "creates" option with the script module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
11 years ago
Dan Rue 787388ac30 Do not mark "skipped" when changed is false
When using the "creates" option with the unarchive module, set changed
to False if the file already exists. This behavior is consistent with
other modules which use "creates", such as command and shell.
11 years ago
Toshio Kuratomi 5738ee1cb3 Update core modules to fix new integration tests 11 years ago
Brian Coca 6f6c6fb32a Merge pull request #10259 from sivel/rax-boot-vol-v2
Add new rax_find_bootable_volume to assist with boot from volume
11 years ago
Toshio Kuratomi 8f9b761f3a Merge pull request #10128 from alxgu/fix_facts_for_sles
Fix wrong distribution facts on SLES/openSUSE
11 years ago
Stratos Moros 6caeded74e Fix umask calculation on file creation. Fixes #10257 11 years ago
Brian Coca 6a29251292 Merge pull request #10248 from hfinucane/gh-9888
Add `groups` back into inline templates
11 years ago
Brian Coca e41d48104f valutpass fix in password reorog 11 years ago
Brian Coca b2d5919d6d Merge pull request #10250 from cove/cyaml
improve yaml parsing performance by ~25% by using PyYAML's CParser loader
11 years ago
Brian Coca a022aed43d Merge pull request #10229 from bcoca/patch_not_require_dest
patch action plugin does not require dest
11 years ago
Toshio Kuratomi d0556885ff Update modules 11 years ago
Toshio Kuratomi c9fb97cc86 Be careful not to set the permissions of the destination of a symlink.
It's up to the module using the set_fs_attributes*/set_mode* methods to
specify the filename of the destination of the symlink if that's really
the file that should be modified.

Half of the fix for:
https://github.com/ansible/ansible-modules-core/issues/778
11 years ago
Alexander Gubin d291dae582 Exit loop after detecting os-release 11 years ago
Cove Schneider 825654a2fa parse yaml using cparser if present 11 years ago
Henry Finucane 2e4191c013 Add `groups` back into inline templates 11 years ago
Toshio Kuratomi 1e867b0b8e Fix the to_nice_yaml filter to always return unicode strings
Fixes #10243
11 years ago
Matt Martz cfd05ceafc Add new rax_find_bootable_volume to assist with boot from volume 11 years ago
Monty Taylor 4e4bdaad8d Remove auth_token parameter
It turns out that this can actually already be handled by the existing
auth plugin framework and does not need its own parameter. Remove before
it sees usage and causes confusion.
11 years ago
Brian Coca f6a6df2169 removed unused method 11 years ago
Brian Coca 65c08d1364 added tests
refactored task selection into method
list-tasks now uses common method of task selection
always is now skippable if specified in --skip-tags
11 years ago
Brian Coca 6fbbf9c118 simplified if conditions 11 years ago
Brian Coca 6579c5ddf5 fixed skipped tags 11 years ago
Brian Coca 95fa770ba0 adds complex tag management
Adds a special tag:
 - always: always runs no matter what --tags, --skip-tags say

Adds 4 special keywords for --tags/skip-tags
 - all: all tagged + untagged tasks
 - tagged: only tagged tasks
 - untagged: only untagged tasks
 - always: only run tasks tagged 'always'
11 years ago
Brian Coca f61de115cd updated version added for pkg5* 11 years ago
Brian Coca 64690691d3 updated to pickup fixed cpanm 11 years ago
Brian Coca 932fd2eda2 fixed vault pass also 11 years ago
Brian Coca 0087816b13 fixed varname su_pass 11 years ago
Brian Coca 69b76a48b0 dest is not required as patchfile can have that info 11 years ago
Brian Coca 5f2d5abeea ensure proper strings/unicodestrings for passwords
updated to correct to_bytes function
removed old to_bytes/to_unicode and repointed clients to new location
fixed unicode test
11 years ago
Toshio Kuratomi 9d605171a7 Didn't port isbasestring/isunicodestring from kitchen so switch to isinstance 11 years ago
Toshio Kuratomi 740bd8fbde Update to fix logentries issues 11 years ago
Toshio Kuratomi dd484e8211 Update modules 11 years ago
Brian Coca 62a6378c4a Merge pull request #8792 from bcoca/ternary_filter
ternary filter
11 years ago
Brian Coca 0912781357 Merge pull request #9421 from emonty/features/new-openstack
Add support for new OpenStack modules
11 years ago
Brian Coca 1b4f1e1756 Merge pull request #9555 from bcoca/low_cost_facts
allow fact objects to be instantiated w/o triggering all fact collection
11 years ago
Brian Coca fd987f5395 Merge pull request #9063 from sivel/extra-vars-adhoc
Allow ansible (ad-hoc) to support --extra-vars
11 years ago
Matt Martz 68358e31fb Allow ansible (ad-hoc) to support --extra-vars also 11 years ago
Toshio Kuratomi 6fe8865885 Return empty string if unable to read from some files during fact gathering so as not to change the values we return 11 years ago
Brian Coca 13d788021f Merge pull request #4820 from mscherer/add_local_config
Add path for user defined plugin
11 years ago
Monty Taylor 9b17918bc9 Add doc fragment for new OpenStack modules 11 years ago
Monty Taylor 8c7267f9b9 Add support for new OpenStack modules
Incoming cloud config for OpenStack is complex due to plugins and
deployer choices. Rather than having the logic spread all over the
OpenStack modules, centralize it in the module_utils code.
11 years ago
Brian Coca 788889225d Merge pull request #10078 from sgargan/consul
Ansible support for Consul
11 years ago
Brian Coca 0b8101aec3 Merge pull request #10141 from dresden-weekly/fix_#10051
fixes #10051 as suggested by @aikomastboom
11 years ago
Brian Coca c966eb5d80 Merge pull request #10015 from bcoca/nicer_json_errors
handle json load errors as ansible error instead of ugly stacktrace
11 years ago
Dagobert Michelsen 9cf8c3a901 Add support for Solaris zones 11 years ago
Nicolas Le Manchet faa2449f55 Set proper permissions for ansible-vault view 11 years ago
Toshio Kuratomi 10df1b898c Fix template module broken when modifying symlinks
Needed to clear unwanted parameters from both args and complex args when
calling file module.

Fixes #10208
11 years ago
Kirk Strauser ab33a0e666 Adds Kerberos authentication to winrm if available
If the `kerberos` module is available, winrm will attempt to establish a
Kerberized connection to a Windows server. This allows use of Windows
domain accounts, which are quite often the only kinds of accounts
enabled on enterprise networks.

This also pulls the `transport_schemes` variable up into the
`winrm.Connection` class. This lets tests or future modifications alter
the list of available schemas without reaching into `Connection.__init__`.
11 years ago
Brian Coca 416a4c3342 Merge pull request #10199 from bcoca/su_ssh_fix
fixes su/ssh with null prompt
11 years ago
Brian Coca f7ad6ad4de fixed issue with prompt == none and su + ask_pass in ssh plugin 11 years ago
Henk Wiedig 0a902a5afd make su promt AIX compatible
$ su suuser date
suusers's Password:
11 years ago
Brian Coca 75d3c6b104 Merge pull request #10185 from bcoca/valut_editor_missing_err
better missing editor message
11 years ago
Brian Coca 2f2fe734df Merge pull request #10192 from bcoca/patch_action_plugin
support for patch module to have master as src
11 years ago
Toshio Kuratomi 402a6d0533 Explicitly close files opened by facts
Fixes #10157
11 years ago
Brian Coca 476b0f6d99 support for patch module to have master as src 11 years ago
Toshio Kuratomi 425dee1afa Close some file handles explicitly in facts.py
Helps control open file descriptor count with pypy (which is used with
one coreos + ansible example).  Part of a fix for
https://github.com/ansible/ansible/issues/10157
11 years ago
Toshio Kuratomi 9db17afc85 Update modules 11 years ago
Toshio Kuratomi 4902c06304 Obfuscate passwords in more places where it is displayed 11 years ago
Brian Coca 8b7dc6bbfb better missing editor message
fixes #10182
11 years ago
Toshio Kuratomi 3f97fc2ba6 Merge pull request #10162 from jonhadfield/fix_2.4_hashing
correct typo that breaks hashing on python 2.4.
11 years ago
Brian Coca 07dfbaedc3 Merge pull request #9602 from cchurch/powershell_splatting
Handle PowerShell parameters passed via splatting
11 years ago
Jon Hadfield 6874f5056d correct typo that breaks hashing on python 2.4. 11 years ago
Alexander Gubin 1968f99691 Wrong OS_FAMILY declaration for openSUSE 11 years ago
Toshio Kuratomi 019f74dced Update modules 11 years ago
Brian Coca 1b8d0b68a8 Merge pull request #10158 from bcoca/hosts_better_error
more resilient errors for bad host declarations in play
11 years ago
Brian Coca cbbe2f4e26 more resilient errors for bad host declarations in play
should fix #10148
11 years ago
Brian Coca 7ea2aff272 Merge pull request #9772 from jszwedko/allow-template-for-retries
Allow retries to be templatable
11 years ago
Toshio Kuratomi 788e47b693 Correct filter specification 11 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
11 years ago
Toshio Kuratomi a04138a887 Add v2's unicode.py to utils so we can use unicode_wrap in the filter_plugins 11 years ago
Toshio Kuratomi 6d788629a2 Be explicit about unicode str transformation
Fixes #10126
11 years ago
Toshio Kuratomi 97438f0039 Update the modules 11 years ago
Toshio Kuratomi 0e5f86cce4 Import hash functions for filters from the new location so the plugins will work on v1 and v2 11 years ago
Toshio Kuratomi 1011959d88 Move the hashing util functions to their own file to mirror v2 11 years ago
Toshio Kuratomi b3af2f9bee Better error message 11 years ago
Toshio Kuratomi f6e8ddfd5f Use pass instead of bare None value 11 years ago
Toshio Kuratomi 624a8dd1d9 Replace large if-elif-else blocks with a dict-dispatcher 11 years ago
Toshio Kuratomi 616fda5767 First try at only failing if the filter is actually used. 11 years ago
Maciej Delmanowski 7e46554160 Add ipaddr() filter plugin 11 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
11 years ago
Brian Coca 540d13cf52 Merge pull request #9404 from mmoya/configure-retry-files
Configure retry file usage and location
11 years ago
Andreas Reischuck 6609f3ac03 fix suggested by @aikomastboom 11 years ago
Toshio Kuratomi ca35d138f1 Update modules 11 years ago
Toshio Kuratomi f355c11a3f Merge pull request #10129 from RadishTheHut/memfacts-fix
Fix for memory fact gathering
11 years ago
Brian Coca 7ab95e10f0 updated to latest core devel 11 years ago
Patrick McConnell 04b2c698ba Updated memory facts fix using dict.get() to avoid KeyError 11 years ago
Toshio Kuratomi 747cc26ae1 Update modules 11 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
11 years ago
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()
11 years ago
Brian Coca c73254543a made env var also consistent 11 years ago
Brian Coca 4fd760467b made inventory consistent in config file, deprecated old config hostfile 11 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
11 years ago
Brian Coca e4a7b973fd Merge pull request #9128 from msabramo/expose_more_user_facts
Expose more facts about user on host system
11 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.
11 years ago
Alexander Gubin 5dec45e24a Fix wrong distribution facts on SLES/openSUSE 11 years ago
Toshio Kuratomi 556d4f0025 Update core modules 11 years ago
Toshio Kuratomi 44fe38030f Update core modules for subversion fixes 11 years ago
Toshio Kuratomi 3d5523fbb7 Fix for unicode filenames for template module
Fixes #10110
11 years ago
Toshio Kuratomi 0aac6360e4 Update core modules 11 years ago
Brian Coca 990d08b63f Merge pull request #10113 from bcoca/url_lookup
Url lookup
11 years ago
Brian Coca 11005e7b28 Merge pull request #9839 from nousdefions/memfacts
Memfacts
11 years ago
Brian Coca 3d6b6edea9 added url lookup plugin 11 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
11 years ago
Toshio Kuratomi 975b547aaa Update core modules 11 years ago
Toshio Kuratomi a63e4c595f Another place that needs to be json_dict_bytes_to_unicode 11 years ago
Toshio Kuratomi 0f6b87d33e Revert "Fix import statements" -- those impotrt statements were right
before... something else is fishy

This reverts commit 8ab536fbf2.
11 years ago
Toshio Kuratomi 8ab536fbf2 Fix import statements 11 years ago
Toshio Kuratomi d3666f3265 Make py2.4 remote checksum large-file-enabled as well 11 years ago
Toshio Kuratomi 6f5d18a20e Merge pull request #10087 from axos88/devel
fix checksum calculation for large files
11 years ago
Toshio Kuratomi 335cf2f05f Update module repos 11 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
11 years ago
Brian Coca 9d190c8d8d Revert "Support variable values with dashes" 11 years ago
Brian Coca 13bbf9bfbb Merge pull request #9834 from nathancahill/fix-variables-with-dashes
Support variable values with dashes
11 years ago
Akos Vandra 03fa421f3f do not use with, it is not supported all the way down to 2.4 11 years ago
Akos Vandra e8144b3b90 fixes #10086 11 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
11 years ago
Toshio Kuratomi 53a3644ecd Update the modules 11 years ago
Toshio Kuratomi 364f772cc5 Fix quoting of shell parameters used in remote_checksum and add integration test to detect the error
Fixes #682
11 years ago
Brian Coca 54c25a101b Merge pull request #10029 from gaqzi/devel
Add filter to turn a string into a UUID
11 years ago
Toshio Kuratomi f2b1a289ed Update modules to pull in fixes 11 years ago
Toshio Kuratomi cce87acfed Fix integration test for unarchive to test zipfiles 11 years ago
Brian Coca 0e969aee06 updated submodules to latest devel 11 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.
11 years ago
Brian Coca 82abe63eb2 Merge pull request #10055 from digi691/devel
Add the uuid of the device in ansible_mounts variable
11 years ago
Toshio Kuratomi e6b5cc9ccb Merge pull request #9887 from lmacken/devel
Use send instead of sendv on the systemd.journal (fixes #9886)
11 years ago
cdigiovanni 99bcbe746f Add the uuid of the device in ansible_mounts variable 11 years ago
Brian Coca 2ef5d6be1e Merge pull request #9702 from bcoca/better_errors_on_delegate
better exception handling with delegated hosts
11 years ago
Brian Coca 23783a5228 Merge pull request #10014 from bcoca/inventory_script_errorhandle
ansible now captures returncode errors on inventory scripts
11 years ago
Brian Coca 2a9d5054bf Merge pull request #9995 from bcoca/hash_filters
Hash filters
11 years ago