LoginSignup
1
1

More than 5 years have passed since last update.

Chef-solo:レシピの中でChef実行中のユーザー名を使う

Last updated at Posted at 2014-11-06

ホームディレクトリにgitからClone

git "/home/#{node['current_user']}/dotfiles" do
  repository "https://github.com/okisanjp/dotfiles.git"
  revision "master"
  user node['current_user']
  group node['current_user']
  action :sync
end

私の場合、いつもec2-user:ec2-user想定なのでグループにもcurrent_user使っています。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1