Open banderon opened 4 years ago
@banderon Thanks so much for reporting this. I haven't tested this extension much since I created it so I'll have a look now and see if I can replicate and make a fix for it!
I started having a look into this issue yesterday and it turns out that none of the class I was trying to inherit in here: https://github.com/Chassis/MariaDB/blob/master/modules/mariadb/manifests/init.pp#L29-L46 was being used at all so I need to reimplement that or handle it in a different way so that the mysql socket is opened correctly and I might also need to pass in some innodb
specific settings. I should be able to dig into that again in the next day or two.
I just spent a few hours trying to get a fix for this but I'm still stuck unfortunately. On an initial provision if I SSH into the box and run sudo find / -type s
the socket we need has been created. /run/mysqld/mysqld.sock
when we reprovision that socket isn't recreated. I think that when sudo apt -y install mariadb-server
runs it purges all the existing sockets and sets them up again. I can't work out why the Puppet MySQL class that has MariaDB doesn't do this.
The DB breaks when trying to reprovision with MariaDB.
My system:
Steps to reproduce:
Add the MariaDB extension to the vanilla
config.yaml
:Create the vagrant:
The vagrant is created and works without issue. However, when I attempt to reprovision, the DB setup breaks:
The DB is now inaccessible and doesn't work:
However, I can get the DB working again by manually reinstalling MariaDB:
This breaks as soon as I reprovision again, necessitating another cycle of manually running
sudo apt -y install mariadb-server
.