Sha256: 33c907ff4d9144cf547135460c54bf4c930b453588f8042c3b705d373e39093c
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 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", home: true, quiet: true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bard-1.1.0 | lib/bard/provision/mysql.rb |
bard-1.0.8 | lib/bard/provision/mysql.rb |
bard-1.0.7 | lib/bard/provision/mysql.rb |
bard-1.0.6 | lib/bard/provision/mysql.rb |