def provision(self):
        with self.using(YumRole) as role:

            role.ensure_up_to_date()

            result = role.ensure_package_installed('mysql-server')
            role.ensure_package_installed('mysql-devel')
            role.ensure_package_installed('mysql-libs')

            if result:
                self.log("setting root user %s password..." % self.mysql_root_user)
                self.execute("mysqladmin -u %s -p'temppass' password '%s'" % (self.mysql_root_user, self.mysql_root_pass), stdout=False, sudo=True)
Installs `MySQL <http://www.mysql.com/>`_ Server and its dependencies.
dataset/ETHPy150Open python-provy/provy/provy/more/centos/database/mysql.py/MySQLRole.provision