Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class hosted inherits nexpose::engine { $primary = "2" $secondary = "1" realize(Group["ssh_users"], Ssh_user["backups"]) cron { "backup_nse_conf": hour => "23", minute => "59", ensure => $fqdn ? { hostedengine-0${primary}.${domain} => "present", hostedengine-0${secondary}.${domain} => "absent" }, require => File["/home/backups/scripts/backup_nse_conf.sh"]; "sync_consoles_dotxml": minute => "*/1", ensure => $fqdn ? { hostedengine-0${primary}.${domain} => "present", hostedengine-0${secondary}.${domain} => "absent" }, require => File["/home/backups/scripts/sync_consoles_xml.sh"]; } file { "/home/backups/scripts/backup_nse_conf.sh": owner => "backups", group => "backups", mode => "755", require => Ssh_user["backups"]; "/home/backups/scripts/sync_consoles_xml.sh":; owner => "backups", group => "backups", mode => "755", require => Ssh_user["backups"]; } host { "hostedengine-0${primary}.${domain}": alias => "primaryengine", ip => "172.25.2.{$primary}", ensure => "present"; "hostedengine-0${secondary}.${domain}": alias => "secondaryengine", ip => "172.25.2.${secondary}", ensure => "present"; } served_file { "/usr/local/bin/conman.rb":; "/usr/local/bin/conman-wrapper.sh":; } }
This paste will be private.
From the Design Piracy series on my blog: