I assume you use the foreman WebGui:
If you are in the Smart Class Parameter
tab of the ntp class, select servers
, check the Override
Box an then select array
for Parameter type
. Then input the list of your desired timeserver in the following form:
["timehost1.domain.tld","timehost2", ...]
It took me a while myself to figure that out.
In general, you need to know or find out which type is expected from the puppet module. I find myself looking into the code of the modules if it is not clear in the first place. Also, if you want to make a parameter over writable somewhere down the road of host groups or whatever you use for node of different types, I found that you have to set the default yourself. The builtin default only works while Override
is unchecked. At least for modules like ntp which have a params subclass. Otherwise you end up with errors stating the parameter was not found/could not be set or similar.
I'm fairly new to puppet myself, so if anyone has a better explanation I'd be glad.
Cheers, Christoph
Screenshot