Version: puppet-3.2.3-1.el6.noarch.rpm
--------------------------
 
I just try to create a class as parameters container like this:
 
cat > /etc/puppet/modules/ssh/manifests/params.pp << EOF
class ssh::params {
    $ssh_package_name = $::operatingsystem ? {
        'solaris' => 'openssh',
        'centos' => 'openssh-server',
    }
}
EOF
 
but there is an error in agent like this:
 
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Syntax error at '='; expected '}' at 
/etc/puppet/modules/ssh/manifests/params.pp:2 on node 
basecentos.mhszdomain.com
 
I saw it in the manual like this:
---------------------------Error again...
$group = $operatingsystem ? {
    solaris => 'sysadmin',
    default => 'wheel',
}
 
then I try different type of it:
 
---------------------------Error again...
class ssh::params {
    $ssh_package_name = $::operatingsystem ? {
        'solaris' => 'openssh',
        'centos' => 'openssh-server'
    }
}
---------------------------Error again...
class ssh::params {
    $ssh_package_name = $::operatingsystem ? {
        solaris => 'openssh',
        centos => 'openssh-server',
    }
}
---------------------------Error again...
class ssh::params {
    $ssh_package_name = $::operatingsystem ? {
        solaris => 'openssh',
        'centos' => 'openssh-server',
    }
}
---------------------------Error again...
class ssh::params {
    $sshss = $operatingsystem ? { solaris => 'openssh' }
}
---------------------------Error again...
class ssh::params {
    $sshss = $operatingsystem ? { 'solaris' => 'openssh' }
}

so..what happens? does anyone could help me?

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to