Issue #22769 has been updated by Stefan Schulte.

1. You're right that `atboot` does not have a default value and changing that 
is a valid request in my opinion.
2. If #22383 is released, defining an invalid value will give you the error 
`atboot: expected a boolean value`. This should be more clear
3. If #22383 is released, puppet will accept the values `yes`, `no`, `false` 
and `true` (with `false` beeing an alias for `no` and `true` beeing an alias 
for `yes`)
4. see 1
5. The value `false` seems to be incorrectly handled by the underlying provider 
but this will also be fixed in #22383 since `false` is aliased to `no` 
beforehand which is a valid value.
6. can you please post the manifest and the a puppet debug output when you 
specifiy `atboot => no`? I currently don't have a solaris system to test.

----------------------------------------
Bug #22769: mount{} type on Solaris 10 requires 'atboot' option to be set to 
true.
https://projects.puppetlabs.com/issues/22769#change-98830

* Author: Paul Lussier
* Status: Needs More Information
* Priority: Normal
* Assignee: 
* Category: Solaris
* Target version: 
* Affected Puppet version: 2.7.21
* Keywords: mount solaris
* Branch: 
----------------------------------------
$mountops  = 'proto=tcp,vers=3,rsize=32768,wsize=32768,noexec,nosuid,rw,bg,hard\
,intr'
$fs = '/foo'

# This works fine
mount {
  $fs :
    device      => "${nfs_server}:${fs}",
    atboot      => true,
    ensure      => mounted,
    fstype      => 'nfs',
    blockdevice => '-',
    options     => $mountops,
    dump        => 1;                                                           
}

#####
# The following fail
#####
mount {
  $fs :
    device      => "${nfs_server}:${fs}",
    ensure      => mounted,
    fstype      => 'nfs',
    blockdevice => '-',
    options     => $mountops,
    dump        => 1;                                                           
}

mount {
  $fs :
    device      => "${nfs_server}:${fs}",
    atboot      => false,
    ensure      => mounted,
    fstype      => 'nfs',
    blockdevice => '-',
    options     => $mountops,
    dump        => 1;                                                           
}

The error message provided for the last two calls to mount is:

"err: /Stage[main]/Mount[/foo]/ensure: change from absent to mounted failed: 
Got a nil value for should at /etc/puppet/manifests/nodes.pp:68"

This does not occur on Linux, or with puppet 2.7.9 and earlier.



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to