Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

102 wiersze
3.9 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/stretch64"
  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. config.vm.synced_folder "ansible", "/root"
  36. # Provider-specific configuration so you can fine-tune various
  37. # backing providers for Vagrant. These expose provider-specific options.
  38. # Example for VirtualBox:
  39. #
  40. # config.vm.provider "virtualbox" do |vb|
  41. # # Display the VirtualBox GUI when booting the machine
  42. # vb.gui = true
  43. #
  44. # # Customize the amount of memory on the VM:
  45. # vb.memory = "1024"
  46. # end
  47. #
  48. # View the documentation for the provider you are using for more
  49. # information on available options.
  50. # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
  51. # such as FTP and Heroku are also available. See the documentation at
  52. # https://docs.vagrantup.com/v2/push/atlas.html for more information.
  53. # config.push.define "atlas" do |push|
  54. # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
  55. # end
  56. # Enable provisioning with a shell script. Additional provisioners such as
  57. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  58. # documentation for more information about their specific syntax and use.
  59. # config.vm.provision "shell", inline: <<-SHELL
  60. # sudo apt-get update
  61. # sudo apt-get install -y apache2
  62. # SHELL
  63. config.vm.provision "ansible" do |ansible|
  64. ansible.playbook = "ansible/ispmail.yml"
  65. ansible.sudo = true
  66. #ansible.become = true
  67. #ansible.become_user = 'root'
  68. #ansible.compatibility_mode = '2.0'
  69. #ansible.verbose = 'vvv'
  70. end
  71. config.vm.provider "virtualbox" do |vb|
  72. #config.vm.network "private_network", :type => 'dhcp', :name => 'vboxnet0', :adapter => 2
  73. config.vm.network "private_network", ip: "10.0.0.100"
  74. end
  75. # HTTP
  76. config.vm.network "forwarded_port", guest: 80, host: 10080
  77. # HTTPS
  78. config.vm.network "forwarded_port", guest: 443, host: 10443
  79. # LDAP
  80. config.vm.network "forwarded_port", guest: 143, host: 10143
  81. # POP3
  82. config.vm.network "forwarded_port", guest: 110, host: 10110
  83. # SMTP
  84. config.vm.network "forwarded_port", guest: 25, host: 10025
  85. # Submission
  86. config.vm.network "forwarded_port", guest: 587, host: 10587
  87. end