Ao criar o phpweb o comando não enviou o arquivo para o /vagrant/configs/manifests/phpweb.pp assim não consigo configura-lo com o puppet Tem algo errado no meu codigo?
$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 "public_network", ip: "192.168.15.9"
config.vm.define "mysqldb" do |mysql|
mysql.vm.network "public_network", ip: "192.168.15.9"
config.vm.provision "shell",
inline: "cat /configs/id_bionic.pub >> .ssh/authorized_keys"
config.vm.provision "shell", inline: $script_mysql
config.vm.provision "shell",
inline: "cat /configs/mysqld.cnf > /etc/mysql/mysql.conf.d/mysqld.cnf"
config.vm.provision "shell",
inline: "service mysql restart"
config.vm.synced_folder "./configs", "/configs"
config.vm.synced_folder ".", "/vagrant", disabled: true
end
config.vm.define "phpweb" do |phpweb|
phpweb.vm.network "forwarded_port", guest: 80, host:8089
phpweb.vm.network "public_network", ip: "192.168.15.9"
end
end
# execute 'apt-get update'
exec { 'apt-update':
command => '/usr/bin/apt-get update'
}
package { ['php7.2' ,'php7.2-mysql'] :
require => Exec['apt-update'],
ensure => installed,
}
exec { 'run-php7':
require => Package['php7.2'],
command => '/usr/bin/php -S 0.0.0.0:8888 -t /vagrant/src &'
}