diff options
Diffstat (limited to 'chef/lib/chef/knife/bootstrap/archlinux-gems.erb')
-rw-r--r-- | chef/lib/chef/knife/bootstrap/archlinux-gems.erb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chef/lib/chef/knife/bootstrap/archlinux-gems.erb b/chef/lib/chef/knife/bootstrap/archlinux-gems.erb index b23a3ff3df..a496d61344 100644 --- a/chef/lib/chef/knife/bootstrap/archlinux-gems.erb +++ b/chef/lib/chef/knife/bootstrap/archlinux-gems.erb @@ -18,6 +18,16 @@ EOP awk NF /tmp/validation.pem > /etc/chef/validation.pem rm /tmp/validation.pem +<% if @chef_config[:encrypted_data_bag_secret] -%> +( +cat <<'EOP' +<%= encrypted_data_bag_secret %> +EOP +) > /tmp/encrypted_data_bag_secret +awk NF /tmp/encrypted_data_bag_secret > /etc/chef/encrypted_data_bag_secret +rm /tmp/encrypted_data_bag_secret +<% end -%> + ( cat <<'EOP' log_level :info |