Questions tagged [chef-client]
20 questions
0
votes
1 answer
chef-client not getting ENV variable value
I am trying to read environment variables in recipes.
# recipes/default.rb
begin
tenant_name = ENV['TENANT_NAME']
...
end
But tenant_name is always empty. I also tried to set default attributes but still empty value. I know there is -j option…

i5z
- 15
- 6
0
votes
2 answers
cookbook : propagate list from node to fill template values
I have a list of veriables in node file in cookbook as
"normal": {
"Data_list": 'one, two, three, four',
"tags": [
]
}
based on this list i want to add values to template , below is the source fro same , but it seems instead of…

nitinmaru
- 11
- 3
0
votes
1 answer
chef-client error: Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/chef/chef_guid
We are using test kitchen to test our chef cookbooks.
On running chef-client inside the kitchen container, I am seeing this error:
[2020-03-21T07:22:21+00:00] WARN: *****************************************
[2020-03-21T07:22:21+00:00] WARN: Did not…

user674669
- 10,681
- 15
- 72
- 105
-1
votes
0 answers
How to delete cron entry in Linux using chef recipie
How to delete cron entry from Linux server using chef recipie
I tried using cron resource with action . It is not deleting.

Hema
- 11
- 2
-1
votes
1 answer
Chef client run root.sh for NMO setuid status
I need to run root.sh as root user and then restart the OEM agent as user "xxxxx". Which involves changing permissions of some folders and files and setting the SETUID bit along with permission changes.
And this will resolve an error called "NMO…

Nam
- 1
- 1