vagrant upとかで作った仮想環境で作成されてるユーザーの
デフォルトのログインシェルがbashなので、chefでchshする気合いのレシピ、見せてあげるわ(適当)
Sample VM user-customization Chef recipe
上のレシピを一部抜粋しただけの気合いもクソもないレシピです。
bash指定でcode以下のヒアドキュメントを実行しているだけです。
# # Cookbook Name:: chsh # Recipe:: default # # Copyright 2013, YOUR_COMPANY_NAME # # All rights reserved - Do Not Redistribute # bash "Set vagrant's shell to zsh" do code <<-EOT chsh -s /bin/zsh vagrant EOT not_if 'test "/bin/zsh" = "$(grep vagrant /etc/passwd | cut -d: -f7)"' end
FYI and RTFM
bash — Chef Docs