]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Vagrant: shell provisioner to keep the system updated
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 12 Feb 2014 16:30:45 +0000 (14:30 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 12 Feb 2014 16:30:45 +0000 (14:30 -0200)
Vagrantfile

index a1cad3aac331a5149b39b33fc8a1343979e3c0c1..4748efd081c15613c860b6e36728b85d9bf3b6a6 100644 (file)
@@ -5,6 +5,9 @@ Vagrant::Config.run do |config|
   # Every Vagrant virtual environment requires a box to build off of.
   config.vm.box = "wheezy"
 
+  # Shell provisioner to keep the system updated.
+  config.vm.provision :shell, :inline => "sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove && sudo apt-get clean"
+
   # Enable provisioning with Puppet stand alone.
   config.vm.provision :puppet do |puppet|
     puppet.manifest_file  = "vagrant.pp"