It looks like the package name should be of the format category/name not
just name. But sshd is part of the base system on FreeBSD, so there's no
need to install it anyway.

Tim.

On Fri, Jan 31, 2014 at 01:38:57PM -0800, John wrote:
> I've got the following code error:
> Error: openssh: not in required origin format:
> .*/<port_category>/<port_name>
> Error: /Stage[main]/Ssh::Server::Install/Package[openssh]/ensure:
> change from absent to present failed: openssh: not in required origin
> format: .*/<port_category>/<port_name>
> when I run the following:
> puppet agent --server=puppet --no-daemonize --verbose --onetime
> I believe this error is caused by a case statement I have in params.pp
> which looks something like...
> case $::osfamily {
> redhat: {
> $server_package_name = 'openssh-server'
> $client_package_name = 'openssh-clients'
> $sshd_config = '/etc/ssh/sshd_config'
> $ssh_config = '/etc/ssh/ssh_config'
> $ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
> $service_name = 'sshd'
> }
> freebsd: {
> $server_package_name = 'openssh'
> $sshd_config = '/etc/ssh/sshd_config'
> $ssh_config = '/etc/ssh/ssh_config'
> $ssh_known_hosts = '/etc/ssh/ssh_known_hosts'
> $service_name = 'sshd'
> }
> default: {
> fail("Unsupported platform:
> ${::osfamily}/${::operatingsystem}")
> }
> }
> My module runs fine on linux.  It does not work on FreeBSD.  Any ideas
> on how to fix?
> TIA

-- 
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x6C226B37FDF38D55

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20140201123121.GY40021%40carrick-users.bishnet.net.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to