I am going to install around 100 mysql servers and I would like to have different root password on every of them.
I am going to use puppet mysql (https://forge.puppetlabs.com/puppetlabs/mysql) which is amazing. Unfortunately, it supports only passing password from puppet. The great thing is that it stores password in /root/.my.cnf file, so I can connect to mysql locally without knowing the password. So that I don't see the need to have password stored in puppet anymore.
Is there any way to generate password on the server so I don't need to store it on my puppet master?
This should do:
But, since you will have to administer a great number of instances, you might find more useful to switch to PAM authentication, available both in MySQL Enterprise and MariaDB.