Commit Graph

21096 Commits (6885797b03526726c76b46d54a9122d41c455ebe)
 

Author SHA1 Message Date
Michael Scherer 6885797b03 Add support for getting network facts on GNU Hurd
Since ifconfig/ip are not present on the system, and there is no /proc
to be parsed, the only way to get information is by looking at the
argument of the pfinet translator, the process in charge of network.

In turn, this is done with fsysopts on the appropriate path, who return
something like this:

    # fsysopts -L /servers/socket/inet
    /hurd/pfinet --interface=/dev/eth0 --address=192.168.122.130
    --netmask=255.255.255.0 --gateway=192.168.122.1 --address6=fe80::5254:12:ced/10
    --address6=fe80::5054:ff:fe12:ced/10 --gateway6=::

So to get the IP addresses, one has to parse that string and fill the appropriate
structure.

More information on the system and on limitation can be found on
- https://www.gnu.org/software/hurd/hurd/translator/pfinet.html
- https://www.gnu.org/software/hurd/hurd/translator/pfinet/implementation.html
- https://www.debian.org/ports/hurd/hurd-install
8 years ago
Michael Scherer f4593ecac7 Add support for getting hardware facts on GNU Hurd (#18152)
* Fallback to /proc/mounts if /etc/mtab do not exist

On modern system, the file is just a compatibility symlink, and
some system (like GNU Hurd) do not have it, but provides /proc/mounts

* Add support for uptime, memory and mount facts on GNU Hurd
8 years ago
Matt Davis 2708ef99b8 bump core submodule ref for async fix 8 years ago
Matt Davis 9a78273665 reenable win_async loop test 8 years ago
Toshio Kuratomi 3098cc2eb9 Update submodule refs 8 years ago
Adrian Likins cf39a1abab test-module _ansible_selinux_special_fs arg added
modules need to have _ansible_selinux_special_fs passed in
as an arg, so add the default to the args.
8 years ago
Toshio Kuratomi dcbd64b481 Update submodule refs 8 years ago
Michael Scherer 6a76a9299d Fix 18151, by converting float to int 8 years ago
Adrian Likins c0331d50dc Remove callback.CallbackBase._copy_result_exclude
Nothing seems to use this now.

Was added originally added in2d11cfab92f9d26448461b4bc81f466d1910a15e
but the code that used it was removed in
e02b98274b
8 years ago
Daniel Yates 39e86ae2bc Correctly read use_private_network as boolean
This fixes the use of public IPs in the discovered hosts by
ensuring that the use_private_network check doesn't always evaluate
to False if the associated .ini file specifies this option.
8 years ago
Michael Scherer a1032bc44b Fix some errors in CHANGELOG.md (#18149) 8 years ago
Adrian Likins 6f9ca7bb83 test name TestPlayIterator->TestPlaybookExecutor 8 years ago
Nijin Ashok 1f3d82dd18 Fix improper handling of machine_type in ovirt inventory (#16251)
Currently the machine_type will not work if the instance type is set in ovirt. In that case, inst.get_instance_type will be an object and will fails while converting to json. This only work if the instance type is not set in ovirt where inst.get_instance_type is a Null value. The current change make sure that correct "instance type" is passed when instance is set in ovirt and Null when it's not set in ovirt.
8 years ago
stephane 77868a4104 Set Suse family for openSUSE Tumbleweed & Leap
On openSUSE Tumbleweed, lsb-release -a currently reports
the distributor ID as "openSUSE Tumbleweed". On openSUSE
Leap, the distributor ID is "SUSE LINUX".

Add them to the OS_FAMILY dict as Suse family systems.

Also add an entry to TESTSETS in test_distribution_version.py
for openSUSE Tumbleweed.
8 years ago
Matt Robinson 692bfa872a Make bcrypt + passlib work in password_hash filter
If hashtype for the password_hash filter is 'blowfish' and passlib is
available, hashing fails as the hash function for this is named 'bcrypt'
(and not 'blowfish_crypt').  Special case this so that the correct
function is called.
8 years ago
Scott Butler 843de98bad Fixed a typo. 8 years ago
Scott Butler e6397a5943 Wording tweaks 8 years ago
scottb cc7b185779 Merge pull request #18143 from dharmabumstead/edit-18098
Edits for PR #18098
8 years ago
Scott Butler b6761abafb Edits for PR #18098 8 years ago
Pierre-Louis Bonicoli 3edac76e1b tests: check that handlers are able to use 'include' 8 years ago
Toshio Kuratomi 2ac12432ef Enable the git test on py3 8 years ago
Toshio Kuratomi def260b5d1 Update submodule refs to pick up latest py3 fixes (and git dep yaml fix) 8 years ago
Brian Coca aa5938bf8e updated submodule ref 8 years ago
Ssawa 8e47b9bc70 Handle 'smart' scp_if_ssh option for fetch (#18125) 8 years ago
Kim bd4d5112c5 Corrected three small typos in playbooks_loops.rst (#18136) 8 years ago
Michael Scherer 2804e64ed5 Enable filters test for python 3 8 years ago
Toshio Kuratomi 6d9f780937 Now that we convert salt inside of do_encryptas needed, keep salt as text type until then. 8 years ago
Thilo Uttendorfer cf0da0948d Fix uninitialized variable in deserialize method (#18037)
The bug was introduced with commit 06d4f4ad0e.
Added a simple test.
8 years ago
Loïc 0a60cceaf0 Debian need build-essential package to build deb package (#18068)
* Need build-essential package

* dpkg-dev is useless: it is a dependency of build-essential
8 years ago
Dag Wieers cd784cd345 Remove unnecessary warnings (#18121) 8 years ago
Michael Scherer 492da6ce71 Add support for NetBSD network fact (#18113)
Like hostname, it use the same interface as FreeBSD so
we bascailly reuse the same code. Only tested on NetBSD 7.
8 years ago
Toshio Kuratomi 9a5be38a22 Update submodule refs 8 years ago
Toshio Kuratomi 67ac375188 pip tests now pass on python3. Enable them. 8 years ago
Michael Scherer 578da9a615 Enable test for lookups on python 3
Since passlib algo sometime takes a bytes, and sometime
not, depending on a internal variable, we have to convert
bnased on it, or it fail with "TypeError: salt must be bytes,
not str" (or unicode instead of bytes)

However, that's not great to use internal structure for that.
8 years ago
Brian Coca fbe0e6c9a2 improved error msg 8 years ago
Brian Coca ea428e716d role now fails if specified file not found
fixes https://github.com/ansible/ansible-modules-core/issues/5166
8 years ago
Brian Coca 432633e4c1 fix for check_mode/async interaction
fixes #18110
8 years ago
Toshio Kuratomi 1d3db8ec5b iUpdate submodule refs 8 years ago
Michael Scherer e93a8814a3 Let authorized_keys be tested on python 3 8 years ago
Michael Scherer 4549604cc7 Use six.move for module in module_utils/facts.py 8 years ago
Ryan S. Brown a4660766f7 Update core submodule ref 8 years ago
scottb a85b8888d7 Merge pull request #18096 from dharmabumstead/fix-18092
Fix for #18092; plugin dev docs tweaks
8 years ago
Scott Butler 844a7c8823 Fix for #18092 8 years ago
Matt Davis 29d545a8bc Clarify pywinrm behavior WRT Python versions affected by SSLContext
fixes #16765
8 years ago
Adrian Likins f99ffb5620 Fix test_filters fail because of dict sort (#18105)
Fixes #17308
8 years ago
John R Barker 871d3d8945 New f5 modules (#18106)
From https://github.com/ansible/ansible-modules-extras/pull/3232
8 years ago
Toshio Kuratomi 25e25127b9 Update submodule refs 8 years ago
Toshio Kuratomi b902b5d046 Pixelrebel amc pr2654 (#18089)
* Add tag verification test (ansible-modules-core PR 2654)

* Fix typo

* Use smaller repo for testing, add dependency control

* Test is gpg exists before running git signing tasks

* Correct the test conditionals so that gpg1 is tested
8 years ago
scottb c064dce791 Merge pull request #18098 from abadger/static-ansible_managed-docs
Update the ansible_managed documentation.
8 years ago
Toshio Kuratomi cfca71ee0c Update the ansible_managed documentation.
* New default (a static string)
* Explanation of all the fields and how they impact idempotence

Fixes #17947
8 years ago