lbu.conf role

main
Ricard Illa 2022-10-31 17:08:27 +01:00
parent 0f7ad01659
commit 669988c9f3
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
5 changed files with 52 additions and 1 deletions

View File

@ -29,6 +29,14 @@
- cryptoraid
tags: raid
- name: lbu.conf
hosts:
- suricata
become: true
roles:
- lbu_conf
tags: lbu_conf
- name: mounts
hosts:
- suricata
@ -174,4 +182,4 @@
command: /usr/local/bin/ro
# todo:
# setup-apkcache and setup-lbu to use /media/mmcblk0p2
# setup-apkcache to use /media/mmcblk0p2

View File

@ -34,6 +34,10 @@ all:
- main
- community
lbu_encrypt: true
lbu_media: mmcblk0p2
lbu_backupdir: /media/mmcblk0p2
dmcrypt_targets:
- name: "WDC WDS400T1R0A"
target: "disk0"

View File

@ -0,0 +1,6 @@
---
lbu_cipher: aes-256-cbc
lbu_encrypt: false
lbu_media: mmcblk0p1
lbu_backup_limit: 5

View File

@ -0,0 +1,11 @@
---
- name: make lbu config dir
file:
path: /etc/lbu
state: directory
- name: render lbu.conf template
template:
src: lbu.conf.j2
dest: /etc/lbu/lbu.conf

View File

@ -0,0 +1,22 @@
# what cipher to use with -e option
DEFAULT_CIPHER={{ lbu_cipher }}
# Uncomment the row below to encrypt config by default
{% if lbu_encrypt %}
ENCRYPTION=$DEFAULT_CIPHER
{% else %}
# ENCRYPTION=$DEFAULT_CIPHER
{% endif %}
# Uncomment below to avoid <media> option to 'lbu commit'
# Can also be set to 'floppy'
LBU_MEDIA={{ lbu_media }}
# Set the LBU_BACKUPDIR variable in case you prefer to save the apkovls
# in a normal directory instead of mounting an external media.
{% if lbu_backupdir is defined %}
LBU_BACKUPDIR={{ lbu_backupdir }}
{% endif %}
# Uncomment below to let lbu make up to 3 backups
BACKUP_LIMIT={{ lbu_backup_limit }}