Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
newrepo_conf { "base": yumserver => "testserver", } define newrepo_conf ( $yumserver, $os = "OEL" ) { case $os { "OEL": { $longname = "EnterpriseLinux" $shortname = "EL" $description = "Enterprise Linux" } "OVS": { $longname = "OracleVM" $shortname = "OVM" $description = "Oracle VM Server" } } $repo_name = "$shortname_$operatingsystemrelease_base" yumrepo { "$repo_name": baseurl => "http://$yumserver/yum/$longname/$shortname$operatingsystemrelease/latest/$architecture/", descr => "Latest Packages for $description $operatingsystemrelease - $architecture", enabled => "1", gpgcheck => "1", protect => "1", gpgkey => "file:///usr/share/rhn/RPM-GPG-KEY", } }
This paste will be private.
From the Design Piracy series on my blog: