Переглянути джерело

Move bubble_restore_monitor back to packer's ansible

pull/25/head
Kristijan Mitrovic 4 роки тому
джерело
коміт
e2af504905
4 змінених файлів з 11 додано та 16 видалено
  1. +1
    -1
      bubble-server/src/main/resources/ansible/roles/bubble/tasks/main.yml
  2. +0
    -15
      bubble-server/src/main/resources/ansible/roles/bubble/tasks/restore.yml
  3. +0
    -0
      bubble-server/src/main/resources/packer/roles/bubble/files/bubble_restore_monitor.sh
  4. +10
    -0
      bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml

+ 1
- 1
bubble-server/src/main/resources/ansible/roles/bubble/tasks/main.yml Переглянути файл

@@ -47,5 +47,5 @@
- import_tasks: postgresql_data.yml

- name: Start monitor for restoring this bubble if applicable
include: restore.yml
shell: bash -c 'nohup /usr/local/bin/bubble_restore_monitor.sh {{ admin_port }} {{ restore_timeout }} > /dev/null &'
when: restore_key is defined

+ 0
- 15
bubble-server/src/main/resources/ansible/roles/bubble/tasks/restore.yml Переглянути файл

@@ -1,15 +0,0 @@
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
- name: Install restore helper scripts
copy:
src: '{{ item }}'
dest: "/usr/local/bin/{{ item }}"
owner: root
group: postgres
mode: 0550
with_items:
- "bubble_restore_monitor.sh"

- name: Start restore monitor
shell: bash -c 'nohup /usr/local/bin/bubble_restore_monitor.sh {{ admin_port }} {{ restore_timeout }} > /dev/null &'

bubble-server/src/main/resources/ansible/roles/bubble/files/bubble_restore_monitor.sh → bubble-server/src/main/resources/packer/roles/bubble/files/bubble_restore_monitor.sh Переглянути файл


+ 10
- 0
bubble-server/src/main/resources/packer/roles/bubble/tasks/main.yml Переглянути файл

@@ -55,6 +55,16 @@
- "bsql.sh"
- "random_password.sh"

- name: Install restore helper script for postgres group
copy:
src: '{{ item }}'
dest: "/usr/local/bin/{{ item }}"
owner: root
group: postgres
mode: 0550
with_items:
- "bubble_restore_monitor.sh"

- name: Install standard bubble scripts
copy:
src: "{{ item }}"


Завантаження…
Відмінити
Зберегти