package install freebsd

asked 2014-05-07 22:41:58 -0600

Benjo gravatar image

updated 2014-05-07 22:55:15 -0600

Hi,

i set up agent on freebsd 9.2 and trying to install package, while that getting below error,

Error: bash: not in required origin format: .*/<port_category>/<port_name>
Error: /Stage[main]/Bash/Package[bash]/ensure: change from absent to present failed: bash: not in required origin format: .*/<port_category>/<port_name>

my content for package :

  class bash {
                package { bash:
                ensure  => 'installed',
        }
}

but when i copy freebsd.rb.org file to freebsd.rb , it works. and after doing that i can install packages but can't remove it.

puppet version : 3.4.3 --> agent on freebsd puppet version : 3.5.1 ---> master on linux

Is there any problem with my freebsd puppet version or can u pls. guide me where i made mistake?

Regards Ben

edit retag flag offensive close merge delete

Comments

also i got below warning, Warning: Puppet::Type::Package::ProviderFreebsd: Failed to match line pkg_info: no packages installed Debug: Executing '/usr/sbin/pkg_info' Warning: Puppet::Type::Package::ProviderFreebsd: Failed to match line pkg_info: no packages installed but when i run second time, it does not come again and i can see package installed properly.

Benjo gravatar imageBenjo ( 2014-05-07 22:44:07 -0600 )edit

Is freebsd.rb.org part of the Puppet installation?

ffrank gravatar imageffrank ( 2014-05-08 05:24:04 -0600 )edit

yes, it is

Benjo gravatar imageBenjo ( 2014-05-08 22:55:02 -0600 )edit