%define COMPONENT lcm
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 1.0.0
-%define RPM_MINOR_VERSION 8
+%define RPM_MINOR_VERSION 9
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define DEPLOY_PATH %{_caas_lcm_path}/deploy
%define SU_PATH %{_caas_lcm_path}/su
line: "start_time: {{ start_time }}"
become: true
+- block:
+ - name: Compose the device path of swift volume on Openstack
+ set_fact:
+ swift_dev: "/dev/disk/by-id/virtio-{{ swift_volume }}"
+
+ - name: Run what_is_the_filesystem.yml
+ include_role:
+ name: common_tasks
+ tasks_from: what_is_the_filesystem.yml
+ vars:
+ device: "{{swift_dev}}"
+
+ - name: Mount the device
+ mount:
+ name: /srv/node/swift-update/
+ src: "{{swift_dev}}"
+ fstype: "{{ filesystem_type.stdout | lower | default('ext4') }}"
+ state: mounted
+ become: true
+ when: swift_volume is defined and swift_volume != ""
+
- block:
- name: Compose the device path of swift volume on BareMetal
set_fact: