Commit Graph

94 Commits

Author SHA1 Message Date
Mark Chappell
54c189063f os_keystone_mapping: fixup some minor nits found in followup reviews
Change-Id: I0c8995e8d52a993395e674c06c84f6398473754c
2020-04-02 17:23:27 +02:00
Zuul
bf4af7b1b9 Merge "New Module: os_keystone_identity_provider_info" 2020-04-02 14:42:08 +00:00
Zuul
9e2eeedaf3 Merge "New Module: os_keystone_identity_provider" 2020-04-02 14:42:08 +00:00
Zuul
d2379cd284 Merge "New module: os_keystone_mapping_info" 2020-04-02 14:35:51 +00:00
Mark Chappell
c85817dac9 New Module: os_keystone_identity_provider_info
Add support for fetching the information about federation IDPs

Change-Id: I36b7fa264866689e09b020b13b7bdc3843bfacfb
2020-04-02 13:59:14 +02:00
Mark Chappell
b74791754b New Module: os_keystone_identity_provider
Add support for Keystone Identity Providers

Depends-On: https://review.opendev.org/714122
Depends-On: https://review.opendev.org/713461
Change-Id: I9d4ba6b9e7b1e618f985a8264fb0238fe3cbc7bd
2020-04-02 13:59:14 +02:00
Mark Chappell
1b7ecc7a4a New module: os_keystone_mapping_info
Change-Id: I716c00b7f3cde7df6a220c20a8c0652ccbe8bdce
Depends-On: https://review.opendev.org/716908
2020-04-02 13:43:31 +02:00
Sagi Shnaidman
347347b46e Fix ansible sanity linter tests
Change-Id: I2d08fdc77d930378be515da697c1cf975dd8b4d2
2020-04-02 13:20:01 +02:00
Sagi Shnaidman
2753b5bc42 Add SDK version to tests conditions
Pass SDK version to ansible roles so we can skip testing of modules
which are not supported for current SDK version

Change-Id: I5d25c0a6827536434a8f17b2a0f7de0db4c78301
2020-03-28 16:11:05 +03:00
Monty Taylor
a55f3fd1ca Ignore more things for the final artifact
We don't need tox or ci scripts in the collection, only in git.

Change-Id: Ie96dab9b7d9adac878e8c2e753a08f7ed794fc10
2020-03-26 15:22:14 -05:00
Mark Chappell
cde068ca70 New Module: os_keystone_mapping
Depends-On: https://review.opendev.org/713633
Depends-On: https://review.opendev.org/713461
Change-Id: I6842b7d10fca292a6779043b50fb95bd0d93e584
2020-03-26 07:18:46 +01:00
Zuul
23d2617ea1 Merge "Update the badge shown in galaxy" 2020-03-25 06:42:34 +00:00
Monty Taylor
8ab6942d12 Update the badge shown in galaxy
Galaxy shows the README, which currently shows a "failing" badge
pointing at github actions. That's obviously not right for us.

Update this by using the zuul:gated badge and pointing to the
builds for the repo in the Zuul Dashboard.

Change-Id: I7f1254f882486514cd29a52bf05ebf5a972da490
2020-03-24 18:31:17 -05:00
Monty Taylor
0a6894e9de Add ansible-collections-openstack to the required-projects
When this is run outside of the repo, we need this repo itself
in the job content.

Change-Id: Id75617b1a723bd310c86b3e6ea45b274652b9d9b
2020-03-24 17:18:31 -05:00
Sagi Shnaidman
fbd03d187c Don't fetch subunit in jobs
Depends-On: https://review.opendev.org/#/c/714302/
Change-Id: I006051ec0aa7b4c98cc41cda097d085f6eea62c9
2020-03-23 03:33:21 +02:00
Sagi Shnaidman
42fbc640ee Add rocky, stein jobs
Add rocky and stein jobs to check and gate
and remove non voting jobs of ansible devel from gates.
Change-Id: Ib231a50fa5e8427ef39077bc49ac806aa0a5732e
2020-03-20 12:48:00 +02:00
Sagi Shnaidman
f982797b94 Add dependencies for long jobs on linters
Run long jobs only if linters passed
Change-Id: I374bbdd2111073d4f6a9ace22bf11f58afe1c21b
2020-03-20 12:42:24 +02:00
Sagi Shnaidman
290c5329cc Add ansible 2.9 and openstacksdk train jobs
Change-Id: I5e096c056291b7abf5355ab366b3ba25a0f68385
2020-03-19 12:23:55 +00:00
Monty Taylor
cf7011a742 Cleanup functional tests
Use the openstacksdk base functional test instead of going all
the way back to devstack for our base. Also - defining a job
starting with openstacksdk in this repo is not ok - but that
probably just came from the original copy-pasta coming from the
sdk repo.

Use tox-siblings more and stop doing tox requirements of ../
things. The system is there and we can use it.

Add jobs to test against released openstacksdk and ansible, as well
as a non-voting to test against ansible devel branch.

Add openstacksdk to the test-requirements because it's super
required.

Move zuul.yaml to .zuul.yaml. This isn't a zuul jobs repo so
we should just make it a hidden file rather than a non-hidden.

Change-Id: I658bd1728629cd358bc17a7f00d282d04530d8fe
2020-03-19 12:05:57 +00:00
Monty Taylor
75cc5012e3 Update os_client_config to use openstacksdk
This never got migrated but should. os-client-config is only
on life support.

Change-Id: I2d77c9f7d147900b79a410c17cce197108c0a69b
2020-03-17 13:35:45 -05:00
Mark Chappell
e39c5d0a9a Fixup elements related sanity failures
Change-Id: I6f2bba929af5a148a1f52df26916e00efcc14a07
2020-03-16 15:49:49 +01:00
Mark Chappell
63e444a324 Ensure documented choices match spec
Change-Id: Ia40e846f970a05a894601a7a37af0231f136bab6
2020-03-16 14:15:04 +01:00
Mark Chappell
f52598dd90 Use dict rather than complex for os_quota return type.
Change-Id: Ib8275a88eefb46ace471ddd12fadb018b4adbf9b
2020-03-16 13:56:58 +01:00
Mark Chappell
f16eda89dd Ensure defaults match spec
Change-Id: Ie5c499d7e035a0e9c3ac32e5dc5d57151c1745ed
2020-03-16 13:56:58 +01:00
Mark Chappell
aeb0e78148 Clean up doc-required-mismatch
Change-Id: Ia1449c50295f6b3551f176edf9bd439ace65ec90
2020-03-16 13:56:58 +01:00
Mark Chappell
1849f8bd47 Add missing type information to docs
Change-Id: Iac23d54512b23f031460d1b7281ccb8d93e20cad
2020-03-16 13:56:58 +01:00
Mark Chappell
9e9dacdf3c Fix doc requirements, and consistently require python 3.6+
Change-Id: I43f4ba5718422f75f553e3cae88fa887722aa044
2020-03-16 10:32:21 +01:00
Mark Chappell
400e9c4873 Move default availability_zone docs into doc_fragment
If availability_zone is defined in the module this will override the fragment

Change-Id: I4f6abcbfee89a53480134dc64ca06782c8e6d094
2020-03-16 10:32:20 +01:00
Zuul
8e64c96e48 Merge "os_nova_host_aggregate: Add support for not 'purging' missing hosts" 2020-03-13 17:43:06 +00:00
Zuul
3224e68ca2 Merge "os_nova_host_aggregate: Fixup sanity test failures" 2020-03-13 17:37:20 +00:00
Zuul
9580a65090 Merge "Remove MANIFEST.json before building" 2020-03-13 17:14:32 +00:00
Mark Chappell
c5cd1a0e9f os_nova_host_aggregate: Add support for not 'purging' missing hosts
Change-Id: I3ac44e49ef2b8b05b2a182916e2ba5a0a980692f
Depends-On: https://review.opendev.org/712917
2020-03-13 16:49:20 +01:00
Mark Chappell
d39f3ae5b0 os_nova_host_aggregate: Fixup sanity test failures
Change-Id: I40cc48c8b04713a63ab8fd8c71b785a824cf3715
2020-03-13 16:49:20 +01:00
Monty Taylor
852f385889 Remove MANIFEST.json before building
For reasons surpassing understanding this doesn't seem to get
overwritten.

Change-Id: Ib4d6b38757112908dbf58d70015482831a8c2e95
2020-03-13 10:14:58 -05:00
Sagi Shnaidman
67466513da Add option for modules_default groups
It's possible in Ansible to set options for modules with
modules_default keyword[1]. For some of modules it's possible
to do with module_default groups, like cloud modules[2]
Add this option to OS modules.

[1]
https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults

[2]
https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html#module-defaults-groups

Change-Id: I31e36f3a6d600815152a116afb37f8e3e21bc282
2020-03-10 14:06:06 +02:00
Zuul
a451edcb5c Merge "Add Openstack guidelines spec from Ansible" 2020-03-05 16:39:08 +00:00
Sagi Shnaidman
31b113d402 Add Openstack guidelines spec from Ansible
These may not be 100% perfect, but they are a good
starting place and we can improve them over time.

Change-Id: Ifb21554d67863b4e4e964f3e98263c3dafcb607f
2020-03-05 15:40:51 +00:00
Monty Taylor
1553d34b02 Clean up minor build quibbles
collection build produces FILES.json and METADATA.json, so add them
to the .gitignore. Also, remove the version line from galaxy.yml.in
since it's generated.

Change-Id: I2ea0b04c8e56b3b7186ac2e9c475144340067636
2020-03-05 15:08:44 +00:00
Monty Taylor
e0200e9faf Fix license metadata
The galaxy upload rejects GPLv3 and requires a valid SPDX license
tag. The file headers list:

  GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

which is a way of saying "3 or later" - so use that SPDX tag.

Also - the license headers refer to the file being COPYING, so
rename the file and update it in the galaxy metadata to match.

Change-Id: I6c82b49d7ce5ea8c9cde939d5d37ff54b969a598
2020-03-05 15:08:38 +00:00
Monty Taylor
97eb24ac4d Deal with collection build modifying tree
ansible-galaxy collection build modifies the contents of the tree.
Let's not go in to why this is bad, but instead just deal with it.
The issue in question is that is removes the +x bit from files in
the tree, which means you can't run a build twice in a row locally.
Shrug. Just roll with the -x and update our usage to reflect it.

Change-Id: I0f82531e99a98d656b60079fd3e94d4e3a1dbb6b
2020-03-05 15:08:32 +00:00
Zuul
c9d2866b57 Merge "Test with and assert support for python3" 2020-03-04 22:27:00 +00:00
Zuul
11331d7f1f Merge "Remove from __future__ lines" 2020-03-04 22:26:59 +00:00
Zuul
fba0eda1d8 Merge "Fix H236 and remove exclusion" 2020-03-04 22:22:02 +00:00
Zuul
4b27e9bafd Merge "Just use shutil.rmtree in build.py" 2020-03-03 16:38:46 +00:00
Monty Taylor
53affc3220 Test with and assert support for python3
Collections are new. openstacksdk as of now doesn't support python2.
We shouldn't pretend to support python2 either. If you're using
ansible new enough to use collections, you can use python3.

This release of openstacksdk only supports 3.6 and onwards, so
set that as our min.

Change-Id: I34d544ce48f25bffde8e6e0cf82cdf9a85e681c3
2020-03-03 09:28:43 -06:00
Zuul
17cdcee058 Merge "os_coe_cluster: Retrive id/uuid correctly" 2020-03-02 18:36:17 +00:00
Bharat Kunwar
050acb6c03 os_coe_cluster: Retrive id/uuid correctly
Fix https://github.com/ansible/ansible/issues/67576

Change-Id: I59b07a8733d549015ed1999e30970d1131c82f99
Signed-off-by: Bharat Kunwar <brtknr@bath.edu>
2020-03-02 17:09:30 +00:00
Zuul
79b2b1001a Merge "Fix F401 and remove exclusion" 2020-03-02 13:31:36 +00:00
Zuul
4b6c60ff14 Merge "Fix W504 and remove exclusion" 2020-03-02 13:31:35 +00:00
Zuul
d2674e42b2 Merge "Fix E128 and remove exclusion" 2020-03-02 13:31:35 +00:00