I try include different .pp for my systems. site.pp like:

if $operatingsystem == 'debian' {
  import '../my/os/linux/debian.pp'
}
elsif $operatingsystem == 'windows' {
  import '../my/os/windows/windows.pp'
}
else {
  import '../my/os/default/default.pp'
}

and I try CASE:

case $operatingsystem {
       redhat: { import '../my/os/linux/redhat.pp' }
       centos: { import '../my/os/linux/centos.pp' }
       windows: { import '../my/os/windows/windows.pp' } 
       default: { import '../my/os/default/default.pp' }
}

Why it didn't work? If I run puppet-agent, it read all pp-files and crash 
on windows-parameters on Linux or on linux-parameters on Windows. What I do 
incorrect?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to