98bb9923a2
Added workaround to stop containers which should not be on the node, accouding to a file with list of services which is filled in by ansible's tasks. It allows to implement scale-down and resource migration.
24 lines
443 B
YAML
24 lines
443 B
YAML
id: mariadb
|
|
class: mariadb
|
|
type: resource
|
|
handler: ansible
|
|
version: v1
|
|
|
|
actions:
|
|
run: simple/mariadb/run.yml
|
|
remove: simple/mariadb/remove.yml
|
|
wait: simple/mariadb/wait.yml
|
|
users: simple/mariadb/users.yml
|
|
|
|
input:
|
|
bind_ip: "{{ this.node.ip }}"
|
|
name: solar.mariadb-test
|
|
image: kollaglue/fedora-rdo-mariadb-app
|
|
root_password: test1
|
|
users:
|
|
- name: test1
|
|
password: test1
|
|
tags:
|
|
- service/mariadb
|
|
- entrypoint/mariadb
|