Forge Home

inline_template

The purpose of this module is to process erb templates that exist on the local node independent of the puppetmaster.

10,753 downloads

10,204 latest version

2.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.3.1 (latest)
  • 0.3.0
  • 0.2.0
  • 0.1.0
released Aug 24th 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'monkee-inline_template', '0.3.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add monkee-inline_template
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install monkee-inline_template --version 0.3.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

monkee/inline_template — version 0.3.1 Aug 24th 2013

inline_template

The purpose of this module is to process erb templates that exist on the local node independent of the puppetmaster.

This module is provided as an example to the custom inline_template provider/type.

Supported Platforms

The module has been tested on the following operating systems. Testing and patches for other platforms are welcomed.

  • RHEL 6.3
  • RHEL 6.4
  • Windows Server 2008 R2 64bit

Requires

A string or hash to pass through to the provider/type eg.

$config_hash = { config_one => 'config1', config_two => 'config2' }

Sample Usage:

inline_template { "/etc/config/example.conf":
    ensure  => present,
    source  => "/etc/config/config.erb",
    mode    => 0644,
    configuration => $config_hash,

}

Sample ERB

# This configuration file is managed by puppet
# Filepath <%= resource[:name] %>
config_value_one = <%= resource[:configuration]["config_one"] %>
config_value_two = <%= resource[:configuration]["config_two"] %>

License

Copyright (c) 2012-2013 Talk to The Aliens Pty Ltd, 2013

This script is licensed under the Apache License, Version 2.0. See http://www.apache.org/licenses/LICENSE-2.0.html for the full license text.

Support

Please log tickets and issues at our project site.

Versions

  • 0.1.0 initial release
  • 0.2.0 fixed the markdown on the readme, added windows support to the example
  • 0.3.0 added mode support
  • 0.3.1 fixed regex to allow hypens in filepaths