Questions tagged [chef-attributes]
18 questions
0
votes
2 answers
Merging two chef attributes
Two different files in our repository contain these lines:
# library_cookbook_1/attributes/default.rb
default[:library_cookbook_1][:foo] = true
# library_cookbook_2/attributes/default.rb
default[:library_cookbook_2][:foo] = true
I would like to…

Jacklynn
- 1,503
- 1
- 13
- 23
0
votes
1 answer
Chef attributes file
I have a chef recipe written for creating three users, adding them to a group and writing them to a sudoers file.
group "usergroup" do
gid 2000
end
print "User1 or User2 or User3?"
env=$stdin.gets.chomp
case env
when "User1"
user "User1" do
…
user4433161
0
votes
1 answer
How are Chef attributes stored internally
I know where all we can define the chef attributes, attribute types and also their precendence levels. I just want to understand how they are stored internally.
Suppose I declare an attribute
default[:app][:install] = "/etc/app"
1) How is it…

sun_dare
- 1,146
- 2
- 13
- 33