James Cammarata
a9017af2bb
Adding validate_certs to all modules that use fetch_url
11 years ago
Michael DeHaan
cfabc2e28a
module.run_command is intended to bypass the shell here, so can't do ">>"
11 years ago
James Cammarata
7f38cff989
Remove unused code from get_ca_certs() function
11 years ago
James Cammarata
804e4166c8
Rewriting ssl validation to try multiple certs found in paths
...
Previously, the function checked only for a single CA root cert, however
some distributions may have multiple certs in a directory. This will now
try any .crt or .pem file contained within several common paths for
each platform.
Fixes #6412
11 years ago
Michael DeHaan
0b0ca95731
Expand environment variables and tildes passed to commands generically across the board.
11 years ago
James Tanner
0e38f5dfdc
Check for hash availability during vault operations
11 years ago
James Cammarata
6c25e78299
Merge branch 'devel' of https://github.com/dparalen/ansible into dparalen-devel
11 years ago
James Tanner
e4e64a9699
Rename lxc to libvirt_lxc
11 years ago
James Cammarata
bca6adc812
Merge pull request #4064 from mscherer/lxc
...
Add a plugin that permit to use ansible for lxc system, using libvirt
11 years ago
James Cammarata
430cce9df3
Merge branch 'ec2_security_token' of https://github.com/willthames/ansible into willthames-ec2_security_token
11 years ago
James Tanner
6740a1f342
Wrap crypto.hash imports with try/except
11 years ago
Michael DeHaan
411bcb7161
Merge remote branch 'real/devel' into devel
11 years ago
Michael DeHaan
2fa6110961
Update the message about pycrypto to include that python-devel must be installed.
11 years ago
James Tanner
0d6f6ad282
Implement new default cipher class AES256
11 years ago
Michael DeHaan
20f0157152
Merge pull request #6378 from franckcuny/headers-gce-utils
...
Add BSD license to module_utils/gce.py
11 years ago
James Tanner
ba0fec4f42
Force command action to not be executed by the shell unless specifically enabled
11 years ago
James Cammarata
9730157525
Validate SSL certs accessed through urllib*
...
* Adds another module utility file which generalizes the
access of urls via the urllib* libraries.
* Adds a new spec generator for common arguments.
* Makes the user-agent string configurable.
Fixes #6211
11 years ago
James Cammarata
6577ff5f85
Add tags from handlers to tag availability calculation
11 years ago
Richard Isaacson
4993cb57f4
Merge pull request #6283 from magicrobotmonkey/upstream
...
fix missing stdin in _parallel_runner
Tested with GIST https://gist.github.com/risaacson/7290d30a612e0c70ea1b .
Passes "make tests"
Passes non_destructive tests.
11 years ago
Franck Cuny
82f99bfa3d
Add BSD license to module_utils/gce.py
11 years ago
Matt Martz
4b400ca5e9
Only used stripped data for testing if the file is json, but used unstripped when actually parsing. Fixes #6348
11 years ago
Seth Woodworth
1d5db30067
Updates loop warning, removes unnecessary c
11 years ago
James Cammarata
04a6dc6d12
Check for skipped tags in passed role variables before adding to them
...
Fixes #6330
11 years ago
Michael DeHaan
d2cb35f898
Merge pull request #6320 from angstwad/instance-redo
...
Use isinstance() rather than a check using type()
11 years ago
James Cammarata
4753804ab4
Merge pull request #6332 from jimi-c/issue_6329_space_in_var
...
Correctly catch template errors without returning invalid data
11 years ago
James Cammarata
e3b887f770
Fix range issue in inventory and add additional error checking
...
Fixes #6331
11 years ago
James Cammarata
3cd7d47b7e
Correctly catch template errors without returning invalid data
...
Fixes #6329
11 years ago
James Cammarata
f80d02d841
Properly wrap logical elements together for su/sudo detection
11 years ago
James Cammarata
b6056044b7
Partial revert of 73c883c
due to issues with handlers in roles
...
Fixes #6322
11 years ago
Michael DeHaan
e486dbab04
Use the loaded variable since we have it assigned, not just for error detection.
11 years ago
Michael DeHaan
3f07ec3d73
Fixup JSON error reporting in previous commits.
11 years ago
Michael DeHaan
a4d01b0891
Also search .json filenames
11 years ago
Michael DeHaan
79799f6819
Allow any file that can be in YAML to also be in JSON. This is primarily done to support non-visual editors better.
11 years ago
James Cammarata
a0f939581d
Merge branch 'aresch-devel' into devel
11 years ago
Paul Durivage
3cce3650e5
Use isinstance() rather than a check using type()
11 years ago
Richard Isaacson
119434d079
Merge pull request #6319 from risaacson/fix_test_dir_inventory
...
Fix TestInventory Unit Tests
Tested clean.
11 years ago
James Cammarata
9b79591f23
Merge branch 'devel' of https://github.com/aresch/ansible into aresch-devel
11 years ago
James Cammarata
2a0028e687
Sanitize run_command argument output
...
Fixes #6316
11 years ago
Andrew Resch
4d80019ac8
Fix logic checking for both sudo and su, and their respective users
11 years ago
Richard C Isaacson
16fe09eef8
Fixes related to uncommenting test_dir_inventory in TestInventory.
...
0. Uncomment the test.
1. Test fails.
2. Make vars unique per file in test inventory files.
3. Modify token addition to not ast.literal_eval(v) a variable containing a hash.
4. Modify vars to have an escape in test inventory file.
5. Catch exceptions explicitly. Any unknown exceptions should be a bug.
6. Test passes.
11 years ago
James Cammarata
9f2999df79
Un-escape newlines in delimiters for assemble module
11 years ago
Brian Coca
79809b67dc
fixed another line with same issues
...
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
11 years ago
Brian Coca
d3d5680d8f
tags lists are properly uniqued and joined now, also avoids type issues when passed as list/set or strings
...
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
11 years ago
Will Thames
b9a7352e0a
Work to allow security tokens and profiles to work with Ansible
...
Allow security tokens and profiles to be used as arguments
to the 'common' ec2 modules
Mostly refactoring to provide two new methods,
`get_aws_connection_info`, which results in a dict that can be
passed through to the boto `connect_to_region` calls, and
`connect_to_aws` that can pass that dict through to the
`connect_to_region` method of the appropriate module.
Tidied up some variable names
Works around boto/boto#2100
profiles don't work with boto < 2.24, but this detects for that
and fails with an appropriate message. It is designed to work
if profile is not passed but boto < 2.24 is installed.
Modifications to allow empty aws auth variables to be passed
(this is useful if wanting to have the keys as an optional
parameter in ec2 calls - if set, use this value, if not set,
use boto config or env variables)
Reworked validate_certs improvements to work with refactoring
Added documentation for profile and security_token to affected modules
11 years ago
James Cammarata
0e98496e12
Merge pull request #6299 from jimi-c/issue_4656_role_deps_across_plays
...
Keep track of role dependencies across plays
11 years ago
Michael DeHaan
94a7fb60fe
Allow escaped comments in inventory files.
11 years ago
aresch
23a0468a4b
Fix respecting remote_tmp when sudo is used
11 years ago
James Tanner
4e8ed92130
Fixes #6077 decode escaped newline characters in content for the copy module
11 years ago
Richard C Isaacson
b41d8106ff
Revert "Merge pull request #6287 from risaacson/fix_hash_in_var"
...
This reverts commit a808287451
, reversing
changes made to 6129ea7566
.
11 years ago
James Cammarata
73c883c122
Keep track of role dependencies across plays
...
Also fixes a bug in which tags specified on top-level roles were
not being passed down to dependent roles.
Fixes #4656
11 years ago