mediadepot / chef-depot

DEPRECATED: Replaced by mediadepot/ignition
https://github.com/mediadepot/ignition
28 stars 2 forks source link

DEPRECATED - SEE mediadepot/docs and mediadepot/ignition for new instructions

chef-depot-cookbook

Screenshots:

Gallery

Setup:

This assumes you're using a chef server to manage your environment configuration.

# Install ChefDK on the vanilla Ubuntu installation
cd /tmp && curl -LO https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.13.21-1_amd64.deb
dpkg -i /tmp/chefdk_0.13.21-1_amd64.deb

# Create configuration folders
mkdir -p /etc/chef /var/chef

# Download the knife.rb file from Hosted Chef (or recreate it)
# NOTE: make sure to specify the environment 
nano /etc/chef/config.rb

current_dir = File.dirname(__FILE__)
log_level                :info
log_location             STDOUT
node_name                "depot"
client_key               "#{current_dir}/depot.pem"
validation_client_name   "mediadepot-validator"
validation_key           "#{current_dir}/mediadepot-validator.pem"
chef_server_url          "https://api.chef.io/organizations/mediadepot"
cookbook_path            ["#{current_dir}/../cookbooks"]
environment              "example"

# Download the mediadepot-validator.pem from the Hosted Chef
chef-client --override-runlist "depot::default" --config "/etc/chef/config.rb"

Testing/Development