Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Last active September 6, 2016 18:12
Show Gist options
  • Save cheeseplus/5da21bc078a105760829b67150304860 to your computer and use it in GitHub Desktop.
Save cheeseplus/5da21bc078a105760829b67150304860 to your computer and use it in GitHub Desktop.
repro for template
node.default['ip'] = '173.194.207.113'
template '/tmp/template_hack' do
source 'template.erb'
owner 'root'
group 'root'
mode 00744
end
-----> Starting Kitchen (v1.11.1)
-----> Converging <default-ubuntu-1404>...
Preparing files for transfer
Preparing dna.json
Preparing current project directory as a cookbook
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Chef Omnibus installation detected (install only if missing)
Transferring files to <default-ubuntu-1404>
Starting Chef Client, version 12.13.37
resolving cookbooks for run list: ["template_hack"]
Synchronizing Cookbooks:
- template_hack (3.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: template_hack::default
* template[/tmp/template_hack] action create
- update content in file /tmp/template_hack from e3b0c4 to 09fffa
--- /tmp/template_hack 2016-09-06 16:18:33.959349954 +0000
+++ /tmp/.chef-template_hack20160906-3349-1ct3cu6 2016-09-06 16:27:21.339349954 +0000
@@ -1 +1,2 @@
+qk-in-f113.1e100.net.
Running handlers:
Running handlers complete
Chef Client finished, 1/1 resources updated in 01 seconds
Finished converging <default-ubuntu-1404> (0m3.10s).
-----> Kitchen is finished. (0m3.59s)
<%= `dig +short -x #{node['ip']}` -%>
@buremba
Copy link

buremba commented Sep 6, 2016

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment