Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Last active February 14, 2017 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandernauta/dd457d97e1cf99de2c362d21f2afd4d5 to your computer and use it in GitHub Desktop.
Save wandernauta/dd457d97e1cf99de2c362d21f2afd4d5 to your computer and use it in GitHub Desktop.
augeas { "add sss to nsswitch":
context => "/files/etc/nsswitch.conf",
changes => [
"set database[. = 'passwd']/service[last()+1] 'sss'",
],
onlyif => "match database[. = 'passwd']/service[. = 'sss'] size == 0",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment