>From: [email protected] [mailto:[email protected]]
>On Behalf Of Christopher Wood
[snip]
>You could use an inline template to run the substitution via ruby. Example:
>
>$java_home = inline_template('<%= /jre-([0-9])u([0-9]+)/.match(name); p =
>"/opt/jre1." + $1 + ".0_" + $2 %>')
>
>So for you, something like this (warning, untested):
>
>$username_nous = inline_template('<%= username.gsub(/\./, "_") %>')
regsubst might be easier to use.
$new = regsubst($old, 'foo', 'bar')
This email communication and any files transmitted with it may contain
confidential and or proprietary information and is provided for the use of the
intended recipient only. Any review, retransmission or dissemination of this
information by anyone other than the intended recipient is prohibited. If you
receive this email in error, please contact the sender and delete this
communication and any copies immediately. Thank you.
http://www.encana.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.