Attach extra volumes on stateful service nodes
Attach extra data disks to the nodes that require data persistence and data safety.
Changes:
- Add
data_disk_type
anddata_disk_size
in tencentcloud module to configure data disks. Ifdata_disk_size
is null, no disk will be created. - Add
<service>_data_disk_size
on dedicated services in the tencentcloud ref arch - In ansible
common
role, add variabledata_disk
to determine wether mount the disks or not. If thedata_disk
is found, the disk will be mounted to/var/opt/gitlab
when it is omnibus node or/var/lib/docker
when it is elasticserch node.
Related issues: https://gitlab.com/gitlab-jh/jh-team/infrastructure/-/issues/18