Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 403 Bytes
<% # loop through each auth user data bag item %>
<% auth_users = Chef::DataBag.load( 'auth' ) %>
<% secret = Chef::EncryptedDataBagItem.load_secret(Chef::Config[:encrypted_data_bag_secret]) %>
<% auth_users.each do |user| %>
<% auth_user = Chef::EncryptedDataBagItem.load( 'auth', user[0], secret ) %>
<%= auth_user['id'] %>:<%= auth_user[@env]['password'] %>:<%= auth_user[@env]['level'] %>
<% end %>