Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class interactive_server { # # Install keys for the proper pool # case $hostgroup { "sunpool": { remotefile { "/etc/ssh/ssh_host_dsa_key": owner => root, group => root, mode => 400, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_dsa_key"; "/etc/ssh/ssh_host_key": owner => root, group => root, mode => 400, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_key"; "/etc/ssh/ssh_host_rsa_key": owner => root, group => root, mode => 400, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_rsa_key"; "/etc/ssh/ssh_host_dsa_key.pub": owner => root, group => root, mode => 444, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_dsa_key.pub"; "/etc/ssh/ssh_host_key.pub": owner => root, group => root, mode => 444, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_key.pub"; "/etc/ssh/ssh_host_rsa_key.pub": owner => root, group => root, mode => 444, notify => Service["sshd"], source => "ssh/files/keys/sunpool.domain.tld-ssh_host_rsa_key.pub"; } } } # # Implement cronjobs # cron { killScriptXxxxxx: command => '/usr/local/bin/scriptname -k Xxxxxx.exe', user => root, minute => [ 9, 24, 39, 54 ], ensure => present; killScriptXxxxXxxx: command => '/usr/local/bin/scriptname -k XxxxXxxx', user => root, minute => [ 10, 25, 40, 55 ], ensure => present; killScriptXxxxXxxxXxx: command => '/usr/local/bin/scriptname -k XxxxXxxxXxx', user => root, minute => [ 11, 26, 41, 56 ], ensure => present; } # # Implement platform specific actions # case $operatingsystem { redhat: { # # include buildPasswd.sh # include scripts::buildPasswd # # Enforce 'stock' /etc/security/limits.conf # remotefile { "/etc/security/limits.conf": mode => 444, source => "etc/security/limits.conf"; } # # Increased semaphores on running system, due to problem with 128. # exec { "sysctlKernelSem": command => '/sbin/sysctl -w kernel.sem="250 32000 32 256"', unless => "/sbin/sysctl kernel.sem | grep 256"; } # # Increased semaphores in sysctl.conf, due to problem with 128. # ensure_key_value { "sysctl.conf": key => "kernel.sem", delimiter => " = ", value => "250 32000 32 256", file => "/etc/sysctl.conf"; } # # 32 bit only actions # case $hardwaremodel { i686: { # # Implement cronjobs # cron { # 8,23,38,53 * * * * /usr/local/bin/scriptname -k xxxXxxXxxxx killScriptXxxXxxXxxxx: command => '/usr/local/bin/scriptname -k xxxXxxXxxxx', user => root, minute => [ 8,23,38,53 ], ensure => present; } } } } solaris: { # # Implement cronjobs (xxx) # cron { killScriptGet: command => '/usr/local/bin/hungjob get > /dev/null 2>&1', user => root, minute => [ 9, 24, 39, 55 ], ensure => present; killScriptXXXx: command => '/usr/local/bin/scriptname -k xxx', user => root, minute => [ 13, 28, 43, 58 ], ensure => present; killScriptXxxxxx: command => '/usr/local/bin/scriptname -k xxxxx', user => root, minute => [ 14, 29, 44, 59 ], ensure => present; killScriptXxxxxxxx: command => '/usr/local/bin/scriptname -k xxxxxxx', user => root, minute => [ 15, 30, 45, 0 ], ensure => present; } } } }
This paste will be private.
From the Design Piracy series on my blog: