| @@ -40,6 +40,6 @@ | ||||
|   shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} &&  systemctl restart ceph-mgr@{{ ansible_hostname }}.service{% endif %}" | ||||
|   ignore_errors: true | ||||
|  | ||||
| - name: restart pvcd | ||||
|   shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcd.service" | ||||
| - name: restart pvcnoded | ||||
|   shell: "{% if is_coordinator %}sleep {{ 15 * (hostvars[ansible_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcnoded.service" | ||||
|   ignore_errors: true | ||||
|   | ||||
| @@ -3,9 +3,9 @@ | ||||
|   command: ip address add {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} | ||||
|   ignore_errors: yes | ||||
|  | ||||
| - name: start the API client | ||||
| - name: start the API daemon | ||||
|   service: | ||||
|     name: pvc-api.service | ||||
|     name: pvcapid.service | ||||
|     state: started | ||||
|  | ||||
| - name: use http as the API request scheme | ||||
| @@ -28,9 +28,9 @@ | ||||
|     url: "{{ api_uri_scheme }}://{{ pvc_api_listen_address }}:{{ pvc_api_listen_port }}/api/v1/initialize" | ||||
|     method: POST | ||||
|  | ||||
| - name: stop the API client | ||||
| - name: stop the API daemon | ||||
|   service: | ||||
|     name: pvc-api.service | ||||
|     name: pvcapid.service | ||||
|     state: stopped | ||||
|  | ||||
| - name: remove floating IP address to upstream interface | ||||
|   | ||||
| @@ -2,10 +2,10 @@ | ||||
| - name: install pvc packages | ||||
|   apt: | ||||
|     name: | ||||
|       - pvc-daemon | ||||
|       - pvc-client-common | ||||
|       - pvc-daemon-node | ||||
|       - pvc-daemon-api | ||||
|       - pvc-daemon-common | ||||
|       - pvc-client-cli | ||||
|       - pvc-client-api | ||||
|       - debootstrap | ||||
|       - ethtool | ||||
|       - jq | ||||
| @@ -16,10 +16,10 @@ | ||||
|     src: pvc/{{ item }}.j2 | ||||
|     dest: /etc/pvc/{{ item }} | ||||
|   notify: | ||||
|     - restart pvcd | ||||
|     - restart pvcnoded | ||||
|   with_items: | ||||
|     - pvcd.yaml | ||||
|     - pvc-api.yaml | ||||
|     - pvcnoded.yaml | ||||
|     - pvcapid.yaml | ||||
|  | ||||
| - name: install API SSL certificate file | ||||
|   copy: | ||||
| @@ -56,8 +56,8 @@ | ||||
|     enabled: yes | ||||
|   with_items: | ||||
|     - pvc-flush.service | ||||
|     - pvcd.service | ||||
|     - pvcd.target | ||||
|     - pvcnoded.service | ||||
|     - pvc.target | ||||
|  | ||||
| - name: install daily vacuum script | ||||
|   template: | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| --- | ||||
| # pvc-api client configuration | ||||
| # pvcapid configuration | ||||
| # {{ ansible_managed }} | ||||
| pvc: | ||||
|     debug: False | ||||
| @@ -1,5 +1,5 @@ | ||||
| --- | ||||
| # pvcd cluster configuration | ||||
| # pvcnoded configuration | ||||
| # {{ ansible_managed }} | ||||
| pvc: | ||||
|   node: {% for node in pvc_nodes if node.hostname == ansible_hostname %}{{ node.hostname }}{% endfor %} | ||||
		Reference in New Issue
	
	Block a user