O'Reilly logo

Creating Development Environments with Vagrant by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing e-mail

Because some of our projects might involve sending e-mails, we should install e-mail sending services on our virtual machine, and we should set these to automatically run when the server boots up, as follows:

class mail {

  package { "postfix":
    ensure => present
  }

  package { "mailutils":
    ensure => present
  }

  exec { 'autostartmail':
    command => '/usr/sbin/update-rc.d postfix defaults',
    require => Package['postfix']
  }

}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required