Vagrantfile 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  4. VAGRANTFILE_API_VERSION = "2"
  5. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  6. # All Vagrant configuration is done here. The most common configuration
  7. # options are documented and commented below. For a complete reference,
  8. # please see the online documentation at vagrantup.com.
  9. # Every Vagrant virtual environment requires a box to build off of.
  10. config.vm.box = "rchouinard/oracle-uek-65-x64"
  11. config.vm.box_version = "1.0.0"
  12. # The url from where the 'config.vm.box' box will be fetched if it
  13. # doesn't already exist on the user's system.
  14. #config.vm.box_url = "https://dl.dropboxusercontent.com/s/yg9ceak6zd86wk7/centos-6.4-x86_64.box"
  15. # Create a forwarded port mapping which allows access to a specific port
  16. # within the machine from a port on the host machine. In the example below,
  17. # accessing "localhost:8080" will access port 80 on the guest machine.
  18. config.vm.hostname = "vagrantcentos64.example.com"
  19. config.vm.network :forwarded_port, guest: 7001, host: 7001, auto_correct: true
  20. # Create a private network, which allows host-only access to the machine
  21. # using a specific IP.
  22. # config.vm.network :private_network, ip: "192.168.33.10"
  23. # Create a public network, which generally matched to bridged network.
  24. # Bridged networks make the machine appear as another physical device on
  25. # your network.
  26. # config.vm.network :public_network
  27. # If true, then any SSH connections made will enable agent forwarding.
  28. # Default value: false
  29. # config.ssh.forward_agent = true
  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. # # Don't boot with headless mode
  41. # vb.gui = true
  42. #
  43. # Use VBoxManage to customize the VM. For example to change memory:
  44. vb.customize ["modifyvm", :id, "--memory", "4048"]
  45. end
  46. #
  47. # View the documentation for the provider you're using for more
  48. # information on available options.
  49. # Enable provisioning with Puppet stand alone. Puppet manifests
  50. # are contained in a directory path relative to this Vagrantfile.
  51. # You will need to create the manifests directory and a manifest in
  52. # the file base.pp in the manifests_path directory.
  53. #
  54. # An example Puppet manifest to provision the message of the day:
  55. #
  56. # # group { "puppet":
  57. # # ensure => "present",
  58. # # }
  59. # #
  60. # # File { owner => 0, group => 0, mode => 0644 }
  61. # #
  62. # # file { '/etc/motd':
  63. # # content => "Welcome to your Vagrant-built virtual machine!
  64. # # Managed by Puppet.\n"
  65. # # }
  66. #
  67. config.vm.provision :puppet do |puppet|
  68. puppet.manifests_path = "puppet/manifests"
  69. puppet.module_path = "puppet/modules"
  70. puppet.manifest_file = "site.pp"
  71. puppet.options = "--verbose"
  72. end
  73. # Enable provisioning with chef solo, specifying a cookbooks path, roles
  74. # path, and data_bags path (all relative to this Vagrantfile), and adding
  75. # some recipes and/or roles.
  76. #
  77. # config.vm.provision :chef_solo do |chef|
  78. # chef.cookbooks_path = "../my-recipes/cookbooks"
  79. # chef.roles_path = "../my-recipes/roles"
  80. # chef.data_bags_path = "../my-recipes/data_bags"
  81. # chef.add_recipe "mysql"
  82. # chef.add_role "web"
  83. #
  84. # # You may also specify custom JSON attributes:
  85. # chef.json = { :mysql_password => "foo" }
  86. # end
  87. # Enable provisioning with chef server, specifying the chef server URL,
  88. # and the path to the validation key (relative to this Vagrantfile).
  89. #
  90. # The Opscode Platform uses HTTPS. Substitute your organization for
  91. # ORGNAME in the URL and validation key.
  92. #
  93. # If you have your own Chef Server, use the appropriate URL, which may be
  94. # HTTP instead of HTTPS depending on your configuration. Also change the
  95. # validation key to validation.pem.
  96. #
  97. # config.vm.provision :chef_client do |chef|
  98. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  99. # chef.validation_key_path = "ORGNAME-validator.pem"
  100. # end
  101. #
  102. # If you're using the Opscode platform, your validator client is
  103. # ORGNAME-validator, replacing ORGNAME with your organization name.
  104. #
  105. # If you have your own Chef Server, the default validation client name is
  106. # chef-validator, unless you changed the configuration.
  107. #
  108. # chef.validation_client_name = "ORGNAME-validator"
  109. end