Issue #5393 has been updated by derek olsen. File 0002-5393-Extend-zone-provider-to-manage-dataset-s.patch added
NIgel. I resolved the issue that I was having. I've updated the branch with the tested changes. Additionally I've added the 2nd patch to this ticket. I'll collate my testing notes and include them as well. I couldn't get through all of the testsuite dependencies to get the zone tests to function so I just scripted up some manual tests. I'll open a different ticket wrt to the test problems. Thanks. Derek. ---------------------------------------- Feature #5393: include support for adding dataset(s) to solaris zone provider https://projects.puppetlabs.com/issues/5393 Author: derek olsen Status: Accepted Priority: Normal Assignee: Nigel Kersten Category: Solaris Target version: Statler Affected Puppet version: Keywords: solaris zone dataset Branch: We use the zone type pretty frequently and have created an define as a wrapper around the zone type. Upon reviewing the define recently it's clear that all it really does for us is include a dataset(s) if requested. For example this call to the define zones::create { "sample": ip => [ "e1000g0:10.1.16.47" ], zfs_parent => "localdisks/zones", datasets => "localdisks/zones/datasets", mountpoint => "/site/sample", } ends up calling the following exec if $datasets != "false" { zones::dataset { "$name": datasets => "$datasets", mountpoint => "$mountpoint", } } exec { "${datasets}/${name}": command => "/usr/sbin/zonecfg -z $name 'add dataset; set name=${datasets}/${name} ; end ; verify ; commit'", unless => "/usr/sbin/zonecfg -z $name info | /usr/bin/grep -i dataset", require => [ Zone["$name"], Zfs["${datasets}/${name}"] ], } We would like to get rid of the define and have puppet natively support the ability to add an dataset to a zone configuration. Thanks. Derek. -- 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 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-bugs?hl=en.
