Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## Same thing, but actually works class ssh::service { Service { ensure => "running", subscribe => File["sshd_config"] } service{ "sshd": name => $operatingsystemrelease { "5.10" => "svc:/network/ssh:default", /^(9|10)/ => "com.openssh.sshd", /^8/ => "sshd", }, provider => $operatingsystemrelease { "5.10" => smf, /^(9|10)/ => launchd, /^8/ => base, }, start => $operatingsystemrelease { default => undef, /^8/ => "/System/Library/StartupItems/SSHD start", }, restart => $operatingsystemrelease { default => undef, /^8/ => "/System/Library/StartupItems/SSHD restart", }, stop => $operatingsystemrelease { default => undef, /^8/ => "/System/Library/StartupItems/SSHD stop", }, } }
This paste will be private.
From the Design Piracy series on my blog: