lbu.conf role
parent
0f7ad01659
commit
669988c9f3
10
deploy.yml
10
deploy.yml
|
@ -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
|
||||
|
|
|
@ -34,6 +34,10 @@ all:
|
|||
- main
|
||||
- community
|
||||
|
||||
lbu_encrypt: true
|
||||
lbu_media: mmcblk0p2
|
||||
lbu_backupdir: /media/mmcblk0p2
|
||||
|
||||
dmcrypt_targets:
|
||||
- name: "WDC WDS400T1R0A"
|
||||
target: "disk0"
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
lbu_cipher: aes-256-cbc
|
||||
lbu_encrypt: false
|
||||
lbu_media: mmcblk0p1
|
||||
lbu_backup_limit: 5
|
|
@ -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
|
|
@ -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 }}
|
Loading…
Reference in New Issue