Displaying 1 result from an estimated 1 matches for "sshkey_service".
2006 Nov 16
7
Negating or removing classes
...That seems
awfully imperative (boo!).
Coming back to my ssh key problem, I tried including statements at the
beginning of the class file outside the class definition for the service
that removes the keys if the class is not assigned:
$key = ''big long ssh key''
case tagged("sshkey_service"){
false: {
replace_line { rmkey:
file => ''authorized_keys",
search => $key,
replace => ""
}
<other stuff related to the service>
}
}
class sshkey_service {
append_if_no_such_line { mkkey:
fil...