FAQ
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedOct 30, '12 at 1:59p
activeNov 6, '12 at 6:06p
posts4
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase