Created
          June 3, 2013 11:42 
        
      - 
      
- 
        Save toshikaz55/5697606 to your computer and use it in GitHub Desktop. 
    Chef install App, setting files 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # | |
| # Cookbook Name:: instApp | |
| # Recipe:: default | |
| # | |
| # Copyright 2013, YOUR_COMPANY_NAME | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| log "install some apps" | |
| log "install zsh emacs w3m lynx" | |
| %w{ zsh emacs w3m lynx }.each do |pkg| | |
| log pkg | |
| package pkg do | |
| action :install | |
| end | |
| end | |
| log "install settings files" | |
| log "install .zshrc .alias .emacs.el" | |
| template "zshrc" do | |
| path "/home/vagrant/.zshrc" | |
| source "zshrc.erb" | |
| owner "vagrant" | |
| group "vagrant" | |
| mode 0646 | |
| end | |
| template "alias" do | |
| path "/home/vagrant/.alias" | |
| source "alias.erb" | |
| owner "vagrant" | |
| group "vagrant" | |
| mode 0646 | |
| end | |
| template "emacs.el" do | |
| path "/home/vagrant/.emacs.el" | |
| source "emacs.el.erb" | |
| owner "vagrant" | |
| group "vagrant" | |
| mode 0646 | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment