remove lvm integration
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-10-22 22:25:35 +02:00
parent d2ded4c48c
commit 13bb8cebcf
3 changed files with 0 additions and 47 deletions

View File

@ -5,15 +5,6 @@ postgres_repository_filename: "Postgresql-{{ postgres_version | regex_replace('\
postgres_user: postgres
postgres_group: postgres
postgres_lvm_enabled: False
# This variables are only necessary if postgres_lvm_enabled is 'True'
# Set physical volumes to use in LVM
# postgres_lvm_pvs: # ['/dev/sdb', '/dev/sdc']
# postgres_lvm_vg: # "vg_postgres"
# postgres_lvm_lv: # "lv_postgres"
# postgres_lvm_fstype: # "ext4"
# postgres_lvm_size: # "50G"
# @var postgres_base_dir: $ "_os-default_"
postgres_log_destination:

View File

@ -1,7 +1,5 @@
---
- import_tasks: prepare.yml
- import_tasks: storage.yml
when: postgres_lvm_enabled | bool
- import_tasks: install.yml
- import_tasks: config.yml
- import_tasks: tls.yml

View File

@ -1,36 +0,0 @@
---
- block:
- name: Setup base folder and set permissions
file:
path: "{{ postgres_base_dir }}"
state: directory
owner: "{{ postgres_user }}"
group: "{{ postgres_group }}"
mode: 0700
- name: Create volume group '{{ postgres_lvm_vg }}'
lvg:
vg: "{{ postgres_lvm_vg }}"
pvs: "{{ postgres_lvm_pvs | join(',') }}"
pesize: "4"
- name: Create logical volume '{{ postgres_lvm_lv }}'
lvol:
vg: "{{ postgres_lvm_vg }}"
lv: "{{ postgres_lvm_lv }}"
size: "{{ postgres_lvm_size }}"
- name: Create filesystem for '/dev/mapper/{{ postgres_lvm_vg }}-{{ postgres_lvm_lv }}'
filesystem:
fstype: "{{ postgres_lvm_fstype }}"
dev: "/dev/mapper/{{ postgres_lvm_vg }}-{{ postgres_lvm_lv }}"
resizefs: True
- name: Mount volume to '{{ postgres_base_dir }}'
mount:
path: "{{ postgres_base_dir }}"
src: "/dev/mapper/{{ postgres_lvm_vg }}-{{ postgres_lvm_lv }}"
fstype: "{{ postgres_lvm_fstype }}"
state: mounted
become: True
become_user: root