diff --git a/metadata.rb b/metadata.rb index d9a8a8a..270b931 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Manages Solaris zfs' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.0.6' +version '0.0.7' %w(solaris2 ubuntu freebsd).each do |os| supports os diff --git a/providers/default.rb b/providers/default.rb index 3a664b1..b7cc562 100644 --- a/providers/default.rb +++ b/providers/default.rb @@ -6,9 +6,9 @@ def load_current_resource case node['platform'] # freebsd's zfs doesn't support the 'zone' functionality when 'freebsd' - @managed_props = %w(mountpoint recordsize atime compression quota refquota reservation refreservation dedup) + @managed_props = %w(mountpoint recordsize atime compression quota refquota reservation refreservation dedup primarycache secondarycache) else - @managed_props = %w(mountpoint zoned recordsize atime compression quota refquota reservation refreservation dedup) + @managed_props = %w(mountpoint zoned recordsize atime compression quota refquota reservation refreservation dedup primarycache secondarycache) end @zfs.info(info?) diff --git a/resources/default.rb b/resources/default.rb index 9503f43..5510e3a 100644 --- a/resources/default.rb +++ b/resources/default.rb @@ -11,6 +11,8 @@ attribute :reservation, kind_of: String, default: 'none' attribute :refreservation, kind_of: String, default: 'none' attribute :dedup, kind_of: String, equal_to: %w(on off), default: 'off' +attribute :primarycache, kind_of: String, equal_to: %w(all none metadata), default: 'all' +attribute :secondarycache, kind_of: String, equal_to: %w(all none metadata), default: 'all' attribute :info, kind_of: Mixlib::ShellOut, default: nil attribute :current_props, kind_of: Hash, default: nil