diff options
Diffstat (limited to 'spec/data/bootstrap/test-hints.erb')
-rw-r--r-- | spec/data/bootstrap/test-hints.erb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/data/bootstrap/test-hints.erb b/spec/data/bootstrap/test-hints.erb new file mode 100644 index 0000000000..29ba710b42 --- /dev/null +++ b/spec/data/bootstrap/test-hints.erb @@ -0,0 +1,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 -%> |