liquidtemplates

Puppet function for processing Liquid Templates

deanwilson

deanwilson

9,918 downloads

6,815 latest version

4.6 quality score

Version information

  • 0.0.4 (latest)
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Nov 27th 2015
This version is compatible with:
  • RedHat, Ubuntu, Debian, Fedora, CentOS

Start using this module

Documentation

deanwilson/liquidtemplates — version 0.0.4 Nov 27th 2015

Liquid Templates in Puppet Function

Liquid is a 'Ruby library for rendering safe templates which cannot affect the security of the server they are rendered on.' This function allows you to write your templates using Liquid -

$ cat << 'EOC' > liquidtest/templates/test.liquid
SELinux is {{ selinux_config_mode | upcase }} on {{ fqdn }}
EOC

And call them from your puppet modules -

class liquidtest {

  file { '/tmp/liquidtest':
    ensure  => 'file',
    content => liquid_template('liquidtest/test.liquid'),
  }

}

More details can be found in the Liquid Templates in Puppet blog post.

Note: This function requires the liquid gem to be available on the puppetmaster. Which you are managing via puppet, right?

License

GPL v2.0 - Dean Wilson