diff --git a/.vagrant-puppet/modules/apache/manifests/init.pp b/.vagrant-puppet/modules/apache/manifests/init.pp new file mode 100644 index 000000000..a9ce981fd --- /dev/null +++ b/.vagrant-puppet/modules/apache/manifests/init.pp @@ -0,0 +1,31 @@ +# Class: apache +# +# This class installs the apache server. +# +# Parameters: +# +# Actions: +# +# Requires: +# +# Sample Usage: +# +# include apache +# +class apache { + + $apache = $::operatingsystem ? { + /(Debian|Ubuntu)/ => 'apache2', + /(RedHat|CentOS|Fedora)/ => 'httpd' + } + + package { $apache: + ensure => installed, + alias => 'apache' + } + + service { $apache: + ensure => running, + require => Package['apache'] + } +} diff --git a/.vagrant-puppet/modules/php/manifests/init.pp b/.vagrant-puppet/modules/php/manifests/init.pp new file mode 100644 index 000000000..f835554c5 --- /dev/null +++ b/.vagrant-puppet/modules/php/manifests/init.pp @@ -0,0 +1,25 @@ +# Class: php +# +# This class installs the php and php-mysql packages. +# +# Parameters: +# +# Actions: +# +# Requires: +# +# Sample Usage: +# +# include php +# +class php { + + package { 'php': + ensure => installed + } + + package { 'php-mysql': + ensure => installed, + require => Package['mysql-server'] + } +}