Skip to content

Instantly share code, notes, and snippets.

@cjohannsen81
Created February 26, 2016 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjohannsen81/d6241f0dee743791b26b to your computer and use it in GitHub Desktop.
Save cjohannsen81/d6241f0dee743791b26b to your computer and use it in GitHub Desktop.
#
# Cookbook Name:: compliance
# Recipe:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.
case node[:platform]
when "ubuntu"
cookbook_file 'tmp/chef-compliance_0.14.5-1_amd64.deb' do
source 'chef-compliance_0.14.5-1_amd64.deb'
action :create
end
dpkg_package 'chef-compliance' do
source 'tmp/chef-compliance_0.14.5-1_amd64.deb'
end
execute 'compliance-config' do
command 'chef-compliance-ctl reconfigure'
end
package "update-notifier-common" do
notifies :run, resources(:execute => "compliance-config"), :immediately
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment