Ask Your Question
0

Provide repository when using pkgng provider on FreeBSD

asked 2017-06-02 14:48:31 -0500

Helmut gravatar image

Hi,

pkgng seems to use the default FreeBSD repositiory. Can I configure this to use my own (already existing) repository at /etc/pkg/?

Thank you!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-06-05 23:26:07 -0500

DarylW gravatar image

Are you using an external module, or one native to puppet?

If you are using one from the forge, like https://forge.puppet.com/zleslie/pkgng, you can specify your information in a resource declaration like pkgng::repo { 'my.own.repo': } # You can then specify more...

You could either explicitly use your repo for a package

pkgng::repo { 'my.own.repo': }

package { 'puppet':
  source => 'urn:freebsd:repo:my.own.repo',
}

or you could 'prefer' your own repo by giving it a priority

pkgng::repo { 'pkg.freebsd.org': }
pkgng::repo { 'my.own.repo':
  priority => 10,
}

package {'curl': }
edit flag offensive delete link more
0

answered 2017-06-08 10:14:54 -0500

Helmut gravatar image

The native provider uses /usr/local/etc/pkg/repos/*.conf so I'm fine. Thank you!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-06-02 14:48:31 -0500

Seen: 25 times

Last updated: Jun 08