Am using the Puppet module from https://github.com/puppetlabs/puppetlabs-mysql and for some reason it keeps producing errors regarding apt-get update.
The exact error message can be found here.
For some strange reason the MySQL class is being executed first before anything else and before my apt-get update command executes.
Is there a way to ensure the command apt-update runs before my MySQL module?
Here you can find my current default.pp manifest for my
I’ve tried various ways to make sure apt-update command is executed first but nothing seems to work. At line 148 I tried the following code,
package { 'mysql':
ensure => "installed",
require => Exec['apt-update'],
}
But this didn’t solve my issue.
Running out of ideas on how to fix this.
To ensure apt-get update happened before Puppet provisioning I placed the following command in my Vagrantfile before I defined Puppet.
config.vm.provision :shell, :inline => "apt-get update --fix-missing"