chef-ingredient icon indicating copy to clipboard operation
chef-ingredient copied to clipboard

chef_automatev2 custom config not being loaded

Open zmaupin opened this issue 5 years ago • 1 comments

Cookbook version

3.1.2

Chef-client version

15.1.36

Platform Details

VM running Ubuntu Bionic

Scenario:

Using custom config with the chef_automatev2 resource.

Steps to Reproduce:

Use the chef_automatev2 resource with custom config.

Expected Result:

An execute resource is ran to patch the automate config.

Actual Result:

The execute resource is never ran because /usr/bin/chef-automate does not exist. The path is /bin/chef-automate.

 => 60:   execute "chef-automate config patch #{Chef::Config[:file_cache_path]}/custom_config.toml" do
    61:     cwd Chef::Config[:file_cache_path]
    62:     action :nothing
    63:     only_if { FileTest.file?('/usr/bin/chef-automate') }
    64:   end
zmaupin@automate-fe-02:/tmp/do_terraform$ which chef-automate
/bin/chef-automate
zmaupin@automate-fe-02:/tmp/do_terraform$ /usr/bin/chef-automate
-bash: /usr/bin/chef-automate: No such file or directory

zmaupin avatar Dec 02 '19 19:12 zmaupin

Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

welcomebot avatar Dec 02 '19 19:12 welcomebot