Skip to content

Ansible role in JetBrew to provision the EDPM nodes#12

Open
smandaRH wants to merge 11 commits intoredhat-performance:mainfrom
smandaRH:provision
Open

Ansible role in JetBrew to provision the EDPM nodes#12
smandaRH wants to merge 11 commits intoredhat-performance:mainfrom
smandaRH:provision

Conversation

@smandaRH
Copy link
Copy Markdown
Contributor

No description provided.

@smandaRH smandaRH force-pushed the provision branch 2 times, most recently from d419eec to f212c7c Compare October 29, 2025 19:13
# Starting node index for compute node provisioning (0-indexed)
# Default is 4 (starts from 5th node: 1 bastion + 3 OCP nodes = index 4)
# Set this in group_vars/all.yml to start provisioning from a different node
compute_start_node_index: 4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This var is defined in group_vars/all.sample.yml alsoo..
if this is intended, change the var name to "start_node", keep default value to 5 and change the comments as necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still i can see the same name in group_vars/all.yml

@smandaRH smandaRH force-pushed the provision branch 2 times, most recently from 7c14258 to d90eed8 Compare December 2, 2025 11:16
@smandaRH smandaRH force-pushed the provision branch 2 times, most recently from 3d5a1f5 to b4b987e Compare February 9, 2026 20:34
@smandaRH smandaRH force-pushed the provision branch 2 times, most recently from 1ae568f to 9f5938f Compare February 17, 2026 06:22
all_nodes: "{{ (ocp_inventory.content | from_json).nodes }}"
total_num_nodes: "{{ (ocp_inventory.content | from_json).nodes | length }}"

- name: Set effective start index (from start or fallback variable)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed this tasks should get triggered only when user has provided negative index for provision_start_node_index

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed the comment

ansible.builtin.set_fact:
foreman_user: "{{ all_nodes[0].pm_user }}"
foreman_password: "{{ all_nodes[0].pm_password }}"
supermicro_regex: '.*(1029u|1029p|5039ms|6018r|6029p|6029r|6048p|6048r|6049p).*'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

support incase new machine type is added to lab. Provide a option to override from group_vars/all.yml or update README

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated supermicro_regex to default to role.

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.

4 participants