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:
Łukasz Oleś 2015-12-17 16:36:28 +01:00 committed by Lukasz Oles
parent adc155bb80
commit f6d061345f

View File

@ -14,21 +14,21 @@ resources:
ip: {{node}}::ip
updates:
- with_tags: ['resource=hosts_file']
- with_tags: 'resource=hosts_file'
values:
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
@ -38,7 +38,7 @@ updates:
events:
- type: depends_on
parent:
with_tags: ['resource=hosts_file', 'location={{node}}']
with_tags: 'resource=hosts_file & location={{node}}'
action: run
state: success
depend_action: riak_service{{index}}.run