Commit Graph

1415 Commits (418445d3c503b4855ad96aa87ccc4150afd6da35)
 

Author SHA1 Message Date
bradobro e8583833a7 test-module uses optparse with --debugger
Refactored hacking/test-module

1. uses optparse

2. has --debugger option

tested only with pdb on Python 2.7
13 years ago
bradobro ade0233d57 Refactoring test-module to be more like ansible. 13 years ago
Michael DeHaan 08ece6c54a update changelog 13 years ago
Michael DeHaan 617f9dc942 Added some caching logic to improve external inventory scripts, removed some debug statements. 13 years ago
Michael DeHaan 57f12ac9e3 Using __slots__ in more places, in particular, hosts and groups, where we are apt to create a fair amount of objects. 13 years ago
Michael DeHaan 84e1d21b9c Merge pull request #651 from marktheunissen/mysql_user_upgrade
Upgrading MySQL user module to new format
13 years ago
Mark Theunissen 12e23a1a6c Upgrading MySQL user module to new format 13 years ago
Michael DeHaan 0b891fc8fb Tweaking daisychain internals to allow get_url to modify the path destination when downloading to a directory.
Minor module refactoring.
13 years ago
Michael DeHaan 46650cfcec Merge branch 'get_url3' of https://github.com/jpmens/ansible into devel 13 years ago
Michael DeHaan 396b81b647 Remove this check as it wasn't really needed and in recent refinements keeps the group_vars stuff from working
as desired.
13 years ago
Michael DeHaan 492953f299 Merge pull request #650 from sfromm/newgroup
Update group module to use new shared module code
13 years ago
Stephen Fromm 1a9c54b1e1 Update group module to use new shared module code 13 years ago
Michael DeHaan 636a3367b5 Merge pull request #649 from marktheunissen/mysql_db_upgrade
Upgrading mysql_db to new shared module code
13 years ago
Mark Theunissen efb60776f4 Upgrading to new shared module code 13 years ago
Michael DeHaan 9f149c9f1a imports not needed 13 years ago
Michael DeHaan d0f4358730 Port the copy module over to the new "common module" logic. 13 years ago
Michael DeHaan d76c8c9c85 Various cleanup around runner's constructor and how daisy chaining is invoked. 13 years ago
Michael DeHaan 1682dd06c0 Avoid duplicate call to fetch inventory variables 13 years ago
Michael DeHaan 54c9c1e25c Some streamlining of first_available_file code 13 years ago
Jan-Piet Mens b8d7b5041b new module: get_url
get module (with new module-magic-code!)
	Usage: ansible -m get -a "url=http://xxxxxxx  dest=fileordirctory"
	all cleanups as per @mpdehaan's suggestions
	add daisychain
	added example playbook (get_url.yml) with URLencode example
13 years ago
Michael DeHaan 2d06ee4c0d Fix some subtle things that were keeping 'hostvars' from being usable in templates. 13 years ago
Michael DeHaan 2b6d8a8be5 Fix some issues with the setup cache 13 years ago
Michael DeHaan dde11baa56 Remove YAML inventory tests since this is now deprecated. 13 years ago
Michael DeHaan 5a67a556cd Script to migrate YAML users to the INI format, so we can deprecate YAML inventory (which we are now doing). 13 years ago
Michael DeHaan b15dde6b9f update changelog 13 years ago
Michael DeHaan dcca08b27b Don't let with_items erase 'hostvars' 13 years ago
Michael DeHaan b574c70006 host and group vars should update the setup cache 13 years ago
Michael DeHaan ba3466af95 The following paths are now implict and optional in vars_files:
./group_vars/groupname.yml (for all groups the host is in)
./host_vars/hostname.yml (for the hostname given in the inventory)

This requires an actual inventory file, not script and the paths are relative
to the directory of the inventory file.
13 years ago
Michael DeHaan db1a4d8fac Make 'assemble' use the new daisychain logic 13 years ago
Michael DeHaan 6fb74ae2f9 preserve 'changed' attributes in daisychain logic 13 years ago
Michael DeHaan d72c0c8898 replace module daisy-chaining logic 13 years ago
Michael DeHaan a33713234c Merge pull request #645 from sfromm/issue643
Skip get_ipv6_facts if socket.has_ipv6 is false
13 years ago
Stephen Fromm 2a0dfba838 Skip get_ipv6_facts if socket.has_ipv6 is false 13 years ago
Michael DeHaan b0eedfbf92 Merge pull request #639 from goozbach/issue-627
improved output in with_items fixes: #627
13 years ago
Michael DeHaan 85b9fa580c Merge pull request #644 from bradobro/common_fix
AnsibleModule now correctly reads param values with '"'.
13 years ago
bradobro a4a09fec82 AnsibleModule (in module_common.py) now correctly reads param values containing '='. 13 years ago
Michael DeHaan 290e1af339 Merge pull request #640 from sfromm/fancy
Sanitize possible password argument when logging invocation
13 years ago
Stephen Fromm 8195375412 Sanitize possible password argument when logging invocation; taken from user module 13 years ago
Derek Carter 34e2584220 improved output in with_items fixes: #627 13 years ago
Michael DeHaan baf07659f7 Merge pull request #638 from sfromm/issue604
Fix for issue 604
13 years ago
Stephen Fromm fd059a3df2 Fix for issue 604
Do not switch to master branch in pull()
Add --track to git checkout, when checking out a remote branch to track.
13 years ago
Michael DeHaan 70ef8e9ebb Merge pull request #637 from goozbach/git-mkdir
git mkdir causes problems with older git (can't c/o to existing directory)
13 years ago
Derek Carter f0f8eb3445 git mkdir causes problems with older git (can't checkout to existing directory) 13 years ago
Michael DeHaan dba87fce91 Merge pull request #636 from preyk-work/devel
fixed debian changelog format
13 years ago
K. Preyk b0b7484390 fixed debian changelog format 13 years ago
Michael DeHaan 6e84374c2a Make hostvars work post refactoring 13 years ago
Michael DeHaan 31b6c1c28e Merge pull request #630 from cocoy/ssh-ubuntu
Suppress Ubuntu ssh -tt getting ioctl error.
13 years ago
Michael DeHaan b114a6075f Merge pull request #631 from sfromm/facts
Update setup module for facts derived from classes - take 2
13 years ago
Michael DeHaan d69e70db01 By defining a main function here, and including it ahead of the boilerplate insertion symbol, tracebacks are
now accurate with respect to the main function, but may include lines not in the original file.  A lot better
than before, where they were offset.
13 years ago
Stephen Fromm 0efc0bec89 Update LinuxNetwork to not use fcntl and ioctls
get_interfaces() updated to read /proc/net/dev.  This means it no
longer provides only interfaces that are up.

get_iface_hwaddr() updated to read from /sys/class/net/<iface>/address.

Added get_interface_facts() to pull in mac address and interface mtu.
Can be used later for additional interface-facts.

Added get_ipv6_facts(), which reads from /proc/net/if_inet6.

get_network_facts() renamed to get_ipv4_facts().  It still calls
ifconfig to determine ipv4 facts.
13 years ago