Question: how do I get puppet 2.7.6 on FreeBSD 9.0-RELEASE to stop downloading
packages with every puppet run?
Obviously I'd be puppetizing the config files so this wouldn't be a huge big
deal, but a daemon restart after every puppet run due to notify/subscribe
involving the config file isn't optimal.
My simple manifest is this:
package { 'ntp-4.2.6p5/net/ntp':
ensure => installed,
provider => 'freebsd',
}
It does indeed install ntp:
[root@cwlab-01 /var/db/pkg]# /usr/sbin/pkg_info -aoQ | grep ntp
ntp-4.2.6p5:net/ntp
But every single time I run "puppet apply --debug --verbose /tmp/ntp.pp", I get
the following, indicating that the package is reinstalled:
debug: Puppet::Type::Package::ProviderFreebsd: Executing '/usr/sbin/pkg_info
-aoQ'
debug: Package: ntp-4.2.6p5/net/ntp: origin => {:port_category=>"net",
:port_name=>"ntp"}
debug: Package: ntp-4.2.6p5/net/ntp: source => #<URI::FTP:0x807f1f518
URL:ftp://ftp.freebsd.org/%2Fpub/FreeBSD/ports/amd64/packages-9-stable/>
debug: Fetching INDEX: #<URI::FTP:0x807f1abf8
URL:ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/INDEX.bz2>
debug: Package: ntp-4.2.6p5/net/ntp: package_uri => #<URI::FTP:0x80b32c838
URL:ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/All/ntp-4.2.6p5.tbz>
debug: Puppet::Type::Package::ProviderFreebsd: Executing '/usr/sbin/pkg_add -f
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/All/ntp-4.2.6p5.tbz'
notice: /Stage[main]//Package[ntp-4.2.6p5/net/ntp]/ensure: created
I get the same behaviour with other package names:
ntp-4.2.6p5:/net/ntp
*/net/ntp
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.