Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- VAGRANTFILE
- #
- # Vagrantfile per un singolo nodo (node), con Oracle Java.
- #
- VAGRANTFILE_API_VERSION = "2"
- Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
- # Configurazioni comuni.
- # Ubuntu trusty 64 VirtualBox.
- config.vm.box = "ubuntu/trusty64"
- # config.vm.box_url = "http://files.vagrantup.com/ubuntu/trusty64.box"
- # folder per le risorse condivise
- config.vm.synced_folder "www/", "/var/www/html", :mount_options => ["dmode=777", "fmode=777"]
- #
- # Configurazione del nodo "node", che prevede:
- # - Apache con php5
- #
- config.vm.define "node" do |node|
- node.vm.hostname = "node"
- node.vm.network "private_network", ip: "10.11.1.201", virtualbox__intnet: true
- node.vm.provider "virtualbox" do |v|
- v.memory = 1024
- end
- node.vm.network "forwarded_port", guest: 22, host: 2221, id: 'ssh', auto_correct: true
- node.vm.network "forwarded_port", guest: 80, host: 80, id: 'http', auto_correct: true
- node.ssh.forward_agent = true
- config.vm.provision :puppet do |puppet|
- puppet.manifests_path = "puppet/manifests"
- puppet.manifest_file = "init.pp"
- end
- end
- end
- -----------------------------------
- init.pp
- package { ['apache2', 'libapache2-mod-php5']:
- ensure => present;
- }
- service { 'apache2':
- ensure => running,
- require => Package['apache2'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement