[Puppet Users] split config by $lsbdistid

Vincent Louviaux
Tue, 07 Oct 2008 08:53:13 -0000

Hello

Is it possible to split config files by distributions ?

the goal is to define the same class but different by os distribution
and not always define a case in all config files like

class ntp {
case "$lsbdistid $lsbdistcodename" {
  "Ubuntu hardy":   {
..


So I would like something like :
import "classes/$lsbdistid/$lsbdistcodename/*.pp"

Vincent