summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile
index c328423..913230a 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -4,6 +4,17 @@
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
+$provision = <<EOS
+export DEBIAN_FRONTEND=noninteractive
+apt-get update
+apt-get upgrade -y
+apt-get install -y radicale
+
+sed -i 's,#\(ENABLE_RADICALE=yes\),\1,g' /etc/default/radicale
+/etc/init.d/radicale start
+
+EOS
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
@@ -19,7 +30,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
- # config.vm.network "forwarded_port", guest: 80, host: 8080
+
+ # forward radicale port
+ config.vm.network "forwarded_port", guest: 5232, host: 5232
# Create a private network, which allows host-only access to the machine
# using a specific IP.
@@ -55,6 +68,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# View the documentation for the provider you're using for more
# information on available options.
+ config.vm.provision "shell", inline: $provision
+
# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in