added MySQL

This commit is contained in:
2019-06-30 17:28:00 -04:00
parent 15bee53bdf
commit d3339a49a6
3 changed files with 29 additions and 1 deletions

6
attributes/mysql.rb Normal file
View File

@ -0,0 +1,6 @@
require 'securerandom'
node.default['db']['name'] = "#{node['app']['name']}"
node.default['db']['user'] = "#{node['app']['name']}"
node.default['db']['root_password'] = SecureRandom.hex(13)
node.default['db']['password'] = SecureRandom.hex(13)