Hi, ppl,

I m following the puppet cookbook tutorial. On page 167 to 169 Managing 
Apache Servers. When I add the:

apache::snippet { "site-specific.conf": }

I got the error of the title: Could not parse for environment production: 
Syntax error at '{'; expected '}' at /etc/puppet/manifests/nodes.pp:3.

Here is my manifests

node.pp
/etc/puppet/manifests/node.pp

node 'thegrid.geofusion' {
include apache
include apache::snippet { site-test.conf },
}

init.pp
/etc/puppet/modules/apache/manifests/init.pp

class apache {

    package { "apache2-mpm-prefork": ensure => installed }

    service { "apache2":
        enable  => true,
        ensure  => running,
        require => Package["apache2-mpm-prefork"],
    }

    file { "/etc/apache2/logs":
        ensure  => directory,
        require => Package["apache2-mpm-prefork"],
    }

    file { "/etc/apache2/conf.d/name-based-vhosts.conf":
        content => "NameVirtualHost *:80",
        require => Package["apache2-mpm-prefork"],
        notify  => Service["apache2"],
    }

    define snippet() {
        file { "/etc/apache2/conf.d/${name}":
            source => "puppet:///modules/apache/${name}",
            notify => Service["apache2"],
        }
    }
}





-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/T5Fu4pZlakMJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to