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
{{ message }}
Repository navigation
augeas issue with apache and recognizing changes that have been already made #24275
P3Priority 3PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviordocumentationRelates to Salt documentationfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
This is possibly related to #24274, but in case it isn't, I'm reporting it as a separate issue. The following state is always run by salt, even if the change has already been made:
Found the problem -- context: needs to resolve to an actual file (as opposed to an arbitrary augeas path) in order for salt to determine the filename for comparing the old state vs the changed state. The following state works fine:
It might be good to mention this more explicitly in the documentation. The current phrasing implies that setting context to a file path is just a convenience to avoid redundancy, whereas it is actually required if the desired behavior is not to make changes to a file that has already been changed.
P3Priority 3PlatformRelates to OS, containers, platform-based utilities like FS, system based appsState-Modulebugbroken, incorrect, or confusing behaviordocumentationRelates to Salt documentationfixed-pls-verifyfix is linked, bug author to confirm fixseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
Activity
kartiksubbarao commentedon May 31, 2015
Found the problem --
context:needs to resolve to an actual file (as opposed to an arbitrary augeas path) in order for salt to determine the filename for comparing the old state vs the changed state. The following state works fine:It might be good to mention this more explicitly in the documentation. The current phrasing implies that setting
contextto a file path is just a convenience to avoid redundancy, whereas it is actually required if the desired behavior is not to make changes to a file that has already been changed.jfindlay commentedon Jun 5, 2015
@kartiksubbarao, thanks for the report.
Doc bug fixes
jacobhammons commentedon Jun 18, 2015
This is updated, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.augeas.html
@kartiksubbarao if you think this update is sufficient please close, thanks!
kartiksubbarao commentedon Jun 18, 2015
Thanks @jacobhammons