If you are provisioning some fresh server with Chef and you are trying to use the MariaDB cookbook from https://github.com/sinfomicien/mariadb, most likely you won’t have the repository added to your package manager (yum / apt).
This will cause Chef to exit with this error:
1 |
==> project: [2014-11-15T14:55:33+00:00] ERROR: package[MariaDB-server] (mariadb::_redhat_server line 19) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for MariaDB-server |
For this, you must specify to the cookbook that you want to use the default repository by setting this option to true: [‘mariadb’][‘use_default_repository’] (defaults to false).