Any method to get grains value including wildcard #67613
Replies: 9 comments
-
@Prakash82x Thanks for the report. |
Beta Was this translation helpful? Give feedback.
-
Any update on this request please ? |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Still valid request |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
this does look like a |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Yup. This makes sense as a future feature request. Removing the "Pending Discussion" label. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
We have nested grains and that is not consistent across the environment, I want to get value of grains with wildcard.
Something like this:
salt -L "minion1, minion2, minion3" grains.get 'rootgrain:nestedgrain:*:nestedgrain2'
The * mentioned in the grains hierarchy above contains different keys for different servers (physical/virtual/vendor etc..) and hence we need * to be able to find out all servers which contains specific grain value.
Setup
I know there is a way to target minions with wildcards in the Glob matching syntax
(like:salt -G 'test:*:int:test2:active' test.ping)
but can we just get the grains value with wildcards in it as requested above.Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Salt-Master
Salt Version:
Salt: 2018.3.2
Dependency Versions:
cffi: 1.6.0
cherrypy: unknown
dateutil: 1.5
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.28.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.1
mysql-python: 1.2.5
pycparser: 2.14
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Feb 20 2018, 09:19:12)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: redhat 7.5 Maipo
locale: UTF-8
machine: x86_64
release: 3.10.0-862.3.2.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 7.5 Maipo
Beta Was this translation helpful? Give feedback.
All reactions