Re: New Syntax Error after upgrading to 0.20

Paul Ortman
2006-10-26T21:51:59Z

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Ortman wrote:
> I had a working 0.19.3 puppet install, but after an upgrade to 0.20 and
> then restarting puppetmasterd I get the following error.

Well the last one was easy to solve, let''s hope this one is as well...

I now get an error when I try to import sections of my configuration
files.  Namely, the first thing I do in my site.pp is include a
"common_functions" config file.  This seems to want to double-include
the file, or at least that seems...

site.pp:

 1 import "global_functions.pp"

global_functions.pp:

 1 filebucket { main:
 2    server => "puppet"
 3 }
 4
 5 define remotefile($source, $owner = root, $group = root, $mode = 440,
$recurse = true, $backup = main, $replace = true ) {
 6    file { $name:
 7       source => "puppet://puppet/files/$source",
 8       backup => $backup,
 9       owner => $owner,
10       group => $group,
11       mode => $mode,
12       recurse => $recurse,
13       replace => $replace
14    }
15 }

The error I get with the above configs is:

puppet # puppetd --server puppet --test
err: Could not retrieve configuration: Duplicate definition:
filebucket[main] is already defined in file
/etc/puppet/manifests/global_functions.pp at line 3; cannot redefine in
file /etc/puppet/manifests/global_functions.pp at line 3
warning: Not using cache on failed configuration


About the only interesting thing is that /etc/puppet/manifests is a
symlink into bzr repository in /var/lib/puppetmaster/manifests/, but
that doesn''t seem to be the problem.

Thanks for all your help,

- --
Paul Ortman

PGP Key: 55602C81
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFQS3/fw8KGlVgLIERAhZwAJ9QKHy7jSgbQ+Zczb+8y+4hCqTXzACffuy5
XY+fdgUQbjbGiV9WNgQl5Nw=q20f
-----END PGP SIGNATURE-----