org.apache.whirr.service.puppet
Class Manifest

java.lang.Object
  extended by org.apache.whirr.service.puppet.Manifest

public class Manifest
extends Object

Class representing a single Puppet Module. The module must already be available on the module path.

Typical usage is:
 ...


Field Summary
 Map<String,String> attribs
           
 String className
           
 String module
           
 
Constructor Summary
Manifest(String module)
          To include the default manifest from a provided module with the specified name.
Manifest(String module, String className)
          To run a particular manifest from a provided module with the specified name.
 
Method Summary
 String getHiera()
           
 String getName()
           
 String toString()
          Transforms the Manifest into a puppet resource that can be interpreted by the "puppet apply" command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public final String module

className

public final String className

attribs

public final Map<String,String> attribs
Constructor Detail

Manifest

public Manifest(String module)
To include the default manifest from a provided module with the specified name. Equivalent to: puppet apply -e "class { 'module': }"

Parameters:
module -

Manifest

public Manifest(String module,
                String className)
To run a particular manifest from a provided module with the specified name. Equivalent to: puppet apply -e "class { 'module::className': )"

Parameters:
module -
className -
Method Detail

toString

public String toString()
Transforms the Manifest into a puppet resource that can be interpreted by the "puppet apply" command.

Overrides:
toString in class Object
Returns:

getName

public String getName()

getHiera

public String getHiera()


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.