frigate: Split data into two disks (hdd + nvme)
This commit is contained in:
parent
78319d29b5
commit
5865d0da5c
3 changed files with 20 additions and 8 deletions
|
@ -2,7 +2,8 @@
|
||||||
mem_size: 8192
|
mem_size: 8192
|
||||||
num_cpus: 2
|
num_cpus: 2
|
||||||
datadisks:
|
datadisks:
|
||||||
- {size: 500}
|
- {size: 50, type: nvme}
|
||||||
|
- {size: 500, type: hdd}
|
||||||
|
|
||||||
network_vip_interfaces:
|
network_vip_interfaces:
|
||||||
- device: eth1
|
- device: eth1
|
||||||
|
|
|
@ -13,15 +13,18 @@
|
||||||
- "{{ ansible_private }}/vars.yml"
|
- "{{ ansible_private }}/vars.yml"
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Mount /export
|
- name: Mount datadirectories
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
name: /export
|
name: "/export/frigate/{{ item }}"
|
||||||
src: LABEL=/export
|
src: "LABEL={{ item }}"
|
||||||
fstype: xfs
|
fstype: xfs
|
||||||
opts: noatime,noexec,nosuid,nodev
|
opts: noatime,noexec,nosuid,nodev
|
||||||
passno: "0"
|
passno: "0"
|
||||||
dump: "0"
|
dump: "0"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
with_items:
|
||||||
|
- config
|
||||||
|
- media
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
@ -32,13 +35,13 @@
|
||||||
keytab_group: apache
|
keytab_group: apache
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Run handlers to get interfaces configured
|
|
||||||
ansible.builtin.meta: flush_handlers
|
|
||||||
|
|
||||||
- name: Include unbound role
|
- name: Include unbound role
|
||||||
ansible.builtin.import_role:
|
ansible.builtin.import_role:
|
||||||
name: unbound
|
name: unbound
|
||||||
|
|
||||||
|
- name: Run handlers to get interfaces configured
|
||||||
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
- name: Include dhcpd role
|
- name: Include dhcpd role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: dhcpd
|
name: dhcpd
|
||||||
|
|
|
@ -48,6 +48,15 @@
|
||||||
setype: container_file_t
|
setype: container_file_t
|
||||||
when: ansible_selinux_python_present
|
when: ansible_selinux_python_present
|
||||||
|
|
||||||
|
- name: Create base directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /export/frigate
|
||||||
|
state: directory
|
||||||
|
mode: "0755"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
setype: _default
|
||||||
|
|
||||||
- name: Create data directories
|
- name: Create data directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -57,7 +66,6 @@
|
||||||
group: frigate
|
group: frigate
|
||||||
setype: _default
|
setype: _default
|
||||||
with_items:
|
with_items:
|
||||||
- /export/frigate
|
|
||||||
- /export/frigate/config
|
- /export/frigate/config
|
||||||
- /export/frigate/media
|
- /export/frigate/media
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue