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

1.7.2 MacOS Inspec Fix? #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions compliance/profiles/client-run/controls/default.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# copyright: 2021, Mike Butler
# copyright: 2024, Mike Butler

control 'chef-client' do
impact 0.7
Expand All @@ -15,14 +15,14 @@
end
elsif os.darwin?
# THESE ARE BROKEN WHEN RUNNING INSPEC AGAINST THE SERVER OUTSIDE OF THE CLIENT RUN
# describe launchd_service('chef.restarter') do
# it { should be_installed }
# it { should be_enabled }
# end
# describe launchd_service('chef.chef-client') do
# it { should be_installed }
# it { should be_enabled }
# end
describe launchd_service('chef.restarter') do
it { should be_installed }
it { should be_enabled }
end
describe launchd_service('chef.chef-client') do
it { should be_installed }
it { should be_enabled }
end
describe file('/Library/LaunchDaemons/com.chef.chef-client.plist') do
its('content') { should include('<integer>300</integer>') }
end
Expand Down
2 changes: 1 addition & 1 deletion compliance/profiles/client-run/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ copyright: Snohio
copyright_email: [email protected]
license: Apache-2.0
summary: Run the Chef Client every 5 Minutes
version: 1.6.1
version: 1.7.2
supports:
platform: os
Loading