Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bootstrap.sh 278B

9 anni fa
9 anni fa
9 anni fa
9 anni fa
9 anni fa
123456789101112131415161718
  1. {%- from "galera/map.jinja" import slave with context -%}
  2. #!/bin/bash
  3. service {{ slave.service }} start
  4. counter=70
  5. while [ $counter -gt 0 ]
  6. do
  7. service {{ slave.service }} status
  8. if [[ $? -eq 0 ]]; then
  9. exit 0
  10. fi
  11. counter=$(( $counter - 1 ))
  12. sleep 2
  13. done
  14. exit 1