Forge Home

i18ndemo

Module to demo i18n functionality.

642,821 downloads

632,798 latest version

4.0 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.3.0 (latest)
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Jan 29th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.5 < 6.0.0
  • , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'eputnam-i18ndemo', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add eputnam-i18ndemo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install eputnam-i18ndemo --version 0.3.0

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

eputnam/i18ndemo — version 0.3.0 Jan 29th 2018

i18ndemo

Table of Contents

  1. Description
  2. Setup - The basics of getting started with i18ndemo
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.

Description

This is a demo module to be used for testing i18n functionality in modules.

Setup

Setup Requirements

This module requires puppetlabs-stdlib.

Usage

warning from init.pp

class { 'i18ndemo': }

failure from init.pp (includes interpolation)

class { 'i18ndemo': 
  param1 => false
}

warning from custom type

i18ndemo_type { 'hello': }

(/etc is the default and is not a valid directory on OS X so you may need to pass it a custom dir to get rid of the Errorr)

ArgumentError from custom type

i18ndemo_type { '12345': }

warnings from type & provider

i18ndemo_type { 'hello': 
  ensure => present,
  dir    => '/some/abs/path',
}

translated string from function

happyfuntime('hello')

warning from the face

$ puppet i18ndemo

Reference

Classes

i18ndemo

filename

Data type: Stdlib::Absolutepath

Path to file that will be created

Default: '/tmp/i18ndemofile.txt'

param1

Data type: Boolean

Another param, yay.

Default: true

param2

Data type: String

Another param!

Default: 'param2'

param3

Data type: String

One more param.

Default: i18ndemo::params::param3

i18ndemo::params

param3

Data type: String

Some param.

Default: 'param3'

Types

i18ndemo_type

Demo Ruby type that writes the output of ls to a file called "list"

name

Data type: String

Arbitrary name for the resource

dir

Data type: String

Path to run ls inside of and write file to.

Default: '/etc'

Functions

happyfuntime(string)

Accepts and string, then prints it to STDOUT in reverse with some happy, fun decoration.

Facts

i18ndemo_fact

Raises an error for the sake of raising an error message.

Faces

i18ndemo

A test face that prints a warning.

Limitations

This module is not supported and will receive minimal attention for the foreseeable future. It's also pretty useless :)