language-puppet-0.10.3: Tools to parse and evaluate the Puppet DSL.

Safe HaskellNone

PuppetDB.Common

Description

Common data types for PuppetDB.

Synopsis

Documentation

data PDBType

The supported PuppetDB implementations.

Constructors

PDBRemote

Your standard PuppetDB, queried through the HTTP interface.

PDBDummy

A stupid stub, this is the default choice.

PDBTest

A slow but handy PuppetDB implementation that is backed by a YAML file.

Instances

getDefaultDB :: PDBType -> IO (Either Doc PuppetDBAPI)

Given a PDBType, will try return a sane default implementation.

generateWireCatalog :: Nodename -> FinalCatalog -> EdgeMap -> WireCatalog

Turns a FinalCatalog and EdgeMap into a document that can be serialized and fed to puppet apply.