search for: mycustomclass

Displaying 1 result from an estimated 1 matches for "mycustomclass".

2012 Feb 29
3
Modifying a FACT Value In a Manifest
...ke the $ipaddress fact and turn it into the gateway for that subnet. For example... IP = 10.1.1.12 GW = 10.1.1.1 I''m using the puppetlabs-ntp module, so I should be able to do something like this in my classes...I think... I just need to know how to get the .1 address in there... class mycustomclass:ntp { class { "ntp": servers => [ DOT_ONE_ADDRESS_FOR_HOSTS_IP_GOES_HERE ], autoupdate => false, } } If this was raw ruby I could do some string magic to turn the last value to 1. I don''t know how to do that with the Puppet DSL though. Thanks, Matt -- You received this...