I am trying to get stdlib installed and working as mentioned in the
module of the week blog post -
http://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppet-labs-standard-library/
.
I ran following file_line test without noop mode. It created the
required file however it didn't agree to the fact that 'dan is
awesome' (created empty file).
{{{
$ puppet apply stdlib/tests/file_line.pp
notice: /Stage[main]//File[/tmp/dansfile]/ensure: created
notice: Finished catalog run in 0.02 seconds
$ cat /tmp/dansfile
$
}}}
I tried to use some of the functions in stdlib, e.g. validates_re,
however that resulted in 'Unknown function' error. So I am not sure if
this module is installed correctly. Following is the system
information:
* CentOS release 6.2
* ruby 1.8.7
* facter 1.6.6
* Puppet 2.6.14
* stdlib was installed using puppet-module, however initially I had
manually cloned stdlib git repository which didn't work as well.
Appreciate any help on how to debug this further.
--
Thanks,
Shantanu