Project

General

Profile

Bug #12229

Updated by Alexis Mousset over 6 years ago

I tried to use the API to apply policies from the root server to the root server with the following command on the 
 virtual training course's machine. => with the right token 

 <pre> 
 curl -k -H "X-API-Token: mytoken" -X POST -H "Content-Type: application/json" https://localhost/rudder/api/latest/nodes/root/applyPolicy 
 </pre> 

 the result was like the default sudo message: 

 <pre> 
 root: 
 root:We trust you have received the usual lecture from the local System 
 root:Administrator. It usually boils down to these three things: 
 root: 
 root:      #1) Respect the privacy of others. 
 root:      #2) Think before you type. 
 root:      #3) With great power comes great responsibility. 
 root: 
 root:sudo: no tty present and no askpass program specified 

 </pre> 
 Not sure if it is a bug or a bad machine configuration. It worked well for other rudder nodes.

Back