App::Scaffolder::Command::puppetclass - Scaffold one or more related Puppet classes
version 0.004000
# Create scaffold to install the 'vim-puppet' package in module created with # puppetmodule command and 'package' template: $ scaffolder puppetclass --template subpackage --name vim::puppet --package vim-puppet # Create scaffold to install the 'apache2-doc' package in module created with # puppetmodule command and 'service' template: $ scaffolder puppetclass --template subpackage --name apache2::doc --package apache2-doc
App::Scaffolder::Command::puppetclass scaffolds one or more related Puppet classes. It does not create a complete Puppet module (see App::Scaffolder::Command::puppetmodule for this), it just adds additional (usually closely related) classes to an existing module. By default, it provides the following templates:
subpackage: Create class to install a 'sub package'. This is intended to be used after using the package or service templates of the App::Scaffolder::Command::puppetmodule command to add an additional package to the module (eg. apache2-doc to the apache2 service). This must be used inside the module directory created before, and you will have to add a variable with the actual package name to the existing manifests/params.pp file. The name of the variable can be seen in the newly created files below manifests.
subpackage
package
service
apache2-doc
apache2
manifests/params.pp
manifests
App::Scaffolder::Command::puppetmodule
Manfred Stock <mstock@cpan.org>
This software is copyright (c) 2021 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.
To install App::Scaffolder::Puppet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Scaffolder::Puppet
CPAN shell
perl -MCPAN -e shell install App::Scaffolder::Puppet
For more information on module installation, please visit the detailed CPAN module installation guide.