Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
solaris_rad.rb

README.md

Provider: local_zfs

This Puppet module contains an alternative provider for the ZFS type. This provider uses the Solaris Remote Administration Daemon (RAD).

The provider is currently just an experiment to test RAD and not well tested. This provider was the base for the remote_zfs provider.

Requirements

You need at least Solaris 11.3 beta, because this is the first version with the Rest-API for RAD.

Installation

Usage

local_zfs { 'rpool/test':
    ensure      => 'present',
    mountpoint  => "/test",
}

To see the REST-API calls you can use the debug mode:

# puppet apply --debug newfs.pp
...
Debug: REST API Calling GET: localhost/api/com.oracle.solaris.rad.zfsmgr/1.0/ZfsDataset/rpool%2Ftest
Debug: REST API Calling PUT: localhost/api/com.oracle.solaris.rad.zfsmgr/1.0/ZfsDataset/rpool/_rad_method/create_filesystem
Debug: REST API Calling arguments: {
"name": "rpool/test",
"props": [
  {
    "name": "mountpoint",
    "value": "/test"
  }
  ]
}
Debug: REST API response: {
      "status": "success",
      "payload": {
              "href": "/api/com.oracle.solaris.rad.zfsmgr/1.0/ZfsDataset/_rad_reference/1793"
      }
}
Notice: /Stage[main]/Main/Local_zfs[rpool/test]/ensure: created
...