Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

98 lignes
3.7 KiB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  4. # configures the configuration version (we support older styles for
  5. # backwards compatibility). Please don't change it unless you know what
  6. # you're doing.
  7. Vagrant.configure(2) do |config|
  8. # The most common configuration options are documented and commented below.
  9. # For a complete reference, please see the online documentation at
  10. # https://docs.vagrantup.com.
  11. # Every Vagrant development environment requires a box. You can search for
  12. # boxes at https://atlas.hashicorp.com/search.
  13. #config.vm.box = "jessie64"
  14. config.vm.box = "debian/jessie64"
  15. # Disable automatic box update checking. If you disable this, then
  16. # boxes will only be checked for updates when the user runs
  17. # `vagrant box outdated`. This is not recommended.
  18. # config.vm.box_check_update = false
  19. # Create a forwarded port mapping which allows access to a specific port
  20. # within the machine from a port on the host machine. In the example below,
  21. # accessing "localhost:8080" will access port 80 on the guest machine.
  22. # config.vm.network "forwarded_port", guest: 80, host: 8080
  23. # Create a private network, which allows host-only access to the machine
  24. # using a specific IP.
  25. # config.vm.network "private_network", ip: "192.168.33.10"
  26. # Create a public network, which generally matched to bridged network.
  27. # Bridged networks make the machine appear as another physical device on
  28. # your network.
  29. # config.vm.network "public_network"
  30. # Share an additional folder to the guest VM. The first argument is
  31. # the path on the host to the actual folder. The second argument is
  32. # the path on the guest to mount the folder. And the optional third
  33. # argument is a set of non-required options.
  34. # config.vm.synced_folder "../data", "/vagrant_data"
  35. # Provider-specific configuration so you can fine-tune various
  36. # backing providers for Vagrant. These expose provider-specific options.
  37. # Example for VirtualBox:
  38. #
  39. # config.vm.provider "virtualbox" do |vb|
  40. # # Display the VirtualBox GUI when booting the machine
  41. # vb.gui = true
  42. #
  43. # # Customize the amount of memory on the VM:
  44. # vb.memory = "1024"
  45. # end
  46. #
  47. # View the documentation for the provider you are using for more
  48. # information on available options.
  49. # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
  50. # such as FTP and Heroku are also available. See the documentation at
  51. # https://docs.vagrantup.com/v2/push/atlas.html for more information.
  52. # config.push.define "atlas" do |push|
  53. # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
  54. # end
  55. # Enable provisioning with a shell script. Additional provisioners such as
  56. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  57. # documentation for more information about their specific syntax and use.
  58. # config.vm.provision "shell", inline: <<-SHELL
  59. # sudo apt-get update
  60. # sudo apt-get install -y apache2
  61. # SHELL
  62. config.vm.provision "ansible" do |ansible|
  63. ansible.playbook = "ispmail.yml"
  64. ansible.sudo = true
  65. #ansible.verbose = 'vvv'
  66. end
  67. config.vm.provider "virtualbox" do |vb|
  68. #config.vm.network "private_network", :type => 'dhcp', :name => 'vboxnet0', :adapter => 2
  69. config.vm.network "private_network", ip: "10.0.0.100"
  70. end
  71. # HTTP
  72. config.vm.network "forwarded_port", guest: 80, host: 1080
  73. # HTTPS
  74. config.vm.network "forwarded_port", guest: 443, host: 1443
  75. # LDAP
  76. config.vm.network "forwarded_port", guest: 143, host: 1143
  77. # POP3
  78. config.vm.network "forwarded_port", guest: 110, host: 1110
  79. # SMTP
  80. config.vm.network "forwarded_port", guest: 25, host: 1025
  81. # Submission
  82. config.vm.network "forwarded_port", guest: 587, host: 1587
  83. end