--- a/contrib/Vagrantfile Tue Mar 22 19:52:35 2016 +0800
+++ b/contrib/Vagrantfile Tue Mar 22 20:54:38 2016 +0800
config.vm.network "private_network", ip: "192.168.33.111"
config.vm.network "forwarded_port", guest: 443, host: 21443
- # disabled because we don't need it
- config.vm.synced_folder ".", "/vagrant", disabled: true
- # disabled because user/group don't exist on the first run yet
- config.vm.synced_folder "..", "/home/tram-im/tram-im/", owner: "tram-im", group: "tram-im", mount_options: ["dmode=755,fmode=644"], disabled: true
+ config.vm.synced_folder "..", "/vagrant", mount_options: ["dmode=755,fmode=644"]
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cpus", "1"]
--- a/contrib/provision/roles/tram-im/tasks/main.yml Tue Mar 22 19:52:35 2016 +0800
+++ b/contrib/provision/roles/tram-im/tasks/main.yml Tue Mar 22 20:54:38 2016 +0800
-- include: appinstall.yml dir=/home/tram-im/tram-im/
+- include: appinstall.yml
+ sudo_user: '{{ user }}'
- name: Add Prosody VirtualHost
template: src=etc/prosody/conf.avail/tram-im.cfg.lua dest=/etc/prosody/conf.avail/{{ domain }}.cfg.lua
--- a/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Tue Mar 22 19:52:35 2016 +0800
+++ b/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Tue Mar 22 20:54:38 2016 +0800
- root /home/tram-im/tram-im;
--- a/contrib/provision/roles/tram-im/vars/main.yml Tue Mar 22 19:52:35 2016 +0800
+++ b/contrib/provision/roles/tram-im/vars/main.yml Tue Mar 22 20:54:38 2016 +0800
ssl_cert: /etc/ssl/selfsigned/{{ domain }}/selfsigned.pem
ssl_key: /etc/ssl/selfsigned/{{ domain }}/clean.key