Advertisement
tessomc

Vagrantfile

Apr 25th, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  5. VAGRANTFILE_API_VERSION = "2"
  6.  
  7. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  8.  
  9. config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
  10. config.vm.provision :shell, :path => "initial_setup.sh"
  11.  
  12. config.vm.box = "hashicorp/precise64"
  13.  
  14. config.vm.synced_folder "development/wildfly", "/usr/local/wildfly-8.0.0.Final"
  15. config.vm.synced_folder "development/project", "/home/vagrant/repository"
  16.  
  17. # Disable automatic box update checking. If you disable this, then
  18. # boxes will only be checked for updates when the user runs
  19. # `vagrant box outdated`. This is not recommended.
  20. config.vm.box_check_update = true
  21.  
  22. # Create a forwarded port mapping which allows access to a specific port
  23. # within the machine from a port on the host machine. In the example below,
  24. # accessing "localhost:8080" will access port 80 on the guest machine.
  25. # config.vm.network "forwarded_port", guest: 80, host: 8080
  26. config.vm.network "forwarded_port", guest: 8080, host: 8081
  27. config.vm.network "forwarded_port", guest: 9990, host: 9991
  28. config.vm.network "forwarded_port", guest: 9000, host: 9001
  29. config.vm.network "forwarded_port", guest: 3306, host: 3306
  30.  
  31. # Create a private network, which allows host-only access to the machine
  32. # using a specific IP.
  33. # config.vm.network "private_network", ip: "192.168.33.10"
  34.  
  35. # Create a public network, which generally matched to bridged network.
  36. # Bridged networks make the machine appear as another physical device on
  37. # your network.
  38. # config.vm.network "public_network"
  39.  
  40. # If true, then any SSH connections made will enable agent forwarding.
  41. # Default value: false
  42. # config.ssh.forward_agent = true
  43.  
  44. # Share an additional folder to the guest VM. The first argument is
  45. # the path on the host to the actual folder. The second argument is
  46. # the path on the guest to mount the folder. And the optional third
  47. # argument is a set of non-required options.
  48. # config.vm.synced_folder "../data", "/vagrant_data"
  49.  
  50. # Provider-specific configuration so you can fine-tune various
  51. # backing providers for Vagrant. These expose provider-specific options.
  52. # Example for VirtualBox:
  53. #
  54. # config.vm.provider "virtualbox" do |vb|
  55. # # Don't boot with headless mode
  56. # vb.gui = true
  57. #
  58. # # Use VBoxManage to customize the VM. For example to change memory:
  59. # vb.customize ["modifyvm", :id, "--memory", "1024"]
  60. # end
  61. #
  62. # View the documentation for the provider you're using for more
  63. # information on available options.
  64.  
  65. # Enable provisioning with CFEngine. CFEngine Community packages are
  66. # automatically installed. For example, configure the host as a
  67. # policy server and optionally a policy file to run:
  68. #
  69. # config.vm.provision "cfengine" do |cf|
  70. # cf.am_policy_hub = true
  71. # # cf.run_file = "motd.cf"
  72. # end
  73. #
  74. # You can also configure and bootstrap a client to an existing
  75. # policy server:
  76. #
  77. # config.vm.provision "cfengine" do |cf|
  78. # cf.policy_server_address = "10.0.2.15"
  79. # end
  80.  
  81. # Enable provisioning with Puppet stand alone. Puppet manifests
  82. # are contained in a directory path relative to this Vagrantfile.
  83. # You will need to create the manifests directory and a manifest in
  84. # the file default.pp in the manifests_path directory.
  85. #
  86. # config.vm.provision "puppet" do |puppet|
  87. # puppet.manifests_path = "manifests"
  88. # puppet.manifest_file = "site.pp"
  89. # end
  90.  
  91. # Enable provisioning with chef solo, specifying a cookbooks path, roles
  92. # path, and data_bags path (all relative to this Vagrantfile), and adding
  93. # some recipes and/or roles.
  94. #
  95. # config.vm.provision "chef_solo" do |chef|
  96. # chef.cookbooks_path = "../my-recipes/cookbooks"
  97. # chef.roles_path = "../my-recipes/roles"
  98. # chef.data_bags_path = "../my-recipes/data_bags"
  99. # chef.add_recipe "mysql"
  100. # chef.add_role "web"
  101. #
  102. # # You may also specify custom JSON attributes:
  103. # chef.json = { :mysql_password => "foo" }
  104. # end
  105.  
  106. # Enable provisioning with chef server, specifying the chef server URL,
  107. # and the path to the validation key (relative to this Vagrantfile).
  108. #
  109. # The Opscode Platform uses HTTPS. Substitute your organization for
  110. # ORGNAME in the URL and validation key.
  111. #
  112. # If you have your own Chef Server, use the appropriate URL, which may be
  113. # HTTP instead of HTTPS depending on your configuration. Also change the
  114. # validation key to validation.pem.
  115. #
  116. # config.vm.provision "chef_client" do |chef|
  117. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  118. # chef.validation_key_path = "ORGNAME-validator.pem"
  119. # end
  120. #
  121. # If you're using the Opscode platform, your validator client is
  122. # ORGNAME-validator, replacing ORGNAME with your organization name.
  123. #
  124. # If you have your own Chef Server, the default validation client name is
  125. # chef-validator, unless you changed the configuration.
  126. #
  127. # chef.validation_client_name = "ORGNAME-validator"
  128. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement