Sha256: 3715ebfd03824b6726ef557393b591263070ec095559c8195642f241b60d7e55
Contents?: true
Size: 644 Bytes
Versions: 14
Compression:
Stored size: 644 Bytes
Contents
# install mysql class Bard::Provision::MySQL < Bard::Provision def call print "MySQL:" if !mysql_responding? print " Installing," provision_server.run! [ "sudo apt-get install -y mysql-server", %(sudo mysql -uroot -e "ALTER USER \\"'\\"root\\"'\\"@\\"'\\"localhost\\"'\\" IDENTIFIED WITH mysql_native_password BY \\"'\\"\\"'\\", \\"'\\"root\\"'\\"@\\"'\\"localhost\\"'\\" PASSWORD EXPIRE NEVER; FLUSH PRIVILEGES;"), ].join("; "), home: true end puts " ✓" end def mysql_responding? provision_server.run "sudo systemctl is-active --quiet mysql", home: true, quiet: true end end
Version data entries
14 entries across 14 versions & 1 rubygems