FreeBSD / osfamily

41 views
Skip to first unread message

John

unread,
Jan 31, 2014, 4:38:57 PM1/31/14
to puppet...@googlegroups.com
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

unread,
Feb 1, 2014, 7:31:21 AM2/1/14
to puppet...@googlegroups.com
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.
--
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x6C226B37FDF38D55

Reply all
Reply to author
Forward
0 new messages