Vagrant: Add automated provisioning of Apache2 and PHP5.3

refs #4232
This commit is contained in:
Eric Lippmann 2013-05-29 17:36:53 +02:00
parent af2526a446
commit f631a60d60
2 changed files with 56 additions and 0 deletions

View File

@ -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']
}
}

View File

@ -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']
}
}