NAME

App::Scaffolder::Command::puppetmodule - Scaffold a Puppet module

VERSION

version 0.001001

SYNOPSIS

# Create scaffold to install the 'vim' package:
$ scaffolder puppetmodule --template package --name vim

# Create scaffold to install the 'apache2' package and setup the corresponding service:
$ scaffolder puppetmodule --template service --name apache2

DESCRIPTION

App::Scaffolder::Command::puppetmodule scaffolds Puppet modules. By default, it provides two simple templates:

  • package: Create Puppet module to install a package.

  • service: Create Puppet module to setup a service.

In addition to the default template search path (see App::Scaffolder for details), this command will also look for templates in /etc/puppet/scaffolder_templates or /usr/local/etc/puppet/scaffolder_templates if they exist.

METHODS

get_target

Specialized get_target version which uses the name if no target was given.

get_variables

Specialized get_variables version which returns the name of the module.

get_dist_name

Return the name of the dist this command is in.

get_options

Return additional options for this command.

get_extra_template_dirs

Extend the template search path with /etc/puppet/scaffolder_templates or /usr/local/etc/puppet/scaffolder_templates if they exist.

Result

The extended list with template directories.

SEE ALSO

AUTHOR

Manfred Stock <mstock@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Manfred Stock.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.