Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created November 25, 2012 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottslowe/4142471 to your computer and use it in GitHub Desktop.
Save scottslowe/4142471 to your computer and use it in GitHub Desktop.
Simplistic multi-OS Puppet manifest
file { "ntp.conf":
path => $operatingsystem ? {
"OpenBSD" => "/etc/ntpd.conf",
default => "/etc/ntp.conf",
},
owner => "root",
group => $operatingsystem ? {
"OpenBSD" => "wheel",
default => "root",
},
mode => 644,
source => [ "file:///modules/ntp/ntpd.conf.$operatingsystem",
"file:///modules/ntp/ntp.conf", ],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment