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

Safe HaskellNone
LanguageHaskell98

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.

getDefaultDB :: PDBType -> IO (Either PrettyError (PuppetDBAPI IO)) #

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.