Classifying nodes with PE results in 303

64 views
Skip to first unread message

Henk-Jan Castermans

unread,
Apr 7, 2015, 1:40:01 PM4/7/15
to puppet...@googlegroups.com
Hi,
I'm trying to classify a new node using the commandline just as explained here : https://docs.puppetlabs.com/pe/latest/cloudprovisioner_classifying_installing.html#classifying-nodes

I've seen the youtube demo that just runs fab, but for some reason my puppet-setup is failing, which is not really nice.

root@nodemanager:~# puppet node classify  --insecure  --node-group=test --enc-auth-user=console --enc-auth-passwd=Welcome001 --enc-server=mypuppet.master.net --enc-port=443 mywebsvr01

Notice: Contacting https://mypuppet.master.net:443/ to classify mywebsvr01
Warning: List nodes ... Failed
Warning: Server responded with a 303 status
Error: Could not: List nodes, got 303 expected 200
Error: Try 'puppet help node classify' for usage

When I check the pe-httpd-log I see the request coming in /nodes.json but I see also the 303 linked to it.

The user "console" is authorized for PE-console but for some reason is not working.

How do I get my access-credentials right to make this work? Can anyone give me a hint. I'm pretty new at this, so I'm a bit overwhelmed by all config-stuff. 

Greetings,
Henk-Jan

Henk-Jan Castermans

unread,
Apr 9, 2015, 10:12:22 AM4/9/15
to puppet...@googlegroups.com

Btw. I tried the same thing in Puppet Enterprise by using the "Learning VM" but the result was the same..

puppet node classify --node-group default --enc-auth-passwd learningpuppet--enc-auth-user admin --enc-server localhost --enc-port 443 --insecure learning.puppetlabs.vm

Warning: List nodes ..Failed
Warning: Server responded with a 303 status
Error: Could not: List nodes, got 303 expected 200








Op dinsdag 7 april 2015 19:40:01 UTC+2 schreef Henk-Jan Castermans:
Reply all
Reply to author
Forward
0 new messages