LoginSignup
2
2

More than 5 years have passed since last update.

kitchen-vagrantでプロビジョニングしたゲストマシンとrsyncで同期する.kitchen.ymlの書き方

Posted at
  • test-kitchen (1.3.1),kitchen-vagrant (0.15.0)で確認
kitchen.yml
diff --git a/.kitchen.yml b/.kitchen.yml
index 204f7fd..4c733d7 100644
--- a/.kitchen.yml
+++ b/.kitchen.yml
@@ -4,7 +4,7 @@ driver:
     cpus: 2
     memory: 4096
   synced_folders:
-    - ['.', '/path/to']
+    - ['.', '/path/to', 'type: "rsync", rsync__exclude: [".git/", "vendor/"]']
  • synced_foldersの設定の3つめの引数の中にtype: "rsync"のような形で書けます
  • さらに同期したくないディレクトリをrsync__excludeに指定もできます
  • 同期されるのははホスト -> ゲストへの1方向のみのようです
2
2
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
2
2