1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

19514 commits

Author SHA1 Message Date
Adrian Likins
1468538414 galaxy info displayed 'galaxy_info' section wrong
The output of 'ansible-galaxy info' was formatting the
'galaxy_info' key with one char per line.

Previously, when building the output string, items in
role_info that had a dict for value, the label for
it's key ('galaxy_info' for ex) was being added to
the text list in addition to being appended. Only
the append is needed.

Also added a unit test in test/units/cli/test_galaxy.py,
but skip it on py3 until galaxy is py3 compatible.

fixes #15177
2016-05-31 13:28:15 -04:00
Brian Coca
4c3c294a03 fixed confusing reporting when no hosts are matched
it was hitting 'empty inventory' warning.
2016-05-31 12:16:06 -04:00
Devin Waas
01decf4166 added necessary argument (#16067)
E.G.
~~~~

# ./openstack.py --refresh
usage: openstack.py [-h] [--private] [--refresh] [--debug]
                    (--list | --host HOST)
openstack.py: error: one of the arguments --list --host is required
2016-05-31 11:53:59 -04:00
Brian Coca
e63bf1d86e fix version/help when missing action
also fixed issues with galaxy cli options
2016-05-31 09:30:50 -04:00
Brian Coca
eaa7b9c0b7 treat roles_path as the list it is for galaxy list 2016-05-31 09:00:56 -04:00
jctanner
018d3c3118 Add a new vmware inventory script backed by pyvmomi (#15967)
Add a new dynamic vmware inventory script backed by pyvmomi
2016-05-30 20:41:48 -04:00
Sven-Hendrik Haase
d81b9ca29e Fix grammar (#16037) 2016-05-28 11:43:12 +02:00
Rene Moser
1c1f0a62b3
doc: changelog: add cs_snapshot_policy module 2016-05-28 11:39:16 +02:00
Chris Houseknecht
f961f9f4d0 Merge pull request #16035 from chouseknecht/devel
Bump ansible-modules-core submodule to latest commit.
2016-05-27 13:49:25 -04:00
chouseknecht
38c99fa9d5
Bump ansible-modules-core submodule to commit 90e8a36d4c2b3f53ee725b0a4f694d3e449b5f28 2016-05-27 13:47:07 -04:00
Tobias Wolf
328b423a0e Solve performance issue with a large number of groups (#13957)
Ansible excessively checks the file system for the potential presence of
`group_vars` and `host_vars` files.

For large numbers of groups this leads to combinatorial performance
issues.

This commit generates a set of group_vars and host_vars filenames using
`os.listdir()` in every possible location and then checks against the sets
before making a stat of the file system.

Also included in this commit is caching of the base directory lookup
for the inventory.
2016-05-27 10:43:11 -04:00
Brian Coca
011320793b moved validate info from vvv to debug 2016-05-27 09:45:10 -04:00
Chris Houseknecht
2261b2e59a Fix missing ignore_certs (#16018) 2016-05-27 09:39:00 -04:00
Toshio Kuratomi
c03555b650 Fix unarchive failures when the destination is a symlink to a directory (#15999)
Also add integration tests for this problem and unicode filenames inside
a tarball.

Fixes #3725
2016-05-26 14:47:11 -07:00
Matt Davis
b5bb518279 Merge pull request #16012 from stpierre/list-like-choices
Modules: check for list-like choices in arg spec
2016-05-26 14:36:47 -07:00
Chris St. Pierre
bfd69a7042 Modules: check for list-like choices in arg spec
This makes it possible to use anything other than a list (e.g., a
tuple, or dict.keys() in py3k) for argument_spec choices. It also
improves the error messages if you don't use a list type.
2016-05-26 16:20:31 -05:00
James Cammarata
3e03004b6f Use get_dep_chain() instead of directly using a blocks _dep_chain
Child blocks (whether nested or via includes) don't get a copy of the
dependency chain, so the above method should be used to ensure the block
looks at its parents dep chain.

Fixes #15996
2016-05-26 15:48:07 -04:00
Matt Clay
b755bcd875 Corrected reference to httptester container. 2016-05-26 12:39:57 -07:00
Matt Clay
9a0ffeca80 Merge pull request #16014 from sivel/httptester-image
Add httptester docker container
2016-05-26 12:19:49 -07:00
Matt Martz
164f247ec8 Add httptester docker container files and update run_tests.sh to use ansible/httptester 2016-05-26 13:09:28 -05:00
Brian Coca
6a0a366746 fixed service fact usage 2016-05-26 13:37:59 -04:00
Brian Coca
329c62e914 docker was deprecated, test now reflects new name 2016-05-26 09:12:23 -04:00
René Moser
176a207c61 Merge pull request #15974 from resmo/feature/vpc
cloudstack: add VPC support
2016-05-26 07:43:40 +02:00
nitzmahone
7b5513cf22 mark azure_rm_X_facts modules as TECH PREVIEW 2016-05-25 16:02:11 -07:00
Ryan Brown
cd80413b63 Merge pull request #15986 from dharmabumstead/devel
Incorporated additional tech review feedback.
2016-05-25 18:01:21 -04:00
Brian Coca
48d8fa0380 updated subrefs 2016-05-25 17:29:44 -04:00
Brian Coca
056efc71db updated for service and systemd 2016-05-25 17:29:10 -04:00
nitzmahone
b3bf4cecdb add missing azure_rm modules to changelog 2016-05-25 14:24:10 -07:00
Brian Coca
90cbb8c01b re-add the service action plugin (#13001)
* readd the service action plugin, was removed cause it created unexpected fact gathering and there are no split service plugins that would make this useful (yet)
Revert "removed action plugin as service facts and separate modules don't work yet and this forces gathering facts"

This reverts commit 7368030651.

* now only does minimal fact gathering
2016-05-25 17:14:04 -04:00
Scott Butler
1b52acade8 Fixed indenting in samples. 2016-05-25 13:37:21 -07:00
Scott Butler
9fafe5e143 Merge branch 'devel' of https://github.com/ansible/ansible into devel 2016-05-25 13:19:45 -07:00
Toshio Kuratomi
3b69ef7e8b Add strings 'True' and 'False' as booleans as python bools converted to strings will look that way.
Workaround for custom modules which are using choices=BOOLEANS instead
of type='bool'.
2016-05-25 10:36:16 -07:00
Scott Butler
189ae499cf Typo fix 2016-05-25 07:29:02 -07:00
Scott Butler
9fcb6635fa Typo fixes 2016-05-24 22:00:40 -07:00
Scott Butler
813d4435ca Incorporated additional tech review feedback. 2016-05-24 21:39:59 -07:00
Matt Martz
d08fda9320 Merge pull request #15985 from alikins/vault_keyring_15984_fix
fix vault-keyring.py 'No [vault] section' error
2016-05-24 18:11:29 -05:00
Adrian Likins
675561e116 fix vault-keyring.py 'No [vault] section' error
vault-keyring.py was using an older version of
the ansible.constants.load_config_file() API.
The newer version returns a tuple, which caused
the config load to fail and a catch all exception
to blame it on a missing section.

Update to new API, and catch the ConfigParser error
specifically.

Fixes #15984
2016-05-24 18:47:56 -04:00
Rene Moser
62c424797a cloudstack: add common network code
Also used for VPC support.
2016-05-24 23:18:17 +02:00
Toshio Kuratomi
650bfdce8f Update grep for six to not falsely trigger when six is only a substring of a different library 2016-05-24 13:49:37 -07:00
Brian Coca
de7b0e9da1 made def main an explicit requirement 2016-05-24 15:11:00 -04:00
Toshio Kuratomi
a2bef45cf6 Update submodule refs 2016-05-24 11:52:19 -07:00
Toshio Kuratomi
d45a394f63 Mocate ansible_ssh_changes into a common directory 2016-05-24 11:37:04 -07:00
Toshio Kuratomi
9ef814e782 Documentation fixes 2016-05-24 10:46:33 -07:00
Toshio Kuratomi
6d18999c6f f 2016-05-24 10:46:10 -07:00
Toshio Kuratomi
7fb0f75db6 Update the Ansiballz developer docs 2016-05-24 10:26:14 -07:00
Robin Roth
0edec45c3d install packages for tests (#15979)
* curl is needed for test_binary_modules
* glibc-i18ndata is needed for postgresql (localedef)
2016-05-24 08:22:34 -07:00
Tim Rupp
9041a0fee9 Adds a general purpose Exception class for F5 modules (#15977)
This class can be used by F5 modules for raising exceptions.
This should be used to handle known errors and raise them so
that they can be printed in the fail_json method.

The common Exception class built-in should not be used because
it hides tracebacks that are necessary to have when debugging
problems with the module.
2016-05-24 11:18:39 -04:00
Adam Chainz
064ed63843 Fix ec2 inventory for potentially inconsistent data (#12642) 2016-05-24 11:00:59 -04:00
Brian Coca
52a0165c77 skip non executable inventory when no shebang (#15969)
alternate fix #15934
2016-05-24 10:25:10 -04:00
Rene Moser
fe05c5e35a cloudstack: add VPC support 2016-05-23 23:01:31 +02:00