fooshards
he came, he saw, he paid, he imaged, he left
Dawg Days 2016
Eric Fusciardi
This is mostly just getting familiar with the kitchen toolchain and how chef manages state.
yum install -y httpd
service httpd start
Basic, amirite?
yum install -y httpd
> httpd already installed
service httpd start
> starting [httpd] [FAILED]
Resources are the first-class citizen in chef scripts, and represent a piece of desired configuration.
Insert into google > "chef resource <A THING>" and you'll probably get a relavent hit
user, group, file, directory, package, service, link, cron, envvars, git creds, disk mounts, bash script, arbitrary ruby code, whatever.
They're all resources.
Part 1
Part 2
Protip: If you're not using pageant or ~/.ssh/id_rsa to handle your own ssh auth, you're missing out.
It is a state machine, it checks state, and if the state is not as described, it applies it.
Part 1
Part 2
This wasn't defined.
ohai
bats
server-spec
knife data bag [create|edit|delete] directory_name document_name
set your EDITOR env variable.
Mac users: export EDITOR='vi'
Windows users: set EDITOR='notepad.exe'
(you can use custom editors if you want, test it out.)
It's really just a super fancy shell script.
By fooshards