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

Safe HaskellNone
LanguageHaskell98

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 PrettyError (PuppetDBAPI IO)) Source

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

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

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