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:

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).