Skip to content

Instantly share code, notes, and snippets.

@kennonkwok
Last active February 8, 2016 18:50
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 kennonkwok/b2d9f83b37eaad0f373b to your computer and use it in GitHub Desktop.
Save kennonkwok/b2d9f83b37eaad0f373b to your computer and use it in GitHub Desktop.
install_compliance.md

Installing compliance server via packagecloud

Manual setup for apt

setup gpg keys and https downloads:

curl https://packagecloud.io/gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install debian-archive-keyring #debian only
sudo apt-get install -y apt-transport-https

create/edit /etc/apt/sources.list.d/chef_stable.list:

deb https://packagecloud.io/chef/stable/ubuntu/ trusty main

update apt, install chef-compliance package and reconfigure:

apt-get update
apt-get install chef-compliance
sudo chef-compliance-ctl reconfigure

Manual setup for yum

create/edit /etc/yum.repos.d/chef_stable.repo:

[chef_stable]
name=chef_stable
baseurl=https://packagecloud.io/chef/stable/el/6/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

install chef-compliance package and reconfigure:

sudo yum install -y chef-compliance
sudo chef-compliance-ctl reconfigure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment