开发者

Set node name in puppet to noop option

开发者 https://www.devze.com 2023-03-22 19:50 出处:网络
I\'m using puppet and want to test it with noop, but some configuration depe开发者_运维技巧nds on the hostname like the node types.

I'm using puppet and want to test it with noop, but some configuration depe开发者_运维技巧nds 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
0

精彩评论

暂无评论...
验证码 换一张
取 消