summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge pull request #18424 from dmsimard/patch-1scottb2016-11-101-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Update the link to the os-client-config repository
| * | | | | Update the link to the os-client-config repositoryDavid Moreau Simard2016-11-081-1/+1
| | | | | | | | | | | | | | | | | | This is a trivial change -- os-client-config has moved from /stackforge/ to /openstack/ a long time ago.
* | | | | | Fix doc typos and one entirely incorrect assertionAbhijit Menon-Sen2016-11-101-3/+3
| | | | | |
* | | | | | changelog: add FreeIPA modulesRene Moser2016-11-091-0/+10
| | | | | |
* | | | | | Fix docker connection unit tests.Matt Clay2016-11-091-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use assertRaisesRegexp to make sure correct exceptions are raised. - Set docker_command to avoid docker dependency (skips find_executable). - Use a fake path for docker_command to make sure mock.patch is working.
* | | | | | Fix handling of ReaderError in validate-modules.Matt Clay2016-11-091-2/+17
| | | | | |
* | | | | | Merge pull request #18422 from evgeni/fix-dynamic_inventory_intro-rstscottb2016-11-081-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | fix formating on the intro_dynamic_inventory page
| * | | | | | fix formating on the intro_dynamic_inventory pageEvgeni Golov2016-11-081-2/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * don't mark `./ec2.py --refresh-cache` as a comment * format `./openstack.py --refresh --list` as code * format `--refresh` as code
* | | | | | Merge pull request #18244 from Yannig/devel_doc_json_queryscottb2016-11-081-0/+65
|\ \ \ \ \ \ | | | | | | | | | | | | | | json_query documentation.
| * | | | | | Update playbooks_filters.rstscottb2016-11-081-13/+13
| | | | | | | | | | | | | | | | | | | | | Edited for grammar, spelling, mechanical.
| * | | | | | json_query documentation.Yannig Perré2016-11-071-0/+65
| | | | | | |
* | | | | | | Merge pull request #18249 from bwlz/install_doc_updatesscottb2016-11-081-84/+101
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Installation document updates
| * | | | | | | Update intro_installation.rstscottb2016-11-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Minor edits for readability.
| * | | | | | | Move source install to the bottom of the documentAllyson Bowles2016-10-291-85/+82
| | | | | | | |
| * | | | | | | Add Debian-specific installation methodAllyson Bowles2016-10-291-0/+20
| | | | | | | |
* | | | | | | | Merge pull request #18306 from zerOnepal/HEADscottb2016-11-081-3/+15
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | improving readme on dynamic inventory for ec2.ini options
| * | | | | | | | Update intro_dynamic_inventory.rstscottb2016-11-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Minor edits for readability.
| * | | | | | | | improving readme on dynamic inventory for ec2.ini optionsMilan Thapa2016-11-021-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | few lines to avoid these noise: https://github.com/ansible/ansible/issues/10840
* | | | | | | | | add connection var delegation/lookup fix to roadmapMatt Davis2016-11-081-0/+1
| | | | | | | | |
* | | | | | | | | Update ROADMAP_2_3.rst (#18426)John R Barker2016-11-081-1/+1
| | | | | | | | |
* | | | | | | | | Add error info if tabs are found in the yaml (#18343)Adrian Likins2016-11-084-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a yaml file fails to load because of tabs being used for formatting, detect that and show a error message with more details.
* | | | | | | | | Ansible Core 2.3 Roadmap (#18421)Jason McKerr2016-11-081-1/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial checkin. needs annotation at the top, dates, and review * Update ROADMAP_2_3.rst cleanup and add notes at the top * Update ROADMAP_2_3.rst fix indentation
* | | | | | | | | ansible-logstash-callback (#18282)Ievgen Khmelenko2016-11-081-0/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ansible-logstash-callback * GPL v3 license preamble, ImportError * Update logstash.py
* | | | | | | | | ini lookup: add 'default' to the list of parsed keysJames Tanner2016-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #18369
* | | | | | | | | restore play_hosts variables to not show removedBrian Coca2016-11-084-6/+10
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Also adds ansible_play_hosts_all with original list of hosts the play targeted
* | | | | | | | clarified ansible_ssh_host to not imply removalBrian Coca2016-11-081-1/+1
| | | | | | | |
* | | | | | | | Merge class dict with parent dict when creating meta attributesJames Cammarata2016-11-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some situations, where the Base class defines an Attribute, the BaseMeta class doesn't properly see the _get_parent_attribute or _get_attr_<whatever> methods because of multiple layers of subclasses (ie. Handler, which subclasses Task). This addresses that by merging the __dict__ of the parent with the current classes __dict__ meaning all future iterations see available special methods. Fixes #18378
* | | | | | | | Clean up code-smell sanity scripts. (#18407)Matt Clay2016-11-077-41/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace find ';' with '+' for faster execution. - Replace grep -R with -r to avoid recursive warnings. - Exclude .git and .tox directories from recursive grep. - Improve messaging on failed sanity checks. - Add no-basestring check to Shippable.
* | | | | | | | Add empty-init code-smell script. (#18406)Matt Clay2016-11-0727-487/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also removed boilerplate from otherwise empty __init__.py files which should not contain any code (checked by empty-init script).
* | | | | | | | Remove direct calls to print and cleanup importsToshio Kuratomi2016-11-074-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All display of information should go through display instead of through print.
* | | | | | | | File attributes (#18213)Brian Coca2016-11-073-1/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added attributes to base file params * dont change attributes when none * fixed test to deal with new attributes
* | | | | | | | added 'friendly' name to fact gatheringBrian Coca2016-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #18198
* | | | | | | | skip vmware inventory when missing libBrian Coca2016-11-071-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #18190
* | | | | | | | Detect virtualisation on netbsd (#18381)Michael Scherer2016-11-071-33/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor OpenBSD sysctl based detection in a separate class The idea is later to reuse this code for NetBSD and FreeBSD, who use a different sysctl key for vendor and product. * Add detection of virtualisation on NetBSD * Add support to detect running as a Xen guest tested on NetBSD 7 on Rackspace.
* | | | | | | | Add DMI facts on NetBSD and refactor code (#18388)Michael Scherer2016-11-071-24/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for OpenBSD dmi fact gathering * Refactor get_sysctl in the Hardware class Due to difference between Darwin/NetBSD and OpenBSD, we have to change the regexp used split the key/value * Add support for dmi facts on NetBSD
* | | | | | | | Move mdt dynamic inventory plugin into contrib/inventory where itToshio Kuratomi2016-11-072-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | belongs
* | | | | | | | Provide MDT Dynamic Inventory script (#18352)jbarnett19812016-11-072-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add files via upload * Update mdt_dynamic_inventory.py Adding maintainer name in docstring fixing deprecated print syntax on a few lines fixing configparser import to support python2 and python3 * Update mdt_dynamic_inventory.py * Update mdt_dynamic_inventory.py Adding --host functionality
* | | | | | | | Text's .translate() is easier to use than bytesToshio Kuratomi2016-11-071-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Text strings and byte strings both have a translate method but the byte string version is harder to use. It requires a mapping of all 256 bytes to a translation value. Text strings only require a mapping from the characters that are changing to the new string. Switching to text strings on both py2 and py3 allows us to state what we're getting rid of simply without having to rely on the maketrans() helper function.
* | | | | | | | Update log url for Shippable download-logs script.Matt Clay2016-11-071-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also improved error handling.
* | | | | | | | Remove duplicate declaration of human_to_bytesMichael Scherer2016-11-071-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is already declared in basic.py, in a more complete way.
* | | | | | | | Add tunnel linux (#18118)Michael Scherer2016-11-071-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor the type selection of network device under linux * Add the tunnel type to the type of net interface under Linux
* | | | | | | | Make facts detection work on OpenBSD with Python3Michael Scherer2016-11-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The traceback is the following: Traceback (most recent call last): File \"/tmp/ansible_8s0bj604/ansible_module_setup.py\", line 134, in <module> main() File \"/tmp/ansible_8s0bj604/ansible_module_setup.py\", line 126, in main data = get_all_facts(module) File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 3641, in get_all_facts File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 3584, in ansible_facts File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 1600, in populate File \"/tmp/ansible_8s0bj604/ansible_modlib.zip/ansible/module_utils/facts.py\", line 1649, in get_memory_facts TypeError: translate() takes exactly one argument (2 given) And the swapctl output is this: # /sbin/swapctl -sk total: 83090 1K-blocks allocated, 0 used, 83090 available The only use of the code is to remove prefix in case they are present, so just replacing them with empty space is sufficient.
* | | | | | | | Add support for KVM in the Solaris virt detectionMichael Scherer2016-11-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | smbios -i 256 return: # smbios -i 256 ID SIZE TYPE 256 77 SMB_TYPE_SYSTEM (system information) Manufacturer: Red Hat Product: KVM Version: RHEL 6.4.0 PC UUID: 8a3b8b1a-ba59-1a4b-5f85-ab53a5a885a9 Wake-Up Event: 0x6 (power switch) SKU Number: Family: Red Hat Enterprise Linux
* | | | | | | | Add xen guest detection on FreeBSDMichael Scherer2016-11-071-0/+10
| | | | | | | |
* | | | | | | | Fix media_type detection on NetBSDMichael Scherer2016-11-071-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On NetBSD 7.0.1, ifconfig return this: $ ifconfig ne0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ec_capabilities=1<VLAN_MTU> ec_enabled=0 address: 00:20:91:45:00:78 media: Ethernet 10baseT full-duplex inet 192.168.156.29 netmask 0xffffff00 broadcast 192.168.156.255 Which result into setup returning this: "media_type": "ull-duplex", So we have to specialise that method, since FreeBSD ifconfig return something like this: ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=80009<RXCSUM,VLAN_MTU,LINKSTATE> ether 00:20:91:a7:48:45 inet 192.168.156.11 netmask 0xffffff00 broadcast 192.168.156.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
* | | | | | | | Fix type detection on OpenSolaris for loopback interfaceMichael Scherer2016-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract of ifconfig output: # ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 rtls0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3 inet 192.168.125.125 netmask ffffff00 broadcast 192.168.125.255 ether 0:20:91:83:45:82
* | | | | | | | Removing the shebang and the execution permission so the command be prefixed ↵David Côté-Tremblay2016-11-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with python2 or python3 as needed
* | | | | | | | Fix bug (#18355) where encrypted inventories fail 18355 (#18373)Adrian Likins2016-11-076-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix bug (#18355) where encrypted inventories fail This is first part of fix for #18355 * Make DataLoader._get_file_contents return bytes The issue #18355 is caused by a change to inventory to stop using _get_file_contents so that it can handle text encoding itself to better protect against harmless text encoding errors in ini files (invalid unicode text in comment fields). So this makes _get_file_contents return bytes so it and other callers can handle the to_text(). The data returned by _get_file_contents() is now a bytes object instead of a text object. The callers of _get_file_contents() have been updated to call to_text() themselves on the results. Previously, the ini parser attempted to work around ini files that potentially include non-vailid unicode in comment lines. To do this, it stopped using DataLoader._get_file_contents() which does the decryption of files if vault encrypted. It didn't use that because _get_file_contents previously did to_text() on the read data itself. _get_file_contents() returns a bytestring now, so ini.py can call it and still special case ini file comments when converting to_text(). That also means encrypted inventory files are decrypted first. Fixes #18355
* | | | | | | | On python 3.5, sys.subversion have been removedMichael Scherer2016-11-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So to get the type of the python interpreter, we need to look at sys.implementation.name which do not return 'cpython', instead of 'CPython', but that's upstream breakage, so not much we can do.
* | | | | | | | Merge pull request #17201 from trondhindenes/windows_module_docsscottb2016-11-061-1/+18
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Windows module docs