Sha256: 979ab7e5307dfe24df520af0a3b75cf59bd094a114ad3c576e04146ca0508e82
Contents?: true
Size: 759 Bytes
Versions: 3
Compression:
Stored size: 759 Bytes
Contents
Templates ========= Puppet supports templates and templating via ERB, which is part of the Ruby standard library and is used for many other projects including Ruby on Rails. Templates allow you to manage the content of template files, for example configuration files that cannot yet be managed as a Puppet type. Learn more at http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Templating You can use templates like this: class myclass { package { mypackage: ensure => latest } service { myservice: ensure => running } file { "/etc/myfile": content => template("mymodule/myfile.erb") } } The templates are searched for in: $templatedir/mymodule/myfile.erb $modulepath/mymodule/templates/myfile.erb
Version data entries
3 entries across 3 versions & 1 rubygems