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

Safe HaskellNone

Puppet.Init

Description

This is a helper module for the Puppet.Daemon module

Synopsis

Documentation

data Prefs Source

Constructors

Prefs 

Fields

manifest :: Text

The path to the manifests.

modules :: Text

The path to the modules.

templates :: Text

The path to the template.

compilepoolsize :: Int

Size of the compiler pool.

parsepoolsize :: Int

Size of the parser pool.

erbpoolsize :: Int

Size of the template pool.

puppetDBquery :: Text -> Query -> IO (Either String Value)

A function that takes a query type, a query and might return stuff

natTypes :: Map PuppetTypeName PuppetTypeMethods

The list of native types.

genPrefs :: Text -> IO PrefsSource

Generates the Prefs structure from a single path.

 genPrefs "/etc/puppet"

genFacts :: [(Text, Text)] -> FactsSource

Generates Facts from pairs of strings.

 genFacts [("hostname","test.com")]