InterviewSolution
| 1. |
Why Did The Value For A Grain Change On Its Own? |
|
Answer» This is usually the result of an upstream change in an OS DISTRIBUTION that replaces or removes something that SALT was using to detect the grain. FORTUNATELY, when this occurs, you can use Salt to FIX it with a command similar to the following: salt -G 'grain:ChangedValue' grains.setvals "{'grain': 'OldValue'}" (Replacing grain, ChangedValue, and OldValue with the grain and values that you want to change / set.) You should also file an issue describing the change so it can be fixed in Salt. This is usually the result of an upstream change in an OS distribution that replaces or removes something that Salt was using to detect the grain. Fortunately, when this occurs, you can use Salt to fix it with a command similar to the following: salt -G 'grain:ChangedValue' grains.setvals "{'grain': 'OldValue'}" (Replacing grain, ChangedValue, and OldValue with the grain and values that you want to change / set.) You should also file an issue describing the change so it can be fixed in Salt. |
|