Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stromweld committed Mar 4, 2024
1 parent 2061f43 commit b79cd5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
default['chef_software']['chef_server_api_fqdn'] = 'chef-server.example.com'
default['chef_software']['chef_automate_api_fqdn'] = 'chef-automate.example.com'
default['chef_software']['chef_supermarket_api_fqdn'] = 'chef-supermarket.example.com'
default['chef_software']['automate_admin_token'] = lazy { kitchen? ? shell_out("chef-automate iam token create test_user --admin").stdout.strip : nil }
default['chef_software']['automate_admin_token'] = kitchen? ? shell_out("chef-automate iam token create test_user --admin").stdout.strip : nil

default['chef_software']['chef_automatev2'] = {
products: %w(automate infra-server builder),
Expand Down
4 changes: 2 additions & 2 deletions recipes/chef_automatev2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
node['chef_software']['automatev2_local_users']&.each do |name, hash|
iam_user name do
user_hash hash['user_json']
api_token node['chef_software']['automate_admin_token']
api_token lazy { node['chef_software']['automate_admin_token'] }
action :create
end
end

node['chef_software']['automatev2_iam_policies']&.each do |name, hash|
iam_policy name do
policy_hash hash['policy_json']
api_token node['chef_software']['automate_admin_token']
api_token lazy { node['chef_software']['automate_admin_token'] }
action :create
end
end
Expand Down

0 comments on commit b79cd5c

Please sign in to comment.