Skip to content

Instantly share code, notes, and snippets.

@double-z
Created February 12, 2015 23:36
Show Gist options
  • Save double-z/23798c5f4f932f0cf9cc to your computer and use it in GitHub Desktop.
Save double-z/23798c5f4f932f0cf9cc to your computer and use it in GitHub Desktop.
Insert a `chef_config` attr into a bootstrap erb
cat > /etc/chef/user.pem <<'EOP'
<%= IO.read(File.expand_path(@chef_config[:client_key])) %>
EOP
chmod 0600 /etc/chef/user.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment