From a882f52b3f0ef4ee63dbbfa6742954e4faffc316 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 13 Mar 2022 21:56:59 +0900 Subject: [PATCH] Delete `shared_dir.rb`. --- cookbooks/nomad/default.rb | 2 -- cookbooks/nomad/shared_dir.rb | 19 ------------------- 2 files changed, 21 deletions(-) delete mode 100644 cookbooks/nomad/shared_dir.rb diff --git a/cookbooks/nomad/default.rb b/cookbooks/nomad/default.rb index df2a768..6da52cd 100644 --- a/cookbooks/nomad/default.rb +++ b/cookbooks/nomad/default.rb @@ -5,6 +5,4 @@ include_recipe './install.rb' if node['nomad']['manager'] || node['nomad']['client'] include_recipe './setup.rb' include_recipe './csi.rb' - - include_recipe './shared_dir.rb' end diff --git a/cookbooks/nomad/shared_dir.rb b/cookbooks/nomad/shared_dir.rb deleted file mode 100644 index c40e4d1..0000000 --- a/cookbooks/nomad/shared_dir.rb +++ /dev/null @@ -1,19 +0,0 @@ -%w( /mnt/shared ).each do |d| - directory d do - owner 'root' - group 'root' - end -end - -# Add the fstab entry: -file '/etc/fstab' do - action :edit - - block do |content| - content << "//192.168.10.200/Shared/AppData /mnt/shared cifs username=admin,password=Holiday88,uid=root,gid=root,file_mode=0777,dir_mode=0777,vers=3.0,_netdev 0 0\n" - end - - not_if 'grep shared /etc/fstab' -end - -execute 'mount -a || true'