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

Remove baremetal_deploy_template module #18

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
- cloud
- openstack
dependencies:
"openstack.cloud": "*"
"openstack.cloud": ">=2.1.0"
repository: https://github.com/stackhpc/ansible-collection-openstack
documentation: https://github.com/stackhpc/ansible-collection-openstack/branch/main/README.md
homepage: https://github.com/stackhpc/ansible-collection-openstack
Expand Down
206 changes: 0 additions & 206 deletions plugins/modules/baremetal_deploy_template.py

This file was deleted.

5 changes: 3 additions & 2 deletions roles/os_deploy_templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ catalog. Maybe be one of `public`, `admin`, or `internal`.

`os_deploy_templates` is a list of Ironic deploy templates to register. Each
item should be a dict containing following items:
* `name`: Name of the deploy template.
* `steps`: List of deploy steps.
* `name`: Name of the deploy template. Required when the deploy template is
created, after which the name or ID may be used.
* `steps`: List of deploy steps. Required when the deploy template is created.
* `extra`: Dict of metadata, optional.
* `uuid`: UUID, optional.
* `state`: State, optional.
Expand Down
5 changes: 3 additions & 2 deletions roles/os_deploy_templates/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ os_deploy_templates_interface:

# List of Ironic deploy templates to register. Each item should be a dict
# containing the following items:
# - 'name': Name of the deploy template.
# - 'steps': List of deploy steps.
# - 'name': Name of the deploy template. Required when the deploy template is
# created, after which the name or ID may be used. - 'steps': List
# of deploy steps.
# - 'extra': Dict of metadata, optional.
# - 'uuid': UUID, optional.
# - 'state': State, optional.
Expand Down
6 changes: 3 additions & 3 deletions roles/os_deploy_templates/tasks/deploy_templates.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- name: Ensure Ironic deploy templates exist
stackhpc.openstack.baremetal_deploy_template:
openstack.cloud.baremetal_deploy_template:
auth_type: "{{ os_deploy_templates_auth_type }}"
auth: "{{ os_deploy_templates_auth }}"
cacert: "{{ os_deploy_templates_cacert | default(omit) }}"
interface: "{{ os_deploy_templates_interface | default(omit, true) }}"
name: "{{ item.name }}"
steps: "{{ item.steps }}"
name: "{{ item.name | default(omit) }}"
steps: "{{ item.steps | default(omit) }}"
uuid: "{{ item.uuid | default(omit) }}"
extra: "{{ item.extra | default(omit) }}"
state: "{{ item.state | default(omit) }}"
Expand Down