> In my network every subnets default gateway is X.X.X.1. That router gateway > is always running ntpd which I want to give be default as the ntp server in > every hosts ntp.conf.
> Since there is no official "default gateway" fact yet, what I want to be able > to do in my manifest is take the $ipaddress fact and turn it into the gateway > for that subnet. Something like: $router = regsubst($ipaddress, '[0-9]+$', '1') Should replace all the last numbers of the ipaddress with simply 1. 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.