Last change
on this file since 764 was
612,
checked in by josx@…, 15 years ago
|
Arreglando problemas por usar diferentes versiones de puppet(coma en el ultimo elemento de un array y envio de multiples elemetos en vez de array )
|
File size:
1018 bytes
|
Line | |
---|
1 | # probando sobre debian lenny |
---|
2 | ## web apps php5/apache2/mysql |
---|
3 | # |
---|
4 | |
---|
5 | class webapps-php { |
---|
6 | |
---|
7 | package { [ "apache2-mpm-prefork" ]: ensure => installed } |
---|
8 | package { [ "php5", |
---|
9 | "php5-gd", |
---|
10 | "php5-mysql", |
---|
11 | "php5-mcrypt", |
---|
12 | "php5-cli" ]: ensure => installed } |
---|
13 | |
---|
14 | service { "apache2": |
---|
15 | enable => true, |
---|
16 | ensure => running, |
---|
17 | subscribe => [ Package["apache2-mpm-prefork"], |
---|
18 | Package["php5"], |
---|
19 | Package["php5-gd"], |
---|
20 | Package["php5-mcrypt"], |
---|
21 | Package["php5-cli"] ] |
---|
22 | } |
---|
23 | |
---|
24 | # include mysql-server |
---|
25 | # preseed_package { "phpmyadmin" : ensure => present } |
---|
26 | } |
---|
27 | |
---|
28 | class mysql-server { |
---|
29 | |
---|
30 | # TODO: set root password |
---|
31 | # http://reductivelabs.com/trac/puppet/wiki/Recipes/MySQLServer |
---|
32 | # http://github.com/camptocamp/puppet-mysql/tree |
---|
33 | # http://github.com/duritong/puppet-mysql/tree |
---|
34 | package { [ "mysql-server" ]: ensure => installed } |
---|
35 | |
---|
36 | service { "mysql": |
---|
37 | ensure => running, |
---|
38 | enable => true, |
---|
39 | name => "mysql", |
---|
40 | require => Package["mysql-server"], |
---|
41 | } |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.