Skip to content

Commit bb16a3e

Browse files
claudia-lolarocky Cloud User
authored andcommitted
config edits
1 parent cb543de commit bb16a3e

File tree

3 files changed

+4
-61
lines changed

3 files changed

+4
-61
lines changed

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-3-ensure-agent-inspect.yml

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- name: Check baremetal node bmc is up
33
hosts: baremetal
44
gather_facts: false
5+
become: true
56
max_fail_percentage: >-
67
{{ baremetal_compute_register_max_fail_percentage |
78
default(baremetal_compute_max_fail_percentage) |
@@ -15,7 +16,7 @@
1516

1617
tasks:
1718
- name: Show and check baremetal node
18-
delegate_to: "{{ controller_host }}"
19+
delegate_to: localhost
1920
vars:
2021
# NOTE: Without this, the controller's ansible_host variable will not
2122
# be respected when using delegate_to.
@@ -100,50 +101,6 @@
100101
when:
101102
- kayobe_agent_inspect_done == ""
102103

103-
- name: Gather information about baremetal ports
104-
openstack.cloud.baremetal_port_info:
105-
node: "{{ inventory_hostname }}"
106-
auth_type: "{{ openstack_auth_type }}"
107-
auth: "{{ openstack_auth }}"
108-
cacert: "{{ openstack_cacert | default(omit, true) }}"
109-
interface: "{{ openstack_interface | default(omit, true) }}"
110-
register: bmport
111-
when: kayobe_agent_inspect_done == ""
112-
113-
- name: Disable PXE on all baremetal ports
114-
openstack.cloud.baremetal_port:
115-
address: "{{ item.address }}"
116-
auth_type: "{{ openstack_auth_type }}"
117-
auth: "{{ openstack_auth }}"
118-
cacert: "{{ openstack_cacert | default(omit, true) }}"
119-
interface: "{{ openstack_interface | default(omit, true) }}"
120-
node: "{{ inventory_hostname }}"
121-
is_pxe_enabled: false
122-
loop: "{{ bmport.baremetal_ports }}"
123-
when: kayobe_agent_inspect_done == ""
124-
125-
- name: Re-enable PXE on the first Mellanox ethernet NIC
126-
openstack.cloud.baremetal_port:
127-
address: "{{ bmport.baremetal_ports | selectattr('address', 'search', item) | map(attribute='address') | list | first }}"
128-
auth_type: "{{ openstack_auth_type }}"
129-
auth: "{{ openstack_auth }}"
130-
cacert: "{{ openstack_cacert | default(omit, true) }}"
131-
interface: "{{ openstack_interface | default(omit, true) }}"
132-
node: "{{ inventory_hostname }}"
133-
is_pxe_enabled: true
134-
when:
135-
- kayobe_agent_inspect_done == ""
136-
- bmport.baremetal_ports | selectattr('address', 'search', item) | list | length > 0
137-
# known mellanox ethernet NICs
138-
loop:
139-
- "^58:a2:e1"
140-
- "^a0:88:c2"
141-
- "^7c:8c:09"
142-
- "^94:6d:ae"
143-
- "^50:00:e6"
144-
- "^b8:3f:d2"
145-
- "^c4:70:bd"
146-
147104
- name: Wait for inspection
148105
ansible.builtin.command:
149106
cmd: |

etc/kayobe/environments/stackhpc-sushy-baremetal/controllers.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

etc/kayobe/pulp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ stackhpc_release_pulp_domain: "ark.stackhpc.com"
4646
stackhpc_release_pulp_url: "{{ stackhpc_release_pulp_scheme }}://{{ stackhpc_release_pulp_domain }}"
4747

4848
# Credentials used to access the StackHPC Pulp service.
49-
stackhpc_release_pulp_username:
50-
stackhpc_release_pulp_password:
49+
#stackhpc_release_pulp_username:
50+
#stackhpc_release_pulp_password:
5151

5252
# Content URL of the StackHPC Pulp service.
5353
stackhpc_release_pulp_content_url: "{{ stackhpc_release_pulp_url }}/pulp/content"

0 commit comments

Comments
 (0)