Webdav is used for uploading inventories
In site.st on a client or the node policy directories you'll find the configured user and password
But in the actual system techniques you'll find a variable in that place
Where does it come from?
scala source gives a hint:
namely the system variable
grepping for this points us to the this file:
Has this comment:
And further below you'll find
Looking at the running rudder process
Shows this setting:
Note that the other file included here ( rudder.authFile=/opt/rudder/etc/rudder-users.xml ) also has a webdav password, but this it is not the same...
Now, going to we find the same rudder.webdav.password field which equals the webdavPassword from the scala file, which is the one used with the DAVPASSWORD variable.
Once you updated the file, you need to have it re-read. I'm no JAVA guru, and while I know those property files are sometimes just read on the fly, I've restarted my rudder-jetty main process.
Like so many times, it told me it failed to restart, but ps clearly shows it is running.
After this, we need to see if it actually worked!
On the server, I trigger an agent run:
Then I checked the web ui isn't still showing a policy compile.
On a client, I'll go and pull config, run the agent and push my inventory.
Double checking shows the pw is still "rudder" on both ends...:
Very sad now!
Update 10 minutes later:
Triggered a policy generation on the server
Ran rudder agent update, rudder agent run on the server
Checking on the client again we see that the system policies have now been updated:
Now the grep shows the new password
We only need the final test now: Webdav upload, now in the verbose version :)
Hamster dance anyone?