This cookbook installs a base image with common configurations that can be further built upon with more application-specific cookbooks. It can be included as a recipe in your own cookbook or baked into an image as is and sourced for speedier converging purposes.
This cookbook contains the following public cookbooks:
This cookbook contains the following custom recipes:
- base: default cookbook to call for including all settings
- bash: custom bash PS1, clear history
- login_defs: set ENCRYPT_METHOD to SHA512
- nfs: define specific nfs port
- ssh: unique ssh server key, ssh config hardening
- update: update os via package management
To include all configurations provided by this cookbook in your recipe, configure your Berksfile and Metadata.rb accordingly, and include the following:
include_recipe base-chef::base
Included with this cookbook is a Vagrantfile
configured with both virtualbox
and aws
providers. Utilizing chef-zero, these providers can install this cookbook onto either a VM or AMI. To utilize AWS funcationality please update the aws variables within the Vagrantfile prior to launching.
Virtualbox
$ git clone https://github.com/audio4ears/base-chef.git
$ cd base-chef
$ vagrant up --provider virtualbox
AWS
$ git clone https://github.com/audio4ears/base-chef.git
$ cd base-chef
$ vagrant up --provider aws