mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
af2526a446
commit
f631a60d60
31
.vagrant-puppet/modules/apache/manifests/init.pp
Normal file
31
.vagrant-puppet/modules/apache/manifests/init.pp
Normal 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']
|
||||||
|
}
|
||||||
|
}
|
25
.vagrant-puppet/modules/php/manifests/init.pp
Normal file
25
.vagrant-puppet/modules/php/manifests/init.pp
Normal 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']
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user