Commit Graph

662 Commits (add3a2a2dac464195e396c12a0fdf121cf95e00c)

Author SHA1 Message Date
Brian Coca 5f8db9cd4b changed verbose_override to the new _ansible_verbose_override to keep in line with previous changes
output now defaults back to having indent=4
11 years ago
Trapier Marshall 250620f2ab Add pciid to LinuxNetwork interface fact
This commit adds pciid to the LinuxNetwork fact object.

pciid is gathered if the symlink /sys/class/net/*/device exists.

Example [>>>> emphasis <<<<]:

$ readlink /sys/class/net/eth0/device
../../../0000:01:00.0

$ ansible localhost --ask-pass -i /tmp/hosts -m setup -a "filter=ansible_eth0"
SSH password:
localhost | success >> {
    "ansible_facts": {
        "ansible_eth0": {
            "active": false,
            "device": "eth0",
            "macaddress": "0c:d2:92:5d:6e:8e",
            "module": "alx",
            "mtu": 1500,
       >>>> "pciid": "0000:01:00.0", <<<<
            "promisc": true,
            "type": "ether"
        }
    },
    "changed": false
}
11 years ago
Brian Coca 8746e692c1 changed check to allow for powerpc
fixes #11528
11 years ago
Toshio Kuratomi d2346fd2e2 Python2.4 compat fix 11 years ago
Toshio Kuratomi 6a68be4e28 Handle quoting of values in dict parameters 11 years ago
Reed Loden eb1fb41576 Add several DNS-related facts by parsing /etc/resolv.conf
Facts include nameservers, domain, search path, sortlist, and options.
11 years ago
Toshio Kuratomi 8ee3b7384d Guard the PROTOCOL setting so that we work on older pythons 11 years ago
Brian Coca 3bf1edfd96 Merge pull request #11591 from defionscode/boto3
Connection function for boto3
11 years ago
Toshio Kuratomi ddec06ccfe Detect the old python-json library
Fixes #11654
11 years ago
Toshio Kuratomi a0a6d12b05 Merge pull request #11603 from ansible/get_url-tls-compat
Have openssl autonegotiate tls protocol on python < 2.7.9
11 years ago
Brian Coca 03d7c8d7ca fixed new HPUX networking facts 11 years ago
Brian Coca 91f2acb029 Merge pull request #10203 from pdelared/devel
Add HP-UX network facts
11 years ago
Brian Coca 4f98fac494 Merge pull request #10914 from bcoca/non_posix_file_copy_fix
hack to prevent tempalte/copy errors on vagrant synced folders
11 years ago
Indrajit Raychaudhuri 4553a41ab5 Add homebrew to package managers' list 11 years ago
Jonathan Davila 6ea772931f Connection function for boto3
Boto3 conn
11 years ago
Toshio Kuratomi 3d3e1c82a2 Have openssl autonegotiate tls protocol on python < 2.7.9
This allows usage of tls-1.1 and tls-1.2 if the underlying openssl
library supports it.  Unfortunately it also allows sslv2 and sslv3 if
the server is only configured to support those.  In this day and age,
that's probably something that the server administrator should fix
anyhow.
11 years ago
Toshio Kuratomi 327b1676a8 Add support for SNI and TLS-1.1 and TLS-1.2 to the fetch_url() helper
Fixes #1716
Fixes #1695
11 years ago
Brian Coca 8793308c39 made md5 into generic checksum function that uses sha now 11 years ago
Iiro Uusitalo 4e7542af37 Merge upstream changes 11 years ago
Iiro Uusitalo 403f4881ee Enables 'basic auth force' -feature globally 11 years ago
Toshio Kuratomi dd058a1dc2 Fix required_if (needed to pass list to _count_terms) 11 years ago
Brian Coca 2c9d1257ba put type checking before looking against choices array to always get type comparrison correctly 11 years ago
Jon Hadfield 82e00b1022 add facts for datetime 8601 basic and basic short. 11 years ago
Spencer Krum 3887173c2c Use cfacter instead of facter if possible
CFacter is the facter replacement written in C++. It is available from
the puppetlabs repo.
11 years ago
verm666 d91947ee96 facts: add aliases to ansible_all_ipv4_addresses on OpenBSD 11 years ago
James Cammarata cf51d0a790 Fixing up some check-mode stuff 11 years ago
James Cammarata 7fa37870c8 Merge pull request #9683 from justinwyer/logical-block-size-and-sectors-9549
Disk size for advanced drives over 2 TB is incorrect
11 years ago
Toshio Kuratomi be6db1a730 Refactor the argspec type checking and add path as a type 11 years ago
Rene Moser 7952723530 cloudstack: fix domain name is not unique, use full path 11 years ago
Rene Moser b9b1e294d7 cloudstack: add get_or_failback() 11 years ago
Toshio Kuratomi 9911a947ed Vendorize match_hostname code so that ansible can push it out to clients along with the code that uses it. 11 years ago
Toshio Kuratomi 160e71e2cf Some flake8 cleanup 11 years ago
Toshio Kuratomi a1a7d6c462 Fix forwarding the user-given params from fetch_url() to open_url() 11 years ago
Dag Wieers 4ca4d36ae6 Change syslog (priority) level from LOG_NOTICE to LOG_INFO
If you look at the meaning of the different syslog levels, NOTICE means that the event may need someone to look at it. Whereas INFO is pure informational.

Since module invocations are in fact requested (deliberate) actions, they shouldn't need any additional post-processing, and therefore should not be logged as NOTICE.

This may seem like hairsplitting, but correctly categorizing system events helps weeding through the noise downhill.

According to Wikipedia: https://en.wikipedia.org/wiki/Syslog

5 	Notice 		notice 	Events that are unusual but not error conditions .
6 	Informational 	info 		Normal operational messages -no action required. Example an application has started, paused or ended successfully.
11 years ago
Brian Coca d7fcd9456a Merge pull request #11288 from kstrauser/aixfixes
Don't panic if AIX's uname doesn't support -W
11 years ago
Kirk Strauser eb820837ac Don't panic if AIX's uname doesn't support -W
The current code expects "uname -W" on AIX to always succeed. The AIX 5
instance I have doesn't support the -W flag and facts gathering always
crashes on it.

This skips some WPAR handling code if "uname -W" doesn't work.
11 years ago
Kirk Strauser 935da01068 Fixes for FreeBSD get_memory_facts
- swapinfo on FreeBSD 6 (maybe 7 too?) doesn't support the "-m" flag for
  fetching amounts in megabytes. This patch fetches amounts in kilobytes
  and divides by 1024 (and also returns the result as an int instead of
  a string).

- When no swap is configured, swapinfo prints a header line and nothing
  else:

    $ swapinfo
    Device         1K-blocks     Used    Avail Capacity

  The old version unexpectedly parsed that header line and emitted
  nonsense values like:

    "ansible_swapfree_mb": "Avail"
    "ansible_swaptotal_mb": "1K-blocks"

  This version emits those items altogether.
11 years ago
Toshio Kuratomi 4161d78a94 Split the fetch_url() function into fetch_url and open_url().
open_url() is suitable for use outside of a module environment.  Will
let us use open_url to do SSL cert verification in other, non-module
code.
11 years ago
Brian Coca f174682e19 facts should now not be overriten with NA option unless they are NA
this way we don't need a break per distro that matched already with
the python default functions
11 years ago
Brian Coca aa6e204b6e Merge pull request #11115 from jhawkesworth/second_go_at_fixing_1404
Part fix for https://github.com/ansible/ansible-modules-core/issues/1404 (replaces #11086)
11 years ago
Rene Moser 0b074c449b cloudstack: methods renaming 11 years ago
Rene Moser 7b3dd55c3d cloudstack: remove unused methods used for backward compatibility 11 years ago
Rene Moser fc3020c57a cloudstack: prevent getting the wrong project.
Since we use domain and account data to filter the project, listall is not needed and can return the wrong identical named project of another account if root admin permissions are used.

Fixed projects names are not case insensitive.
11 years ago
Etienne CARRIERE 94fa5e8794 Simplify Fully Qualified function 11 years ago
Etienne CARRIERE 5204d7ca88 Add common fonctions for F5 modules (FQ Name functions) 11 years ago
Rene Moser caf3cf6930 cloudstack: add timeout to utils 11 years ago
James Cammarata e547e1f9ba Merge branch 'devel' into devel_switch_v2 11 years ago
James Cammarata fe41f109a9 Merge branch 'v2_final' into devel_switch_v2 11 years ago
James Cammarata 4bc7703db3 Fixing some small bugs related to integration tests (v2) 11 years ago
Jon Hawkesworth 30b92a6f4c Get-FileChecksum allways returns a string now,
and the test_win_copy integration tests that depend on the checksum
have been updated in this change too.
11 years ago
Brian Coca 9a90ca5a36 Merge pull request #11062 from Etienne-Carriere/factor_f5
Factor primitives for F5 modules
11 years ago
sysadmin75 816b20af0b Fixes #11046 11 years ago
sysadmin75 908d6c0ef2 Fixes #11046 11 years ago
Brian Coca 7e020d21de correctly identify ubuntu now in all cases
made NA the last resort
11 years ago
Brian Coca a8c290cc3b fixed ubuntu facts for all versions
made sure NA is option of last resort
11 years ago
Monty Taylor b659621575 Remove unneeded required_one_of for openstack
We're being too strict - there is a third possibility, which is that a
user will have defined the OS_* environment variables and expect them to
pass through.
11 years ago
Toshio Kuratomi 2924c90a5d Merge pull request #10977 from emonty/fix-envvars
Fix envvars support in openstack modules
11 years ago
Jon Hawkesworth 12691ce109 Add -Compress to ConvertTo-Json calls in common powershell code 11 years ago
Jon Hawkesworth 9371c38af9 Add -Compress to ConvertTo-Json calls in common powershell code 11 years ago
Stefan Midjich e5190327f2 this fixes ansible on openbsd and freebsd systems. only tested on openbsd. 11 years ago
James Cammarata 60bea844b3 Merge branch 'v2_final' into devel_switch_v2 11 years ago
James Cammarata 2bad888f28 Merge branch 'v2_final' into devel_switch_v2
Conflicts:
	lib/ansible/inventory/__init__.py
	lib/ansible/modules/core
	lib/ansible/utils/__init__.py
	lib/ansible/utils/module_docs.py
11 years ago
Toshio Kuratomi afc19894e1 Make fetch_url check the server's certificate on https connections 11 years ago
Toshio Kuratomi 1ccf2a4685 Make fetch_url check the server's certificate on https connections 11 years ago
James Cammarata e59d4f3b51 More module_utils/basic.py unit tests for v2 11 years ago
James Cammarata 339a02c384 Started reworking module_utils/basic unit tests (v2) 11 years ago
Toshio Kuratomi d793ed360b Fix syntaxerror in the required_if arg spec check 11 years ago
Toshio Kuratomi 0f23d8a503 Fix syntaxerror in the required_if arg spec check 11 years ago
Monty Taylor 31609e1b16 Add required_if to AnsibleModule
There is a common pattern in modules where some parameters are required
only if another parameter is present AND set to a particular value. For
instance, if a cloud server state is "present" it's important to
indicate the image to be used, but if it's "absent", the image that was
used to launch it is not necessary. Provide a check that takes as an
input a list of 3-element tuples containing parameter to depend on, the
value it should be set to, and a list of parameters which are required
if the required parameter is set to the required value.
11 years ago
Toshio Kuratomi c6b286424f Merge pull request #9423 from emonty/features/required-if
Add required_if to AnsibleModule
11 years ago
Stefan Midjich 540c23dfce this fixes ansible on openbsd and freebsd systems. only tested on openbsd. 11 years ago
Brian Coca 16c70dd7d4 added equivalent of #9636 to v2 11 years ago
Brian Coca 6000db7e5d Merge pull request #9636 from Batmat/fix-message-i18n-parsing-error
Setting LC_MESSAGES: prevent unparseable messages (fixes issue #9635)
11 years ago
Etienne CARRIERE 3775dd5ec8 Factor F5 primitives 11 years ago
Toshio Kuratomi bb81f025b0 Merge pull request #8679 from j0057/support-arch-8653
Add support for Arch to module_utils.basic.py
11 years ago
Rene Moser 8da580a29c basic: fix ValueError if value of a type='int' is not an int
With this fix, we get a friendly error message:

    failed: [localhost] => {"failed": true}
    msg: value of argument start_port is not of type int and we were unable to automatically convert
11 years ago
Rene Moser 8f29ca23ae basic: fix ValueError if value of a type='int' is not an int
With this fix, we get a friendly error message:

    failed: [localhost] => {"failed": true}
    msg: value of argument start_port is not of type int and we were unable to automatically convert
11 years ago
Till Maas 02d784598f facts: Simplify ssh key fetching 11 years ago
Till Maas e7846343e5 facts: Add ed25519 ssh pubkey 11 years ago
Brian Coca 0913b8263c made special treatment of certain filesystem for selinux configurable 11 years ago
Brian Coca e2de336a23 made special treatment of certain filesystem for selinux configurable 11 years ago
Vitaliy Okulov 0c305b72cd Fix align again, strange vim error. ansible/ansible#10917 11 years ago
Monty Taylor d2782f0d84 Remove unneeded required_one_of for openstack
We're being too strict - there is a third possibility, which is that a
user will have defined the OS_* environment variables and expect them to
pass through.
11 years ago
Vitaliy Okulov 31b0ffafa8 Align fix for ansible/ansible#10917 11 years ago
Vitaliy Okulov ad9981f565 Fix for ansible/ansible#10917
Add missing broadcast addr for network facts for Linux
11 years ago
Rene Moser 62ccc1b9b6 cloudstack: fix typo in variable, fixes get_domain() 11 years ago
Brian Coca 483c61414e added missing : 11 years ago
Brian Coca 013c4631e3 hack to prevent tempalte/copy errors on vagrant synced folders that report incorrectly errno 26
fixes #9526
11 years ago
James Cammarata 8f504dacdd Merge branch 'devel' into v2_final
Conflicts:
	lib/ansible/modules/core
	v2/ansible/modules/core
	v2/ansible/modules/extras
11 years ago
Brian Coca 795a45fa4a Merge pull request #10833 from resmo/feature/extend_cloudstack_utils
cloudstack: extend and fix cloudstack utils
11 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 11 years ago
Rene Moser 333c623b35 cloudstack: implement account und domain support in utils 11 years ago
Rene Moser af74d7f1a9 cloudstack: add get_domain() and get_account() to utils 11 years ago
Rene Moser 034ac8ae78 cloudstack: _has_changed() should not compare None values 11 years ago
Simon Dick 6e65ccabc3 Allow the use of HTTP on custom ports in the fetch_url function 11 years ago
Brian Coca 4e85419257 Merge pull request #10853 from cgar/spelling
just a few spelling error changes

I swear only 95% of those are mine!
11 years ago
Rene Moser b11cd73df1 cloudstack: add tag support in utils 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
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
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
Simon Gomizelj a0c34da779 Support querying systemd container information
systemd writes a /run/systemd/container file in any container it starts
to make it really easy to detect the container type. This adds support
for detecting systemd-nspawn containers (and any other container format
that will write data there for compatibility).
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
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
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 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 faadb68308 backup_local now only tries to back up exising files, returns '' otherwise 11 years ago
Jason DeTiberus 43775daa4b Fix indentation 11 years ago
Joost Molenaar e79c920260 Add support for Arch to module_utils.basic.py
Fixes ansible/ansible#8653
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 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
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
Monty Taylor 90ca386555 Add api timeout now that shade spports it everywhere 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 76e3a9c93a Merge pull request #9894 from 47lining/cloud_modules_sts_support_redux_ansible
Cloud Modules STS Support Redux
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 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
Eri Bastos d4eddabb2a Patch for bug #10485 - ansible_distribution fact populates as 'RedHat' on Oracle Linux systems 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
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
riedel 29cca0191b Adding oVirt recognition for oVirt guests. oVirt uses KVM. 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
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
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
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
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 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 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
Mihir Joshi 58a5f8dfaf Pulls machine id in ansible facts
- Fix #10221
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
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
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 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
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
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
pdelared 4c661e2b93 Update facts.py
Added support for HPUX network fact
11 years ago
Toshio Kuratomi 402a6d0533 Explicitly close files opened by facts
Fixes #10157
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 4902c06304 Obfuscate passwords in more places where it is displayed 11 years ago
Alexander Gubin 1968f99691 Wrong OS_FAMILY declaration for openSUSE 11 years ago
Toshio Kuratomi f355c11a3f Merge pull request #10129 from RadishTheHut/memfacts-fix
Fix for memory fact gathering
11 years ago
Patrick McConnell 04b2c698ba Updated memory facts fix using dict.get() to avoid KeyError 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
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
Brian Coca 11005e7b28 Merge pull request #9839 from nousdefions/memfacts
Memfacts
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 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 78e1a7ed93 Revert "Fix: Add support for SSL protocol version configuration option" 11 years ago
Jimena Cabrera-Notari 1e865368ac Adds seconds to backup timestamp 11 years ago
Brian Coca 9ccabbb95e Merge pull request #9808 from swimlappy/sslconfig
Fix: Add support for SSL protocol version configuration option
11 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
11 years ago
Adam Miller 06b70e4f9c When checking for Xen for LinuxHardware processor facts, don't check sysfs if already found in /proc/ 11 years ago
Nate Coraor 60e815c844 Set ansible_distribution_version differently for Solaris variants. 11 years ago