Vagrant File Chef Attributes Vagrant File Chef Attributes ruby ruby

Vagrant File Chef Attributes


I'm brand new to Vagrant, Ruby, and Chef, but this is what worked for me:

config.vm.provision :chef_solo do |chef|    chef.json = {        "mysql" => {            "server_root_password" => "password"        }    }    chef.add_recipe "mysql" # etcend


I recently ran into this same issue. While Mike's answer did not solve my problem, possibly due to the newer Vagrant/Chef versions, it pointed me in the right direction. The following is what i had to do for MySQL server to work:

config.vm.provision :chef_solo do |chef|    chef.json = {        :mysql => {            :server_root_password => "password",            :server_repl_password => "password",            :server_debian_password => "password"        }    }    chef.add_recipe "mysql::server"end