FAQ
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

--
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/c3d0e1d2-885d-47b7-b086-5fb36fa925b7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Tim Bishop at Feb 1, 2014 at 12:31 pm
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJan 31, '14 at 9:40p
activeFeb 1, '14 at 12:31p
posts2
users2
websitepuppetlabs.com

2 users in discussion

John: 1 post Tim Bishop: 1 post

People

Translate

site design / logo © 2023 Grokbase