[Puppet Users] regsubst questions

2010-04-23 Thread ed-rfmd
I am attempting to set some variables in my manifest and I amd seeing a result I don't quite understand. Here is a section of code from my manifest: $boot_time = generate('/usr/bin/env', '/bin/date', '+%H:%m') notice(boot_time = $boot_time) $boot_hour =

Re: [Puppet Users] regsubst questions

2010-04-23 Thread Thomas Bellman
On 04/23/10 15:55, ed-rfmd wrote: $boot_time = generate('/usr/bin/env', '/bin/date', '+%H:%m') notice(boot_time = $boot_time) $boot_hour = regsubst($boot_time,'^([0-9]+)[:]([0-9]+)\n','\1') notice(w newline - boot_hour = |$boot_hour|) $boot_hour_1 =