--- /dev/null
+---
+- name: include start_docker_rbd_mirror.yml
+ include_tasks: start_docker_rbd_mirror.yml
--- /dev/null
+---
+# Use systemd to manage container on Atomic host
+- name: generate systemd unit file
+ template:
+ src: "{{ role_path }}/templates/ceph-rbd-mirror.service.j2"
+ dest: /etc/systemd/system/ceph-rbd-mirror@.service
+ owner: "root"
+ group: "root"
+ mode: "0644"
+ notify: restart ceph rbdmirrors
+
+- name: systemd start rbd mirror container
+ systemd:
+ name: ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}
+ state: started
+ enabled: yes
+ masked: no
+ daemon_reload: yes
+++ /dev/null
----
-- name: include start_docker_rbd_mirror.yml
- include_tasks: start_docker_rbd_mirror.yml
+++ /dev/null
----
-# Use systemd to manage container on Atomic host
-- name: generate systemd unit file
- template:
- src: "{{ role_path }}/templates/ceph-rbd-mirror.service.j2"
- dest: /etc/systemd/system/ceph-rbd-mirror@.service
- owner: "root"
- group: "root"
- mode: "0644"
- notify: restart ceph rbdmirrors
-
-- name: systemd start rbd mirror container
- systemd:
- name: ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}
- state: started
- enabled: yes
- masked: no
- daemon_reload: yes
set_fact:
container_exec_cmd: "{{ container_binary }} exec ceph-rbd-mirror-{{ ansible_hostname }}"
- - name: include docker/main.yml
- include_tasks: docker/main.yml
+ - name: include container/main.yml
+ include_tasks: container/main.yml
--- /dev/null
+---
+- name: include start_docker_rgw.yml
+ include_tasks: start_docker_rgw.yml
--- /dev/null
+---
+- name: generate environment file
+ copy:
+ dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/EnvironmentFile"
+ owner: "root"
+ group: "root"
+ mode: "0644"
+ content: |
+ INST_NAME={{ item.instance_name }}
+ INST_PORT={{ item.radosgw_frontend_port }}
+ with_items: "{{ rgw_instances }}"
+
+- name: generate systemd unit file
+ template:
+ src: "{{ role_path }}/templates/ceph-radosgw.service.j2"
+ dest: /etc/systemd/system/ceph-radosgw@.service
+ owner: "root"
+ group: "root"
+ mode: "0644"
+ notify: restart ceph rgws
+
+- name: systemd start rgw container
+ systemd:
+ name: ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}
+ state: started
+ enabled: yes
+ masked: no
+ daemon_reload: yes
+ with_items: "{{ rgw_instances }}"
+++ /dev/null
----
-- name: include start_docker_rgw.yml
- include_tasks: start_docker_rgw.yml
+++ /dev/null
----
-- name: generate environment file
- copy:
- dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/EnvironmentFile"
- owner: "root"
- group: "root"
- mode: "0644"
- content: |
- INST_NAME={{ item.instance_name }}
- INST_PORT={{ item.radosgw_frontend_port }}
- with_items: "{{ rgw_instances }}"
-
-- name: generate systemd unit file
- template:
- src: "{{ role_path }}/templates/ceph-radosgw.service.j2"
- dest: /etc/systemd/system/ceph-radosgw@.service
- owner: "root"
- group: "root"
- mode: "0644"
- notify: restart ceph rgws
-
-- name: systemd start rgw container
- systemd:
- name: ceph-radosgw@rgw.{{ ansible_hostname }}.{{ item.instance_name }}
- state: started
- enabled: yes
- masked: no
- daemon_reload: yes
- with_items: "{{ rgw_instances }}"
include_tasks: start_radosgw.yml
when: not containerized_deployment | bool
-- name: include_tasks docker/main.yml
- include_tasks: docker/main.yml
+- name: include_tasks container/main.yml
+ include_tasks: container/main.yml
when: containerized_deployment | bool
- name: include_tasks multisite/main.yml