Evoadmin-mail is a Web Interface for manage an LDAP directory designed for mail accounts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Vagrantfile 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
  4. # Load ~/.VagrantFile if exist, permit local config provider
  5. vagrantfile = File.join("#{Dir.home}", '.VagrantFile')
  6. load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
  7. Vagrant.configure('2') do |config|
  8. config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git', 'config/config.ini' ]
  9. config.ssh.shell="/bin/sh"
  10. config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
  11. config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true
  12. $deps = <<SCRIPT
  13. sed -e '/Rewrite/ s/^#*/#/' -i /etc/apache2/sites-available/evoadminmail.conf
  14. service apache2 reload
  15. [ -d /home/evoadmin-mail/www/htdocs/config ] && php /vagrant/scripts/config-migrate.php > /vagrant/config/config.ini
  16. chmod 644 /vagrant/config/config.ini
  17. chown vagrant:vagrant /vagrant/config/config.ini
  18. rm -rf /home/evoadmin-mail/www/
  19. ln -s /vagrant/ /home/evoadmin-mail/www
  20. SCRIPT
  21. config.vm.define :packmail do |node|
  22. node.vm.hostname = "evoadmin-mail.example.com"
  23. node.vm.box = "evolix/packmail"
  24. node.vm.provision "deps", type: "shell", :inline => $deps
  25. end
  26. end