Last active
December 19, 2015 08:39
-
-
Save erikaheidi/5927345 to your computer and use it in GitHub Desktop.
Basic puppet manifest for installing Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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