Changeset 593


Ignore:
Timestamp:
Mar 14, 2010, 1:05:04 PM (12 years ago)
Author:
sebas@…
Message:

lo pongo en la clase webapps.pp + actualizacion de webapps.pp

Location:
trunk/puppet/manifests/classes
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/manifests/classes/webapps.pp

    r369 r593  
    1 class webapps-php {
    2 
    31# probando sobre debian lenny
    42## web apps php5/apache2/mysql
    53#
    64
     5class webapps-php {
     6
    77    package { [ "apache2-mpm-prefork" ]:  ensure => installed  }
    88
    9     package { [ "php5" ]: ensure => installed }
     9    package { [
     10        "php5",
     11        "php5-gd",
     12        "php5-mysql",
     13        "php5-mcrypt",
     14        "php5-cli",
     15        ]: ensure => installed
     16    }
    1017
    11     package { [ "php5-mysql", "php5-gd", "php5-mcrypt", "php5-cli" ]: ensure => installed }
     18    service { "apache2":
     19        enable    => true,
     20        ensure    => running,
     21        subscribe => [ Package[
     22            "apache2-mpm-prefork",
     23            "php5",
     24            "php5-gd",
     25            "php5-mcrypt",
     26            "php5-cli"] ],
     27    }
    1228
    1329#    include mysql-server
     30#    preseed_package { "phpmyadmin" : ensure => present }
     31}
    1432
    15 #    preseed_package { "phpmyadmin" : ensure => present }
     33class mysql-server {
    1634
     35    # TODO: set root password
     36    # http://reductivelabs.com/trac/puppet/wiki/Recipes/MySQLServer
     37    # http://github.com/camptocamp/puppet-mysql/tree
     38    # http://github.com/duritong/puppet-mysql/tree
     39    package { [ "mysql-server" ]: ensure => installed }
     40
     41    service { "mysql":
     42      ensure => running,
     43      enable => true,
     44      name => "mysql",
     45      require => Package["mysql-server"],
     46    }
    1747}
Note: See TracChangeset for help on using the changeset viewer.