From f6d061345f3afcb42b88d160a159b3ea59c288b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Thu, 17 Dec 2015 16:36:28 +0100 Subject: [PATCH] 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 --- examples/riak/riak_service.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/riak/riak_service.yaml b/examples/riak/riak_service.yaml index acf931d..ad2c983 100644 --- a/examples/riak/riak_service.yaml +++ b/examples/riak/riak_service.yaml @@ -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