Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wnoguchi/chef-vagrant-working
Chef Solo and Vagrant working repository.
https://github.com/wnoguchi/chef-vagrant-working
Last synced: about 1 month ago
JSON representation
Chef Solo and Vagrant working repository.
- Host: GitHub
- URL: https://github.com/wnoguchi/chef-vagrant-working
- Owner: wnoguchi
- Created: 2013-10-26T10:15:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-11T23:35:42.000Z (about 11 years ago)
- Last Synced: 2023-03-22T12:51:08.434Z (almost 2 years ago)
- Language: Ruby
- Size: 211 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chef Solo and Vagrant Work-repo
Chef SoloとVagrantの勉強用のリポジトリです。
## システム要件
* Mac OS X
* ruby 1.9.3
* rbenv
* bundler
* Berkshelfこのリポジトリをクローンしたらまず以下のことをやらなければなりません。
```
bundle install --path vendor/bundle
```## よく使うコマンド
### Vagrant
```
vagrant init
vagrant up
vagrant halt
vagrant destroy
```### chef-solo
```
bundle exec knife solo init chef-repo
cd chef-repo/
bundle exec knife cookbook create nagios -o site-cookbooks
(レシピの記述: `site-cookbooks/nagios/recipes/default.rb` 等)
bundle exec knife solo prepare target1
(ノードファイル編集)
bundle exec knife solo cook target1
```* サードパーティ製のクックブックをchefレポジトリにインポートする
```
bundle exec knife cookbook site vendor yum
```