summaryrefslogtreecommitdiff
path: root/spec/data/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'spec/data/bootstrap')
-rw-r--r--spec/data/bootstrap/test-hints.erb12
-rw-r--r--spec/data/bootstrap/test.erb1
2 files changed, 13 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 -%>
diff --git a/spec/data/bootstrap/test.erb b/spec/data/bootstrap/test.erb
new file mode 100644
index 0000000000..7cdc7dfdd0
--- /dev/null
+++ b/spec/data/bootstrap/test.erb
@@ -0,0 +1 @@
+<%= first_boot.to_json %> \ No newline at end of file