733 B
733 B
- Machine registration
- Create
client.rbandvalidation.pem- The former defines variables Chef needs to set up a new machine and the latter is the
chef-validatorprivate key
- The former defines variables Chef needs to set up a new machine and the latter is the
apt update && apt install -y chefchef-clientls /etc/chef
- Create
- Configure the
knifeutility~/.chef/knife.rb
node_name 'aws-node-78ec.eu-west-1.compute.internal'
client_key '/etc/chef/client.pem'
chef_server_url 'https://chef.mxrads.net/organizations/mxrads'
knife[:editor] = '/usr/bin/vim'
- Explore Chef cookbooks
- List
knife cookbooks list
- Display cookbook version history
knife cookbooks show <cookbook_name>
- Display specific cookbook
knife cookbooks show <cookbook_name> <version>
- List