Procházet zdrojové kódy

backup reclass dir

PROD-18192

Change-Id: Ifac3cc8cc26ac825feb2338b9668a7a3572570a6
pull/73/head
Jiri Broulik před 6 roky
rodič
revize
836d0c47ba
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -1
      salt/files/restore_master.sh
  2. +1
    -1
      salt/meta/backupninja.yml

+ 1
- 1
salt/files/restore_master.sh Zobrazit soubor

@@ -6,6 +6,6 @@ mkdir -p /etc/salt/pki.bak
mv /etc/salt/pki/* /etc/salt/pki.bak
scp -r backupninja@{{ master.initial_data.source }}:/srv/backupninja/{{ master.initial_data.host }}/etc/salt/pki/pki.0/* /etc/salt/pki
{%- if master.pillar.engine == 'reclass' or (master.pillar.engine == 'composite' and master.pillar.reclass is defined) %}
scp -r backupninja@{{ master.initial_data.source }}:/srv/backupninja/{{ master.initial_data.host }}/srv/salt/reclass/nodes/_generated/_generated.0/* /srv/salt/reclass/nodes/_generated
scp -r backupninja@{{ master.initial_data.source }}:/srv/backupninja/{{ master.initial_data.host }}/srv/salt/reclass/reclass.0/* /srv/salt/reclass
{%- endif %}
{%- endif %}

+ 1
- 1
salt/meta/backupninja.yml Zobrazit soubor

@@ -6,7 +6,7 @@ backup:
{%- if master.get('backup', False) %}
fs_includes:
{%- if master.pillar.engine == 'reclass' or (master.pillar.engine == 'composite' and master.pillar.reclass is defined) %}
- /srv/salt/reclass/nodes/_generated
- /srv/salt/reclass
{%- endif %}
- /etc/salt/pki
{%- if minion.get('backup', False) %}

Načítá se…
Zrušit
Uložit