The default installation of chef-client happens in /opt directory. I have a requirement where i need to install chef client under /opt/installed_apps directory.
If i am installing it under /opt/installed_apps, it is creating a /opt/chef folder inside /opt/installed_apps and while running the chef-client command, it is throwing an error that "/opt/chef/embedded/bin/ruby file or directory not exist".
I tried to set the path of ruby gem i.e /opt/chef/embedded/bin/ruby in environmental PATH variable but it didn't work.
Please advice do i have to set any specific environment variables for chef-client to work or custom installation of chef client/server is not allowed/recommended.
Thank Amandeep Singh