All pastes #952107 Raw Edit

Anonymous

public text v1 · immutable
#952107 ·published 2008-03-21 22:07 UTC
rendered paste body
#works not
gentoo::etcconfd { foobar: } 
#works
gentoo::etcconfd { apache2: require => "Package[apache]", notify => "Service[apache]"} 

define gentoo::etcconfd (
    $require = '',
    $notify = ''
){
    file { "/etc/conf.d/${name}":
        owner => "root",
        group => "0",
        mode  => 644,
        source => [
            "puppet://$server/dist/gentoo/etc_conf.d/${name}_${fqdn}",
            "puppet://$server/dist/gentoo/etc_conf.d/${name}_default",
            "puppet://$server/gentoo/etc_conf.d/${name}"
        ],
        require => $require,
        notify => $notify,
    }
}

#Error I get:
err: Could not create /etc/conf.d/foobar: Parameter require failed: interning empty string