You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Corerelates to code central or existential to SaltGrainsbugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
At the before id I expect the domain field to be empty while on the after id I expect that the domain field would containtest
Another example, when i file.managed the grains.conf file I want that the grains change will take affect on the current run.
How can I achieve that?
I'm running on Ubuntu 16.04 with salt-minion and salt-master version 3000.3
@AmiramMaimon Apologies for the delay, circling back on this one. If we look back at your original state where you're looking at the value of dns in the available grains, then updating the file which is the basis of that grain in the same state, because the state has been rendered already the values of the grains are not going to be updated until you run the state again which would cause the state to be rendered again with the updated grains. Anything that is wrapped in jinja templating will be rendered once and only once.
What is the problem that you're looking to solve by updating the grain and then using it that update later?
Corerelates to code central or existential to SaltGrainsbugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
Activity
sagetherage commentedon Feb 17, 2021
the Core team will not be able to get to this in
Aluminiumbut we will review a PR if anyone in the community wants to submit one, moving toSilicon9 remaining items
garethgreenaway commentedon Feb 16, 2022
@AmiramMaimon Apologies for the delay, circling back on this one. If we look back at your original state where you're looking at the value of
dnsin the available grains, then updating the file which is the basis of that grain in the same state, because the state has been rendered already the values of the grains are not going to be updated until you run the state again which would cause the state to be rendered again with the updated grains. Anything that is wrapped in jinja templating will be rendered once and only once.What is the problem that you're looking to solve by updating the grain and then using it that update later?