Validation fixes
This commit is contained in:
parent
6d64a43437
commit
f25864cbf9
@ -6,10 +6,13 @@
|
|||||||
image: {{ image }}
|
image: {{ image }}
|
||||||
state: running
|
state: running
|
||||||
net: host
|
net: host
|
||||||
|
{% if ports.value %}
|
||||||
ports:
|
ports:
|
||||||
{% for port in ports.value %}
|
{% for port in ports.value %}
|
||||||
- {{ port['value'] }}:{{ port['value'] }}
|
- {{ port['value'] }}:{{ port['value'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if host_binds.value %}
|
||||||
volumes:
|
volumes:
|
||||||
# TODO: host_binds might need more work
|
# TODO: host_binds might need more work
|
||||||
# Currently it's not that trivial to pass custom src: dst here
|
# Currently it's not that trivial to pass custom src: dst here
|
||||||
@ -18,3 +21,4 @@
|
|||||||
{% for bind in host_binds.value %}
|
{% for bind in host_binds.value %}
|
||||||
- {{ bind['value']['src'] }}:{{ bind['value']['dst'] }}:{{ bind['value'].get('mode', 'ro') }}
|
- {{ bind['value']['src'] }}:{{ bind['value']['dst'] }}:{{ bind['value'].get('mode', 'ro') }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
@ -7,12 +7,15 @@
|
|||||||
image: {{ image }}
|
image: {{ image }}
|
||||||
state: running
|
state: running
|
||||||
net: host
|
net: host
|
||||||
|
{% if ports.value %}
|
||||||
ports:
|
ports:
|
||||||
{% for port in ports.value %}
|
{% for port in ports.value %}
|
||||||
{% for p in port['value'] %}
|
{% for p in port['value'] %}
|
||||||
- {{ p['value'] }}:{{ p['value'] }}
|
- {{ p['value'] }}:{{ p['value'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if host_binds.value %}
|
||||||
volumes:
|
volumes:
|
||||||
# TODO: host_binds might need more work
|
# TODO: host_binds might need more work
|
||||||
# Currently it's not that trivial to pass custom src: dst here
|
# Currently it's not that trivial to pass custom src: dst here
|
||||||
@ -21,3 +24,4 @@
|
|||||||
{% for bind in host_binds.value %}
|
{% for bind in host_binds.value %}
|
||||||
- {{ bind['value']['src'] }}:{{ bind['value']['dst'] }}:{{ bind['value'].get('mode', 'ro') }}
|
- {{ bind['value']['src'] }}:{{ bind['value']['dst'] }}:{{ bind['value'].get('mode', 'ro') }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
@ -9,10 +9,10 @@ input:
|
|||||||
schema: str!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
ports:
|
ports:
|
||||||
schema: [int]
|
schema: [{value: [{value: int}]}]
|
||||||
value: []
|
value: []
|
||||||
host_binds:
|
host_binds:
|
||||||
schema: [[int]]
|
schema: [{value: {src: str, dst: str}}]
|
||||||
value: []
|
value: []
|
||||||
volume_binds:
|
volume_binds:
|
||||||
schema: [{src: str, dst: str}]
|
schema: [{src: str, dst: str}]
|
||||||
|
@ -3,22 +3,22 @@ handler: ansible
|
|||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
input:
|
input:
|
||||||
ip:
|
ip:
|
||||||
schema: int!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
config_dir:
|
config_dir:
|
||||||
schema: {src: str!, dst: str!}
|
schema: {src: str!, dst: str!}
|
||||||
value: {src: /etc/solar/haproxy, dst: /etc/haproxy}
|
value: {src: /etc/solar/haproxy, dst: /etc/haproxy}
|
||||||
listen_ports:
|
listen_ports:
|
||||||
schema: [int]
|
schema: [{value: int}]
|
||||||
value: []
|
value: []
|
||||||
configs:
|
configs:
|
||||||
schema: [[str]]
|
schema: [{value: [{value: str}]}]
|
||||||
value: []
|
value: []
|
||||||
configs_names:
|
configs_names:
|
||||||
schema: [str]
|
schema: [{value: str}]
|
||||||
value: []
|
value: []
|
||||||
configs_ports:
|
configs_ports:
|
||||||
schema: [[int]]
|
schema: [{value: [{value: int}]}]
|
||||||
value: []
|
value: []
|
||||||
ssh_user:
|
ssh_user:
|
||||||
schema: str!
|
schema: str!
|
||||||
|
@ -9,10 +9,10 @@ input:
|
|||||||
schema: int!
|
schema: int!
|
||||||
value: 9999
|
value: 9999
|
||||||
ports:
|
ports:
|
||||||
schema: [int]
|
schema: [{value: int}]
|
||||||
value:
|
value:
|
||||||
servers:
|
servers:
|
||||||
schema: [str]
|
schema: [{value: str}]
|
||||||
value:
|
value:
|
||||||
|
|
||||||
tags: [resources/haproxy, resource/haproxy_keystone_config]
|
tags: [resources/haproxy, resource/haproxy_keystone_config]
|
||||||
|
@ -9,10 +9,10 @@ input:
|
|||||||
schema: str!
|
schema: str!
|
||||||
value: password
|
value: password
|
||||||
port:
|
port:
|
||||||
schema: str!
|
schema: int!
|
||||||
value: 3306
|
value: 3306
|
||||||
ip:
|
ip:
|
||||||
schema: int!
|
schema: str!
|
||||||
value:
|
value:
|
||||||
ssh_key:
|
ssh_key:
|
||||||
schema: str!
|
schema: str!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user