Wednesday, October 31, 2007

Puppet recipe - XWindows Login Service halter

Puppet recipe (script) for disabling X aka CDE aka waste of resources aka security hole on Solaris


# cde-login.pp
class cde-login {
    service { cde-login:
        ensure => "stopped",
        enable => "false"
    }
}


The client runs, find this code and bang it's done. Beats the snot out of running 'svcs disable cde-login' on a few hundred hosts.
blog comments powered by Disqus