Sha256: a197090d0b5f513b290e5d28c1371ba55b7ad0c5c1a180a42beef6932e5cb08b
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 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 service mysql status | cat", quiet: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bard-1.0.0 | lib/bard/provision/mysql.rb |