I am using saltstack for doing some automation stuff and i am having problems with mongo authetication. I am running:
salt 'sw1' test.ping --return mongo_return
and i have the following config in /etc/salt/master:
mongo.db: 'saltdata'
mongo.host: 'mongohost'
mongo.user: 'saltuser'
mongo.password: 'saltuserpassword'
I have restarted the master but I get the log:
pymongo.errors.OperationFailure: command insert requires authentication
I have tried with users created in 'admin' db but also in 'saltdata' db. If I don't use AUTH in mongo, it works.
Any ideas?