문제

I'm using puppet and want to test it with noop, but some configuration depends on the hostname like the node types.

How can I set the node name and run puppet with noop to check the node configuration that match the node name?, currently i got this as error message (my laptop is solaria):

Could not find default node or by name with 'solaria, solaria.lan' on node solaria.lan

Thanks.

도움이 되었습니까?

해결책

puppetd --test --noop --fqdn="hostname.example.com"

Or with 2.6, this may be preferable:

puppet agent --test --noop--fqdn="hostname.example.com"

This will tend to create new certificates on the puppet master, so you'll probably need to run puppetca --clean hostname.example.com on the puppet master afterwords, otherwise when you finally get hosts with those names they'll be unable to set up an SSL relationship with the master.

다른 팁

I just figure out one possible solution, adding this to my config file

nodename = cert
certname = hostname
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top