LoginSignup
10
10

More than 5 years have passed since last update.

htmlディレクトリをvagrantディレクトリのシンボリックリンクすにするcookbook

Last updated at Posted at 2014-04-26

vagrantを起動してcookした時に/var/www/html/vagrantのシンボリックリンクになっていると何かと楽なので作ってみました。

cookbookの該当箇所


directory '/var/www/html' do
  action :delete
  not_if { File.symlink?('/var/www/html') }
end

link "/var/www/html" do
    to "/vagrant"
    link_type :symbolic
end

参考ブログ参照しながら作業してたけど、少しずつChefのドキュメントが読めるようになってきた。慣れだな。

参考

10
10
6

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
10
10