Skip to content

Instantly share code, notes, and snippets.

@thiagovsk
Created December 3, 2014 01:05
Show Gist options
  • Save thiagovsk/1c97be88875bc9ea8748 to your computer and use it in GitHub Desktop.
Save thiagovsk/1c97be88875bc9ea8748 to your computer and use it in GitHub Desktop.
passo a passo cheff do shell ao cheff
Deixa tudo instalado como https://www.digitalocean.com/community/tutorials/how-to-install-chef-and-ruby-with-rvm-on-a-ubuntu-vps
gem install chef --no-ri --no-rdoc
gem install librarian-chef
gem install knife-solo --no-ri --no-rdoc
sudo apt-get install libxslt-dev libxml2-dev
gem install berkshelf --no-ri --no-rdoc
gem install foodcritic --no-ri --no-rdoc
Criar uma receita com o knife
knife cookbook create shell_to_chef
seguir isso
https://learn.getchef.com/legacy/starter-use-cases/convert-bash-to-chef/
na verdade isso
http://www.gotealeaf.com/blog/chef-basics-for-rails-developers
onde tem receitas chef
https://supermarket.chef.io/
@thiagovsk
Copy link
Author

knife solo init cria toda a estrutura pra você
adicionar gem 'librarian-chef' funciona como um bundler
librarian-chef init cria um cheff file
librarian-chef install é como um bundle install

podemos criar um cookbook:

$ knife cookbook create shell_to_chef

@thiagovsk
Copy link
Author

@thiagovsk
Copy link
Author

@thiagovsk
Copy link
Author

@thiagovsk
Copy link
Author

@thiagovsk
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment