Skip to content

Commit 51a8b34

Browse files
committed
Change name of services for bootc
Signed-off-by: Brendan Shephard <[email protected]>
1 parent 0a8bfcc commit 51a8b34

File tree

5 files changed

+22
-34
lines changed

5 files changed

+22
-34
lines changed

roles/edpm_iscsid/tasks/run.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@
2424
file: healthchecks.yml
2525

2626
- name: Manage iscsid containers
27-
ansible.builtin.include_role:
28-
name: edpm_container_standalone
29-
vars:
30-
edpm_container_standalone_service: iscsid
31-
edpm_container_standalone_container_defs:
32-
iscsid: "{{ lookup('template', 'iscsid.yaml.j2') | from_yaml }}"
33-
edpm_container_standalone_kolla_config_files:
34-
iscsid: "{{ lookup('file', 'files/iscsid.yaml') | from_yaml }}"
27+
ansible.builtin.systemd_service:
28+
name: edpm-compute@iscsid
29+
enabled: true
30+
state: started
3531
register: manage_iscsid_stat
32+
become: true
3633

3734
- name: Check if the iscsid container restart is required
3835
ansible.builtin.stat:
@@ -52,7 +49,7 @@
5249
- not manage_iscsid_stat.changed|bool
5350
- iscsi_restart_stat.stat.exists|bool
5451
ansible.builtin.systemd:
55-
name: edpm_iscsid
52+
name: edpm-compute@iscsid
5653
state: restarted
5754

5855
- name: Remove iscsid container restart sentinel file

roles/edpm_multipathd/tasks/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
- ansible_facts.services["multipathd"]["status"] == "enabled"
4242
failed_when: false
4343
loop:
44-
- multipathd.service
44+
- edpm-compute@multipathd.service
4545
- multipathd.socket
4646
loop_control:
4747
index_var: multipath_service_index

roles/edpm_multipathd/tasks/run.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@
2424
file: healthchecks.yml
2525

2626
- name: Manage multipathd containers
27-
ansible.builtin.include_role:
28-
name: edpm_container_standalone
29-
vars:
30-
edpm_container_standalone_service: multipathd
31-
edpm_container_standalone_container_defs:
32-
multipathd: "{{ lookup('template', 'multipathd.yaml.j2') | from_yaml }}"
33-
edpm_container_standalone_kolla_config_files:
34-
multipathd: "{{ lookup('template', 'kolla_multipathd.yaml.j2') | from_yaml }}"
27+
ansible.builtin.systemd_service:
28+
name: edpm-compute@multipathd
29+
enabled: true
30+
state: started
3531
register: manage_multipathd_stat
3632

3733
- name: Check if the multipathd container restart is required

roles/edpm_neutron_metadata/tasks/run.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@
3737
file: healthchecks.yml
3838

3939
- name: Run ovn_metadata_agent container
40-
ansible.builtin.include_role:
41-
name: osp.edpm.edpm_container_standalone
42-
vars:
43-
edpm_container_standalone_service: ovn_metadata_agent
44-
edpm_container_standalone_container_defs:
45-
ovn_metadata_agent: "{{ lookup('template', 'ovn_metadata_agent.yaml.j2') | from_yaml }}"
46-
edpm_container_standalone_kolla_config_files:
47-
ovn_metadata_agent: "{{ lookup('template', 'kolla_ovn_metadata_agent.yaml.j2') | from_yaml }}"
40+
ansible.builtin.systemd_service:
41+
name: edpm-compute@ovn_metadata_agent
42+
enabled: true
43+
state: started
44+
become: true

roles/edpm_ovn/tasks/run.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@
3737
file: healthchecks.yml
3838

3939
- name: Run ovn_controller container
40-
ansible.builtin.include_role:
41-
name: osp.edpm.edpm_container_standalone
42-
vars:
43-
edpm_container_standalone_service: edpm-compute@ovn_controller
44-
edpm_container_standalone_container_defs:
45-
ovn_controller: "{{ lookup('template', 'ovn_controller.yaml.j2') | from_yaml }}"
46-
edpm_container_standalone_kolla_config_files:
47-
ovn_controller: "{{ lookup('template', 'kolla_ovn_controller.yaml.j2') | from_yaml }}"
40+
ansible.builtin.systemd_service:
41+
name: edpm-compute@ovn_controller
42+
enabled: true
43+
state: started
44+
become: true
45+

0 commit comments

Comments
 (0)