Skip to content

Commit

Permalink
Change name of services for bootc
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Dec 11, 2024
1 parent 48526a5 commit c04ac6a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 34 deletions.
15 changes: 6 additions & 9 deletions roles/edpm_iscsid/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@
file: healthchecks.yml

- name: Manage iscsid containers
ansible.builtin.include_role:
name: edpm_container_standalone
vars:
edpm_container_standalone_service: iscsid
edpm_container_standalone_container_defs:
iscsid: "{{ lookup('template', 'iscsid.yaml.j2') | from_yaml }}"
edpm_container_standalone_kolla_config_files:
iscsid: "{{ lookup('file', 'files/iscsid.yaml') | from_yaml }}"
ansible.builtin.systemd_service:
name: edpm-compute@iscsid
enabled: true
state: started
register: manage_iscsid_stat
become: true

- name: Check if the iscsid container restart is required
ansible.builtin.stat:
Expand All @@ -52,7 +49,7 @@
- not manage_iscsid_stat.changed|bool
- iscsi_restart_stat.stat.exists|bool
ansible.builtin.systemd:
name: edpm_iscsid
name: edpm-compute@iscsid
state: restarted

- name: Remove iscsid container restart sentinel file
Expand Down
2 changes: 1 addition & 1 deletion roles/edpm_multipathd/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- ansible_facts.services["multipathd"]["status"] == "enabled"
failed_when: false
loop:
- multipathd.service
- edpm-compute@multipathd.service
- multipathd.socket
loop_control:
index_var: multipath_service_index
Expand Down
12 changes: 4 additions & 8 deletions roles/edpm_multipathd/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@
file: healthchecks.yml

- name: Manage multipathd containers
ansible.builtin.include_role:
name: edpm_container_standalone
vars:
edpm_container_standalone_service: multipathd
edpm_container_standalone_container_defs:
multipathd: "{{ lookup('template', 'multipathd.yaml.j2') | from_yaml }}"
edpm_container_standalone_kolla_config_files:
multipathd: "{{ lookup('template', 'kolla_multipathd.yaml.j2') | from_yaml }}"
ansible.builtin.systemd_service:
name: edpm-compute@multipathd
enabled: true
state: started
register: manage_multipathd_stat

- name: Check if the multipathd container restart is required
Expand Down
13 changes: 5 additions & 8 deletions roles/edpm_neutron_metadata/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@
file: healthchecks.yml

- name: Run ovn_metadata_agent container
ansible.builtin.include_role:
name: osp.edpm.edpm_container_standalone
vars:
edpm_container_standalone_service: ovn_metadata_agent
edpm_container_standalone_container_defs:
ovn_metadata_agent: "{{ lookup('template', 'ovn_metadata_agent.yaml.j2') | from_yaml }}"
edpm_container_standalone_kolla_config_files:
ovn_metadata_agent: "{{ lookup('template', 'kolla_ovn_metadata_agent.yaml.j2') | from_yaml }}"
ansible.builtin.systemd_service:
name: edpm-compute@ovn_metadata_agent
enabled: true
state: started
become: true
14 changes: 6 additions & 8 deletions roles/edpm_ovn/tasks/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@
file: healthchecks.yml

- name: Run ovn_controller container
ansible.builtin.include_role:
name: osp.edpm.edpm_container_standalone
vars:
edpm_container_standalone_service: edpm-compute@ovn_controller
edpm_container_standalone_container_defs:
ovn_controller: "{{ lookup('template', 'ovn_controller.yaml.j2') | from_yaml }}"
edpm_container_standalone_kolla_config_files:
ovn_controller: "{{ lookup('template', 'kolla_ovn_controller.yaml.j2') | from_yaml }}"
ansible.builtin.systemd_service:
name: edpm-compute@ovn_controller
enabled: true
state: started
become: true

0 comments on commit c04ac6a

Please sign in to comment.