Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptations to work on RHEL9 #6

Merged
merged 5 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Cookbook to install and configure freeradius-rb
### Platforms

- Centos 7
- Rocky Linux 9

## Authors
Vicente Mesa <vimesa@redborder.com>
Expand Down
26 changes: 13 additions & 13 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,57 @@
config_dir = new_resource.config_dir
flow_nodes = new_resource.flow_nodes

yum_package "freeradius-rb" do
dnf_package "freeradius-rb" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-kafka" do
dnf_package "freeradius-rb-kafka" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-krb5" do
dnf_package "freeradius-rb-krb5" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-ldap" do
dnf_package "freeradius-rb-ldap" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-mysql" do
dnf_package "freeradius-rb-mysql" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-perl" do
dnf_package "freeradius-rb-perl" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-postgresql" do
dnf_package "freeradius-rb-postgresql" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-python" do
dnf_package "freeradius-rb-python" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-unixODBC" do
dnf_package "freeradius-rb-unixODBC" do
action :upgrade
flush_cache[:before]
end

yum_package "freeradius-rb-utils" do
dnf_package "freeradius-rb-utils" do
action :upgrade
flush_cache[:before]
end

yum_package "rbutils" do
dnf_package "rbutils" do
action :upgrade
flush_cache[:before]
end
Expand Down Expand Up @@ -253,7 +253,7 @@
action :nothing
end.run_action(:run)

node.set["freeradius"]["registered"] = true
node.normal["freeradius"]["registered"] = true
end
Chef::Log.info("freeradius service has been registered in consul")
rescue => e
Expand All @@ -269,7 +269,7 @@
action :nothing
end.run_action(:run)

node.set["freeradius"]["registered"] = false
node.normal["freeradius"]["registered"] = false
end
Chef::Log.info("freeradius service has been deregistered from consul")
rescue => e
Expand Down