Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2013 09:59:32 GMT
From:      Daniel Walrond <freebsd@djw.org.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175558: port installation via puppet
Message-ID:  <201301250959.r0P9xWln012791@red.freebsd.org>
Resent-Message-ID: <201301251000.r0PA03K6053073@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175558
>Category:       ports
>Synopsis:       port installation via puppet
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 25 10:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Walrond
>Release:        9.1
>Organization:
>Environment:
FreeBSD store03 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I have done a fresh ZFS install of 9.1 using http://mfsbsd.vx.sk/.

Then...

# portsnap fetch
# portsnap extract
# cd /usr/ports/sysutils/puppet
# make install clean

Which installs puppet version 3.0.2.

On the FreeBSD host I ran:

# puppet agent --test

On the Puppetmaster I sign the key generated from the previous command.

On the FreeBSD host I ran:

# puppet agent --test --noop

Everything looked sane, then running

# puppet agent --test

I get the following errors:

Info: Retrieving plugin
Info: Caching catalog for store03.navetas.com
Info: Applying configuration version '1359052122'
Error: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp
Error: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp
Wrapped exception:
uninitialized class variable @@lock in Object
Error: /Stage[main]/Ssmtp::Freebsd/Package[mail/ssmtp]/ensure: change from absent to present failed: Could not set 'present' on ensure: uninitialized class variable @@lock in Object at 8:/etc/puppet/modules/ssmtp/manifests/freebsd.pp
Notice: /Stage[main]/Ssmtp::Freebsd/File[/usr/local/etc/ssmtp/ssmtp.conf]: Dependency Package[mail/ssmtp] has failures: true
Warning: /Stage[main]/Ssmtp::Freebsd/File[/usr/local/etc/ssmtp/ssmtp.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Ssmtp::Freebsd/File[/etc/mail/mailer.conf]: Dependency Package[mail/ssmtp] has failures: true
Warning: /Stage[main]/Ssmtp::Freebsd/File[/etc/mail/mailer.conf]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.36 seconds

If I then install the port mail/ssmtp and rerun puppet and install items which depend on the port being install and completes normally.

# cd /usr/ports/mail/ssmtp/
# make install clean
# puppet agent --test

Compared with a very similar host running FreeBSD 9.0 and Puppet 3.0.1, I do not have this problem.
>How-To-Repeat:
The puppet code to recreate this

node store03 {
  include test
}

class test {
  package 'editors/nano': ensure => installed;
}
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301250959.r0P9xWln012791>