summaryrefslogtreecommitdiff
path: root/spec/data/bootstrap/test-hints.erb
blob: 29ba710b425c73d3c2df6e65040886b64d59bd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<%# Generate Ohai Hints -%>
<% unless @chef_config[:knife][:hints].nil? || @chef_config[:knife][:hints].empty? -%>
mkdir -p /etc/chef/ohai/hints
<% end -%>

<% @chef_config[:knife][:hints].each do |name, hash| -%>
(
cat <<'EOP'
<%= hash.to_json %>
EOP
) > /etc/chef/ohai/hints/<%= name %>.json
<% end -%>