Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Add requirements and fixes for libvirt NFS for shared folders
Browse files Browse the repository at this point in the history
fixes #152
  • Loading branch information
Michael Friedrich committed Jun 3, 2018
1 parent 31f6e28 commit 3b79605
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ $ sudo apt-get install vagrant
$ sudo apt-get install virtualbox
```

### libvirt <a id="requirements-linux-libvirt"></a>

libvirt uses NFS for shared folders in the VMs, `nfs_udp: false` is already [set](https://github.com/Icinga/icinga-vagrant/issues/152).

`nfs3` needs to be enabled in your local firewall to allow connections.

```
# firewall-cmd --permanent --add-service=nfs3
# firewall-cmd --reload
```

## macOS <a id="requirements-macOS"></a>

macOS runs best with the Parallels provider, VirtualBox works as well.
Expand Down
4 changes: 2 additions & 2 deletions distributed/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down
4 changes: 2 additions & 2 deletions elastic/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down
4 changes: 2 additions & 2 deletions env/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down
4 changes: 2 additions & 2 deletions graylog/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down
4 changes: 2 additions & 2 deletions influxdb/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down
4 changes: 2 additions & 2 deletions standalone/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

if options[:synced_folders]
options[:synced_folders].each_pair do |source, target|
node_config.vm.synced_folder source, target
node_config.vm.synced_folder source, target, nfs_udp: false
end
end

Expand Down Expand Up @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh"

# sync generic hiera data
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata"
node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false

# provisioner: install box using puppet manifest
node_config.vm.provision :puppet do |puppet|
Expand Down

0 comments on commit 3b79605

Please sign in to comment.