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

Safe HaskellNone

PuppetDB.Common

Description

Common data types for PuppetDB.

Synopsis

Documentation

data PDBType Source

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 IO))Source

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

generateWireCatalog :: Nodename -> FinalCatalog -> EdgeMap -> WireCatalogSource

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