Skip to content

Instantly share code, notes, and snippets.

@okisanjp
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save okisanjp/ffc1ad9de1788fc2c733 to your computer and use it in GitHub Desktop.

Select an option

Save okisanjp/ffc1ad9de1788fc2c733 to your computer and use it in GitHub Desktop.
Chef-solo:レシピの中でChef実行中のユーザー名を使う ref: http://qiita.com/okisanjp/items/b039e2da328b21836bdc
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment