I hereby claim:
- I am charlesjohnson on github.
- I am chipadeedoodah (https://keybase.io/chipadeedoodah) on keybase.
- I have a public key ASC6A2ZXs9oAPsolgExpIOmtEhVmlufZ1mKEbt3g4sVa0Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Taps | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/core" | |
tap "sambadevi/powerlevel9k" | |
# Brew CLI apps | |
brew "fd" | |
brew "fzf" |
directory '/var/www/' |
#Policyfile for Jenkins | |
name "jenkins" | |
# Run_list | |
run_list "apt", "java", "jenkins::master", "recipe[policyfile_demo]" | |
# Attributes | |
default["greeting"] = "Attributes, f*** yeah" | |
override["attr_only_updating"] = "use -a" |
Its a cookbook class that we use to abstract cookbooks and their | |
dependencies. The key method to look at is dependency_hash which creates | |
a hash based on the dependencies of the cookbook. | |
We do not explicitly do a reverse dependency lookup but we can use this | |
hash to infer a change in dependencies from a change in any cookbook in | |
an environment. So the flow is: | |
1. I change cookbook A and it gets sent to the chef server and indexed |
#temp/break.rb | |
directory '/test/foo' do | |
action :create | |
end |
#temp/break.rb | |
directory '/test/foo' do | |
action :create | |
end |
#temp/break.rb | |
directory '/test/foo' do | |
action :create | |
end |
begin | |
gem 'chef-api' | |
rescue LoadError | |
require 'rubygems/dependency_installer' | |
Gem::DependencyInstaller.new(Gem::DependencyInstaller::DEFAULT_OPTIONS).install('chef-api') | |
end | |
require 'chef-api' |
#!/opt/chefdk/bin/chef-apply | |
# Lifted pretty much verbatim from http://stackoverflow.com/questions/17813592/how-can-i-display-the-output-of-a-opscode-chef-bash-command-in-my-console) | |
results = "/tmp/output.txt" | |
file results do | |
action :delete | |
end | |
cmd = "ls /" | |
bash cmd do |