All pastes #901513 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-12 18:44 UTC
rendered paste body
class mod_python {
    include webserver
    $mod_py = $operatingsystem ? {
        "Debian" => "libapache2-mod-python"
    }
    package {
        $mod_py:
        ensure => installed,
        alias => "mod_py",
        ;
    }
    file {
        "/etc/apache2/mods-enabled/mod_python.load":
        ensure => "../mods-available/mod_python.load",
#        notify => Exec['a2enmod mod_python']                                                                                                                                 
        ;
    }
    exec {
        "a2enmod mod_python":
        path => "/usr/sbin/",
        subscribe => File["/etc/apache2/mods-enabled/mod_python.load"],
        ;
    }
}