Skip to content

Commit

Permalink
hacky way of adding idempotency for org admin association (#8)
Browse files Browse the repository at this point in the history
* hacky way of adding idempotency for org admin association
  • Loading branch information
Stromweld authored Mar 31, 2023
1 parent 7c0a2ae commit c94b0d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
strategy:
matrix:
os:
- amazonlinux-2
- amazonlinux-2023
- centos-7
- centos-stream-8
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

This file is used to list changes made in each version of the chef_software cookbook.

## 2.1.1 (20232-03-20)
## 2.1.2 (2023-03-31)

- [Corey Hemminger] - Hacky way of adding idempotency to chef-server org admin association

## 2.1.1 (2023-03-20)

- [Corey Hemminger] - Add safe navigation to .include method for automatev2 recipe

Expand Down
5 changes: 0 additions & 5 deletions kitchen.dokken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ platforms:
image: dokken/almalinux-9
pid_one_command: /usr/lib/systemd/systemd

- name: amazonlinux-2
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd

- name: amazonlinux-2023
driver:
image: dokken/amazonlinux-2023
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'hemminger@hotmail.com'
license 'Apache-2.0'
description 'Installs/Configures chef server, chef automate2, chef supermarket'
version '2.1.1'
version '2.1.2'
chef_version '>= 16.4'

issues_url 'https://github.com/Stromweld/chef_software/issues'
Expand Down
7 changes: 7 additions & 0 deletions recipes/chef_automatev2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@
end

node['chef_software']['chef_org']&.each do |name, hash|
template "#{Chef::Config[:file_cache_path]}/#{name}" do
source 'orgs.erb'
variables org_opts: hash
notifies :create, "chef_org[#{name}]", :immediately
end

chef_org name do
hash&.each do |key, value|
send(key, value)
end
action :nothing
end
end
end

0 comments on commit c94b0d1

Please sign in to comment.