remove lvm integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ff46fd60d8
commit
6752f27f22
@ -16,14 +16,6 @@ mongodb_rbac_enabled: False
|
|||||||
mongodb_user_admin_name: mongoadm
|
mongodb_user_admin_name: mongoadm
|
||||||
mongodb_user_admin_password: secure
|
mongodb_user_admin_password: secure
|
||||||
|
|
||||||
mongodb_lvm_enabled: False
|
|
||||||
# mongodb_lvm_pvs:
|
|
||||||
# - /dev/sda
|
|
||||||
# mongodb_lvm_vg: vg_mongo
|
|
||||||
# mongodb_lvm_lv: lv_mongo
|
|
||||||
# mongodb_lvm_size: 10G
|
|
||||||
# mongodb_lvm_fstype: xfs
|
|
||||||
|
|
||||||
mongodb_net_bindip:
|
mongodb_net_bindip:
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
mongodb_net_http_enabled: False
|
mongodb_net_http_enabled: False
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: install.yml
|
- include_tasks: install.yml
|
||||||
- include_tasks: storage.yml
|
|
||||||
when: mongodb_lvm_enabled
|
|
||||||
- include_tasks: config.yml
|
- include_tasks: config.yml
|
||||||
- name: Check where admin user already exists
|
- name: Check where admin user already exists
|
||||||
command: |
|
command: |
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Create volume group '{{ mongodb_lvm_vg }}'
|
|
||||||
lvg:
|
|
||||||
vg: "{{ mongodb_lvm_vg }}"
|
|
||||||
pvs: "{{ mongodb_lvm_pvs | join(',') }}"
|
|
||||||
pesize: "4"
|
|
||||||
|
|
||||||
- name: Create logical volume '{{ mongodb_lvm_lv }}'
|
|
||||||
lvol:
|
|
||||||
vg: "{{ mongodb_lvm_vg }}"
|
|
||||||
lv: "{{ mongodb_lvm_lv }}"
|
|
||||||
size: "{{ mongodb_lvm_size }}"
|
|
||||||
|
|
||||||
- name: Create filesystem for '/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}'
|
|
||||||
filesystem:
|
|
||||||
fstype: "{{ mongodb_lvm_fstype }}"
|
|
||||||
dev: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
|
||||||
resizefs: True
|
|
||||||
|
|
||||||
- name: Mount volume to '{{ mongodb_storage_dbpath }}'
|
|
||||||
mount:
|
|
||||||
path: "{{ mongodb_storage_dbpath }}"
|
|
||||||
src: "/dev/mapper/{{ mongodb_lvm_vg }}-{{ mongodb_lvm_lv }}"
|
|
||||||
fstype: "{{ mongodb_lvm_fstype }}"
|
|
||||||
state: mounted
|
|
||||||
become: True
|
|
||||||
become_user: root
|
|
Loading…
Reference in New Issue
Block a user