restic formula rewrite and gitea updates

This commit is contained in:
Keiran Snowden
2023-11-26 21:56:18 -05:00
parent 0bb12fde34
commit 3de878dd20
13 changed files with 154 additions and 84 deletions

View File

@@ -63,9 +63,9 @@ PATH="${PATH}:${HOME}/.local/bin"
alias random='< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-32};echo'
{%- if bashrc_user is defined %}
{%- if bashrc_user == 'root' and 'restic' in pillar %}
export RESTIC_REPOSITORY={{ salt.pillar.get('restic:repo') }}
export RESTIC_PASSWORD={{ salt.pillar.get('restic:pass') }}
{%- if bashrc_user == 'root' and salt.pillar.get('restic:client', None) is not none %}
export RESTIC_REPOSITORY={{ salt.pillar.get('restic:client:repo') }}
export RESTIC_PASSWORD={{ salt.pillar.get('restic:client:pass') }}
{%- endif %}
{%- for alias, cmd_str in salt.pillar.get("bash_aliases:{}".format(bashrc_user), {}).items() %}
alias {{ alias }}="{{ cmd_str }}"