FAQ

On Tue, 2012-10-30 at 06:19 -0700, Havary wrote:
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 },
}
apache::snippet isn't a class, so you don't use 'include' on it. You use
it the same as a native puppet type. Your node.pp should look like this:

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

--
Calvin Walton <calvin.walton@kepstin.ca>

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 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