Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] 20231108 Re-generate modules with ansible.content_builder #441

Conversation

mariolenz
Copy link
Collaborator

@mariolenz mariolenz commented Nov 8, 2023

This is a test, DO NOT MERGE!

Follow-up to #434 now that #410 and ansible-community/ansible.content_builder#70 are merged.

pip install black==22.3.0 jsonschema jinja2==3.0.3 boto3 baron redbaron ruamel.yaml autoflake
ansible-galaxy collection install git+https://github.com/ansible-community/ansible.content_builder.git
git clone https://github.com/mariolenz/vmware.vmware_rest.git
mkdir -p /collections/ansible_collections/vmware/vmware_rest/tests
cp -r vmware.vmware_rest/tests/sanity /collections/ansible_collections/vmware/vmware_rest/tests
ansible-playbook build.yaml -e manifest_file=MANIFEST.yaml
cd vmware.vmware_rest/
git checkout -b 20231108-test-ansible.content_builder
rm -rf plugins/modules/
cp -r /collections/ansible_collections/vmware/vmware_rest/plugins/modules/ plugins/
echo -e '---\nminor_changes:\n- "Re-generate modules with ansible.content_builder."' > changelogs/fragments/regenerate_modules.yaml
git add --all
git commit -m "20231108 Re-generate modules with ansible.content_builder"
git push --set-upstream origin 20231108-test-ansible.content_builder

build.yaml:

---
- hosts: localhost
  gather_facts: yes
  roles:
    - ansible.content_builder.run

MANIFEST.yaml:

---
collection:
  path: /collections/ansible_collections/vmware/vmware_rest
  namespace: vmware
  name: vmware_rest
plugins:
  - type: module_openapi
    name: "vmware_rest"
    content: cloud
    api_object_path: vmware.vmware_rest/config/api_specifications/7.0.2
    resource: vmware.vmware_rest/config
    action: generate_all
    unique_key: ""
    rm_swagger_json: ""
    module_version: "1.0.0"
    author: "Ansible Cloud Team"

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/73bcefc775314922b159b58d4d43c91e

✔️ ansible-test-cloud-integration-vmware-rest SUCCESS in 22m 23s
✔️ build-ansible-collection SUCCESS in 13m 39s
ansible-test-sanity-docker-devel FAILURE in 11m 37s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 11m 34s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 15m 09s
✔️ ansible-test-sanity-docker-stable-2.10 SUCCESS in 14m 57s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 25m 17s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 12m 39s
✔️ tox-cloud-refresh-examples-vmware SUCCESS in 11m 06s
✔️ ansible-galaxy-importer SUCCESS in 4m 22s

@mariolenz mariolenz closed this Nov 8, 2023
@mariolenz mariolenz deleted the 20231108-test-ansible.content_builder branch November 8, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant