Browse Source

Add ability to configure backup path for minion

Prod-Related: PROD-20181
Change-Id: I86fb92022521f42a70b6ffd112f0c5eff3fd607b
pull/73/head
Oleksii Chupryn 6 years ago
parent
commit
874225f0b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/files/restore_minion.sh

+ 2
- 2
salt/files/restore_minion.sh View File

mkdir -p /etc/pki/pki_ca.bak mkdir -p /etc/pki/pki_ca.bak
mkdir -p /etc/pki/ca mkdir -p /etc/pki/ca
mv /etc/pki/ca/* /etc/pki/pki_ca.bak mv /etc/pki/ca/* /etc/pki/pki_ca.bak
scp -r backupninja@{{ minion.initial_data.source }}:/srv/backupninja/{{ minion.initial_data.host }}/etc/pki/ca/ca.0/* /etc/pki/ca
scp -r backupninja@{{ minion.initial_data.source }}:{{ minion.initial_data.get('home_dir', '/srv/backupninja') }}/{{ minion.initial_data.host }}/etc/pki/ca/ca.0/* /etc/pki/ca
{%- endif %}
{%- endif %} {%- endif %}
{%- endif %}

Loading…
Cancel
Save