On Jan 8, 2008, at 2:07 PM, Eugene Ventimiglia wrote:
> Is there any way to do a simple search and replace on the
> puppetmaster server?
>
> I''m passing one IP address for one interface on a box, and
> attempting to set the second according to a convention we use, so I
> need something like
>
> $eth1_ip = `echo "10.100.6.99" | sed -r -e
''s/\.[0-9]+\.([0-9]+)$/.
> 94.\1/''`
> # eth1_ip = 10.100.94.99
> interface { "$eth1_ip":
> interface => eth1,
> ...
> }
The only way to do this is through a custom function on the server.
--
The conception of two people living together for twenty-five years
without having a cross word suggests a lack of spirit only to be
admired in sheep. --Alan Patrick Herbert
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com