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.
|
- {%- from "galera/map.jinja" import slave with context -%}
- #!/bin/bash
-
- service {{ slave.service }} start
-
- counter=40
-
- while [ $counter -gt 0 ]
- do
- service {{ slave.service }} status
- if [[ $? -eq 0 ]]; then
- exit 0
- fi
- counter=$(( $counter - 1 ))
- sleep 2
- done
-
- exit 1
|