Skip to content

Instantly share code, notes, and snippets.

@erikaheidi
Last active December 19, 2015 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikaheidi/5927345 to your computer and use it in GitHub Desktop.
Save erikaheidi/5927345 to your computer and use it in GitHub Desktop.
Basic puppet manifest for installing Apache
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
class system-update {
exec { 'apt-get update':
command => 'apt-get update',
}
$sysPackages = [ "build-essential" ]
package { $sysPackages:
ensure => "installed",
require => Exec['apt-get update'],
}
}
class apache {
package { "apache2":
ensure => present,
require => Class["system-update"],
}
service { "apache2":
ensure => "running",
require => Package["apache2"],
}
}
include apache
include system-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment