source: trunk/puppet/manifests/classes/webapps.pp @ 649

Last change on this file since 649 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
RevLine 
[367]1# probando sobre debian lenny
2## web apps php5/apache2/mysql
3#
4
[593]5class webapps-php {
6
[367]7    package { [ "apache2-mpm-prefork" ]:  ensure => installed  }
[612]8    package { [ "php5",
9                "php5-gd",
10                "php5-mysql",
11                "php5-mcrypt",
12                "php5-cli" ]: ensure => installed  }
[367]13
[593]14    service { "apache2":
15        enable    => true,
16        ensure    => running,
[612]17        subscribe => [  Package["apache2-mpm-prefork"],
18                        Package["php5"],
19                        Package["php5-gd"],
20                        Package["php5-mcrypt"],
21                        Package["php5-cli"] ]
[593]22    }
[367]23
[369]24#    include mysql-server
25#    preseed_package { "phpmyadmin" : ensure => present }
[593]26}
[367]27
[593]28class 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    }
[367]42}
Note: See TracBrowser for help on using the repository browser.