Created
February 12, 2015 23:36
-
-
Save double-z/23798c5f4f932f0cf9cc to your computer and use it in GitHub Desktop.
Insert a `chef_config` attr into a bootstrap erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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