Advanced tags support
It allows to search resources using advanced queries like: solar resource show --tag 'location=node1 & resource=hosts_file' solar resource show --tag 'resource=hosts_file | riak=*' DocImpact Change-Id: I25cf1522bf83b7909b9d60cfe0baf4665b81ef27
This commit is contained in:
parent
adc155bb80
commit
f6d061345f
@ -14,21 +14,21 @@ resources:
|
||||
ip: {{node}}::ip
|
||||
|
||||
updates:
|
||||
- with_tags: ['resource=hosts_file']
|
||||
- with_tags: 'resource=hosts_file'
|
||||
values:
|
||||
hosts:name:
|
||||
hosts:name:
|
||||
- riak_service{{index}}::riak_hostname::NO_EVENTS
|
||||
hosts:ip:
|
||||
- riak_service{{index}}::ip::NO_EVENTS
|
||||
|
||||
- with_tags: ['resource=haproxy_service_config', 'service=riak', 'protocol=http']
|
||||
- with_tags: 'resource=haproxy_service_config & service=riak & protocol=http'
|
||||
values:
|
||||
backends:server:
|
||||
- riak_service{{index}}::riak_hostname
|
||||
backends:port:
|
||||
- riak_service{{index}}::riak_port_http
|
||||
|
||||
- with_tags: ['resource=haproxy_service_config', 'service=riak', 'protocol=tcp']
|
||||
- with_tags: 'resource=haproxy_service_config & service=riak & protocol=tcp'
|
||||
values:
|
||||
backends:server:
|
||||
- riak_service{{index}}::riak_hostname
|
||||
@ -37,8 +37,8 @@ updates:
|
||||
|
||||
events:
|
||||
- type: depends_on
|
||||
parent:
|
||||
with_tags: ['resource=hosts_file', 'location={{node}}']
|
||||
parent:
|
||||
with_tags: 'resource=hosts_file & location={{node}}'
|
||||
action: run
|
||||
state: success
|
||||
depend_action: riak_service{{index}}.run
|
||||
|
Loading…
Reference in New Issue
Block a user