Segue abaixo o meu Vagrant file.
recebo o seguinte erro após tentar acessar a máquina com ssh vagrant
:
C:\Users\jwbor\ambiente_dev\bionic>ssh vagrant
ssh: Could not resolve hostname vagrant: Este host n\343o \351 conhecido.
$script_mysql = <<-SCRIPT
apt-get update && \
apt-get install -y mysql-server-5.7 && \
mysql -e "create user 'phpuser'@'%' identified by 'pass';"
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "forwarded_port", guest: 80, host: 8089
config.vm.network "public_network", ip: "192.168.1.24"
config.vm.provision "shell",
inline: "cat /configs/id_bionic >> .ssh/authorized_keys"
config.vm.provision "shell", inline: $script_mysql
config.vm.synced_folder "./configs", "/configs"
config.vm.synced_folder ".", "/vagrant", disabled: true
end
Estou na etapa 6 Privisionando o MySQL da aula 04. Provisionando a máquina
Obrigado!