127 Commits

Author SHA1 Message Date
Monty Taylor
ddc1a78705 Ignore a few more things
The ignores can just list the directory and from them it will
ignore the directory too.

Add .gitreview and .gitignore and the importer_result.json.

Change-Id: Ibe5e56ccd3fc54695bf64dd696adb2ec2bb0f3c2
1.0.0
2020-05-19 11:59:11 -05:00
Monty Taylor
a033a0804b Validate that we can upload build collection
Run galaxy-importer on the built artifact and fail if galaxy is
going to fail.

Remove license_file entry in galaxy.yml

Change-Id: I6c2ac22ccb56f52f8efcefc5891b10875ae8c0b5
2020-05-19 11:13:22 -05:00
Monty Taylor
6ab290839b Rename routing.yml to runtime.yml
The collection routing implementation for 2.10:

   https://github.com/ansible/ansible/pull/67684

just update the filename to be meta/runtime.yml.

Change-Id: I858f53e66bef2c40fb7ec2821d412bd966417106
2020-05-16 07:43:29 -05:00
Monty Taylor
8a928ef70d Build collection with 2.10 and ignore things more better
We need 2.10 for building collection tarballs with build_ignore.
Also, build_ignore takes globs, not leading filepaths, so add
globs to the dirs in our list so that we properly don't include
these.

Change-Id: I809e100fa80bffafda4002487590a6dcd6aea0c1
2020-05-15 07:48:36 -05:00
Zuul
02f14ed227 Merge "Remove ANSIBLE_METADATA from all modules" 2020-05-14 16:07:46 +00:00
Sagi Shnaidman
572fe85894 Remove ANSIBLE_METADATA from all modules
It's not required for collections,
for more details:
https://github.com/ansible-collections/overview/issues/57
Change-Id: I954eef25bb9837c9282665ad5586dbe37f4f4424
2020-05-14 17:00:01 +03:00
Sagi Shnaidman
8aa0412e75 Update README with additional information
Change-Id: Icf45bf7ecb00a2afe9d076e413a212b1e8399ad1
2020-05-14 08:39:47 +03:00
Zuul
5ff16c9420 Merge "Link to Contributing file in README" 2020-05-13 19:03:46 +00:00
Zuul
372ad83429 Merge "Improve ansible-test sanity for collection" 2020-05-13 15:19:00 +00:00
Monty Taylor
370b9b9dae Link to Contributing file in README
Change-Id: If18253fec2a4df735835c2a7b47c69069bf667d0
2020-05-13 09:18:33 -05:00
Monty Taylor
c0ded1303b Add contributing file
Change-Id: Iae015eae0931c5cd0d77990964fa57c5594e4bb6
2020-05-13 08:07:01 -05:00
Sagi Shnaidman
bcdf749938 Improve ansible-test sanity for collection
Check only things we build into collection.
Ignore sanity files from full CI jobs.
Add queens to gate because it's voting.
Add files to ignoring when building collection.
Remove non-required lines from ignorign sanity files.

Change-Id: I0dde756efa133cf75b67d072af78a1f8307ce932
2020-05-13 13:31:29 +03:00
Monty Taylor
e47c4671c7 Rename all of the modules
This is separate from the previous patch - it's just the results
of running the script so we can review the two a little independently.
We should probably squash them.

Change-Id: I838f15cf4a32455a5be20033c8ddc27db6ca15c0
2020-05-12 10:20:50 -05:00
Monty Taylor
52905480b8 Remove all of the os_ prefixes
The 2.10 transition has a routing.yml file that points each
individual module from ansible/ansible to a new location. That means
we can put:

    os_server:
      redirect: openstack.cloud.server

into lib/ansible/config/routing.yml in ansible/ansible and have
the result be the end user's playbooks still working with the
old names while providing new names that are less ugly.

This adds a routing file to our collection repo, as well as the
script used to generate the new mapping.

Change-Id: Ia5d18282b14ad0d86a347343be8bb477ae47130a
2020-05-12 10:19:28 -05:00
Monty Taylor
238387f2f8 Remove incorrect os_ prefix in documentation
The parameteres are project_domain_name and user_domain_name.

Change-Id: I509ae5d398ff8a93d3cbcd09edb21118a1ff03c3
2020-05-12 10:10:57 -05:00
Monty Taylor
6271268567 Run linters in a temp dir instead of an install
We can't run linters in an install because installs expand
symlinks to regular files so the ansible-test code that detects
symlinks can't work so it looks at docs for symlink aliases
as if they were real.

Change-Id: I0a5659a1f693261a21a5b29528f950b846205f2e
2020-05-12 09:04:54 +00:00
Zuul
7e027cb532 Merge "Ensure modules work with queens devstack" 2020-05-11 13:01:30 +00:00
Zuul
1906b85668 Merge "Updated allocation pool checks" 2020-05-10 14:21:01 +00:00
Sagi Shnaidman
47ac938475 Ensure modules work with queens devstack
Using master branch of openstackSDK

Change-Id: I43f260bbb26aa1d8e328911d9798316445849d7d
2020-05-10 13:07:55 +00:00
Ken Dreyer
25ad4882b0 os_server_action: pass imageRef to rebuild
Prior to this change, the os_server_action module could not rebuild
servers, because it passed no arguments to the "rebuild" object.

The imageRef parameter is mandatory. If the client does not specify
imageRef, Nova takes no action to rebuild the server.

Change-Id: I0edbdb634feb90d4c54476a4089fcb014c0b83b2
2020-04-29 14:56:49 -06:00
rawat
95dcd82cbb Updated allocation pool checks
As per the REST Networking API v2.0 (Subnet) docs, if subnets pools
are not specified, OpenStack networking automatically allocates pools
covering all IP addresses in the CIDR.

In custom vendor specific environments, subnets can be created without
allocation pools via UI due to which subnets will not have any existing
allocation pools. Under this scenario, module throws an
"IndexError: list index out of range" error.

Also, allow to add more allocation pools on top of existing allocation
pools.

Change-Id: Ib8becf5e958f1bc8e5c9fd76f1722536bf1c9f1a
2020-04-27 07:19:56 +10:00
Sagi Shnaidman
b824bf1c38 Convert os_server_info to use OpenStackModule
Change-Id: I864c767ff06d32dd79b72826cfc09e7203e5291d
2020-04-21 19:08:46 +03:00
Zuul
466f3d4a0a Merge "Moved openstack inventory script from community.general" 2020-04-20 11:22:52 +00:00
Zuul
d1ad72a068 Merge "Add properties for os_project" 2020-04-16 19:33:48 +00:00
Duc Truong
c1a2496e0f Add properties for os_project
Keystone supports setting custom properties for projects.  This changes add
properties to os_project to enable setting of custom properties.

Depends-On: https://review.opendev.org/715255
Change-Id: I23e2834d6b9d40ce86db4b32a0ed8bf76b3d9879
2020-04-14 10:11:12 -07:00
Abhijeet Kasurde
5576eea3ce Moved openstack inventory script from community.general
Moved Openstack inventory script from Ansible community.general to openstack collection.

Change-Id: I84f93888059ec09b182a03e751ade6810e133a29
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-04-13 15:22:18 +05:30
Zuul
2b51a58da2 Merge "New Module: os_keystone_federation_protocol_info" 2020-04-03 16:13:26 +00:00
Zuul
0424bb8ac1 Merge "New Module: os_keystone_federation_protocol" 2020-04-03 16:12:45 +00:00
Zuul
c5ff8f7073 Merge "Run Ansible-test from the devel ansible branch" 2020-04-03 15:03:55 +00:00
Mark Chappell
a3a571b113 Run Ansible-test from the devel ansible branch
In addition to running ansible-test from stable it's helpful to run
ansible-test from 'devel' where new sanity tests will land.  These
sanity tests are generally applicable to existing modules, but aren't
back-ported.

Change-Id: I8df3dd43cbc4cba643d7860e77a1089c15f5f092
Depends-On: https://review.opendev.org/717118
2020-04-03 09:41:47 +02:00
Sagi Shnaidman
25325bfe79 Fix ansible-base case for Ansible devel branches
Change-Id: I4b8edf7d376c9110f0795b023091153b99628b18
2020-04-02 23:07:09 +03:00
Mark Chappell
583770f597 New Module: os_keystone_federation_protocol_info
Add support for getting information about Keystone federation Protocols

Change-Id: Id389b094465967a2a8a0eff428f1f6679865c6f6
2020-04-02 17:27:06 +02:00
Mark Chappell
8729b8da72 New Module: os_keystone_federation_protocol
Add support for Keystone federation Protocols

Depends-On: https://review.opendev.org/714431
Depends-On: https://review.opendev.org/713461
Change-Id: I6dff6cebe72106e601834976e369e08583391c55
2020-04-02 17:26:31 +02:00
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