Skip to content

Instantly share code, notes, and snippets.

@dizz
Created June 7, 2012 12:07
Show Gist options
  • Save dizz/2888452 to your computer and use it in GitHub Desktop.
Save dizz/2888452 to your computer and use it in GitHub Desktop.
foreman dhcp params fix
class dhcp::params {
$dhcp_dir = $operatingsystem ? {
Ubuntu => "/etc/dhcp",
debian => "/etc/dhcp",
darwin => "/opt/local/etc/dhcp",
default => "/etc",
}
$packagename = $operatingsystem ? {
debian => "dhcp3-server",
darwin => "dhcp",
Ubuntu => "dhcp3-server",
default => "isc-dhcp-server",
}
$servicename = $operatingsystem ? {
darwin => "org.macports.dhcpd",
Ubuntu => "isc-dhcp-server",
Debian => "isc-dhcp-server",
default => "isc-dhcp-server",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment