Open doganoo opened 2 years ago
The server resource calls the client resource, which is why the client is being installed. This is expected behaviour.
My guess is that 10.5 is unavailable for the OS version you're running. Is there any difference between the OS of your test kitchen and the "real" node?
Incidentally, since you are using all defaults for the apt repository, there is no need for the initial mariadb_repository
resource, because it is called by the mariadb_server_install
resource by default.
using this mariadb cookbook, I am installing mariadb successfully on test kitchen.
In a "manual" install/run of
chef-client
using the following shell script:I get the following error after running
chef-client
on the shell:the recipe is:
The metadata.rb file contains
depends 'mariadb'
and the Berksfile containscookbook 'mariadb'
. I also ran berksinstall && berks upload
. The Chef Infra Server is hosted at api.chef.io.I wonder why mariadb_client is getting installed since I did not defined this anywhere in my recipe. Further, test kitchen runs the recipe successfully whereas the installation on a node with
chef-client
fails.Please let me know if you need more information and I can support you.
Thank you in advance!