Created
February 26, 2016 07:47
-
-
Save cjohannsen81/d6241f0dee743791b26b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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