summaryrefslogtreecommitdiff
path: root/chef/lib/chef/knife/bootstrap/fedora13-gems.erb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/lib/chef/knife/bootstrap/fedora13-gems.erb')
-rw-r--r--chef/lib/chef/knife/bootstrap/fedora13-gems.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/chef/lib/chef/knife/bootstrap/fedora13-gems.erb b/chef/lib/chef/knife/bootstrap/fedora13-gems.erb
index 3c7c5cf5c6..cc8b6d7a48 100644
--- a/chef/lib/chef/knife/bootstrap/fedora13-gems.erb
+++ b/chef/lib/chef/knife/bootstrap/fedora13-gems.erb
@@ -28,6 +28,19 @@ awk NF /tmp/encrypted_data_bag_secret > /etc/chef/encrypted_data_bag_secret
rm /tmp/encrypted_data_bag_secret
<% end -%>
+<%# 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 -%>
+
(
cat <<'EOP'
<%= config_content %>