Skip to content

Commit fe92b83

Browse files
authored
Fix issue when using apache2_mod_ssl resource instead a wrapper resource (sous-chefs#800)
When doing `apache2_module 'ssl'` instead of another custom resource, the mod_ssl package does not get installed properly due to the fact it's set to run in the root context of the chef run. However, it never seems to get installed, or at least installed in time for it to work leaving a system in a broken state. I cannot see why this was needed in the first place as it seems to work without it. Signed-off-by: Lance Albertson <lance@osuosl.org>
1 parent b881375 commit fe92b83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This file is used to list changes made in each version of the apache2 cookbook.
44

55
## Unreleased
66

7+
- Fix issue when using apache2_mod_ssl resource instead a wrapper resource
8+
79
## 9.0.5 - *2023-09-28*
810

911
## 9.0.4 - *2023-09-04*

resources/mod_ssl.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@
6161

6262
action :create do
6363
if platform_family?('rhel', 'fedora', 'suse', 'amazon')
64-
with_run_context :root do
65-
package new_resource.mod_ssl_pkg do
66-
notifies :run, 'execute[generate-module-list]', :immediately
67-
only_if { platform_family?('rhel', 'fedora', 'amazon') }
68-
end
64+
package new_resource.mod_ssl_pkg do
65+
notifies :run, 'execute[generate-module-list]', :immediately
66+
only_if { platform_family?('rhel', 'fedora', 'amazon') }
6967
end
7068
end
7169

0 commit comments

Comments
 (0)