Commit 68929a53 authored by James T. Lee's avatar James T. Lee
Browse files

(MODULES-10874) Add property 'sync'

This property controls how transactions are synchronized and it has been
available since Solaris 10 8/11 release:

https://docs.oracle.com/cd/E26505_01/html/E37384/gbscy.html#gjzl
parent 5fbadf18
...@@ -146,6 +146,10 @@ The sharesmb property. Valid values are `on`, `off`, sharemgr(1M) options ...@@ -146,6 +146,10 @@ The sharesmb property. Valid values are `on`, `off`, sharemgr(1M) options
The snapdir property. Valid values are `hidden`, `visible`. The snapdir property. Valid values are `hidden`, `visible`.
##### `sync`
The sync property. Valid values are `standard`, `always`, `disabled`.
##### `version` ##### `version`
The version property. Valid values are `1`, `2`, `3`, `4`, `current`. The version property. Valid values are `1`, `2`, `3`, `4`, `current`.
......
...@@ -84,7 +84,7 @@ Puppet::Type.type(:zfs).provide(:zfs) do ...@@ -84,7 +84,7 @@ Puppet::Type.type(:zfs).provide(:zfs) do
:mountpoint, :nbmand, :primarycache, :quota, :readonly, :mountpoint, :nbmand, :primarycache, :quota, :readonly,
:recordsize, :refquota, :refreservation, :reservation, :recordsize, :refquota, :refreservation, :reservation,
:secondarycache, :setuid, :sharenfs, :sharesmb, :secondarycache, :setuid, :sharenfs, :sharesmb,
:snapdir, :version, :volsize, :vscan, :xattr].each do |field| :snapdir, :sync, :version, :volsize, :vscan, :xattr].each do |field|
define_method(field) do define_method(field) do
zfs(:get, '-H', '-o', 'value', field, @resource[:name]).strip zfs(:get, '-H', '-o', 'value', field, @resource[:name]).strip
end end
......
...@@ -136,6 +136,10 @@ module Puppet ...@@ -136,6 +136,10 @@ module Puppet
desc 'The snapdir property. Valid values are `hidden`, `visible`.' desc 'The snapdir property. Valid values are `hidden`, `visible`.'
end end
newproperty(:sync) do
desc 'The sync property. Valid values are `standard`, `always`, `disabled`.'
end
newproperty(:version) do newproperty(:version) do
desc 'The version property. Valid values are `1`, `2`, `3`, `4`, `current`.' desc 'The version property. Valid values are `1`, `2`, `3`, `4`, `current`.'
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment