Hi all,
I''m having problems making some manifest work, and it''s so
simple that I
don''t know where the issue is:
I get this error message when trying to load this vhost.pp file: "Could not
retrieve configuration: Syntax error at ''}'' in file
/etc/puppet/manifests/classes/vhost.pp at line 9"
define vhost ( $domain, $admin, $docroot, $enable ) {
$vhpath = "/etc/apache/coetc/apache/conf.dd/$domain.conf"
file { $vhpath:
require => File[$docroot],
content => template("vhost.erb"),
ensure => $enable ? {
true => present,
false => absent,
},
owner => root,
group => root,
mode => 640,
}
file { $docroot:
ensure => $enable ? {
"true" => directory,
"false" => absent,
}
}
}
Is there anything wrong with the selector? Debian Etch have puppet version
0.20.1
Thanks in advance
--
Lucas Di Pentima - http://lucas.di-pentima.com.ar
GnuPG Public Key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855 740C 8F98 3FCF 6AA5 4FC9
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
try to remove the last '','' before the closing } and see if this solve your issue...> > ensure => $enable ? { > "true" => directory, > "false" => absent, > }-- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Thanks Ghislain :-) it was a silly mistake indeed! 2007/10/4, ADNET Ghislain <gadnet@aqueos.com>:> > try to remove the last '','' before the closing } and see if this solve > your issue... > > > > ensure => $enable ? { > > "true" => directory, > > "false" => absent, > > } > > > -- > Cordialement, > Ghislain > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users > > >-- Lucas Di Pentima - http://lucas.di-pentima.com.ar GnuPG Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6AA54FC9 Key fingerprint = BD3B 08C4 661A 8C3B 1855 740C 8F98 3FCF 6AA5 4FC9 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users