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
nsswitch::passwd:
- sss
- filesnsswitch::group:
- sss
- filesnsswitch::shadow:
- sss
- filesnsswitch::sudoers: filesnsswitch::gshadow: filesnsswitch::networks: filesnsswitch::netgroup: sssnsswitch::protocols:
- db
- filesnsswitch::services:
- db
- filesnsswitch::ethers:
- db
- filesnsswitch::rpc:
- db
- filesnsswitch::hosts:
- files
- 'mdns4_minimal [NOTFOUND=return]'
- dns
A Puppet-managed workstation where the nsswitch.conf file has been modified after deployment.
When I
Run puppet agent -t as root on the workstation.
In order to
Restore the nsswitch.conf file to how I defined it in Hiera.
I get
The file does not change.
I expected
The file to be overwritten with the content specified in Hiera.
I suspect this is because
The file resource in init.pp doesn't specify "replace => yes".
The text was updated successfully, but these errors were encountered:
threepistons
changed the title
No option to force overwriting of the file if it is later changed
No option to turn off overwriting of the file if it is later changed
Feb 1, 2019
This is actually because of an error in my manifest: the module is configured but never actually called. I offer my apologies.
Whilst trying to figure out what was going on, I've written in the ability to turn off overwriting. It's in my fork if you think it might be useful. I've edited the issue title to reflect the new feature.
Given
When I
Run
puppet agent -t
as root on the workstation.In order to
Restore the nsswitch.conf file to how I defined it in Hiera.
I get
The file does not change.
I expected
The file to be overwritten with the content specified in Hiera.
I suspect this is because
The file resource in init.pp doesn't specify "replace => yes".
The text was updated successfully, but these errors were encountered: