Pablo Virgo
2008-Sep-17 21:50 UTC
[Puppet Users] Syntax error at "user::virtual" in a simple Debian configuration
Hi there,
I''ve been working on a very simple puppet configuration to determine
whether it could be used in our office, and am attempting to work within
the best practices guide but have run into immediate difficulty.
The error I have looks like this:
$ puppetmasterd --verbose
info: Starting server for Puppet version 0.20.1
Syntax error at ''user::virtual'' in
file /etc/puppet/modules/user/itstaff.pp at line 3
itstaff.pp reads:
# itstaff.pp
class user::itstaff inherits user::virtual {
# Realize our team members
realize(
User["..."],
User["..."],
User["..."]
)
}
(The names are simple unix names instead of dots...!)
there is also a virtual.pp file which reads:
# virtual.pp
# Unix user accounts managed by puppet instead of LDAP
class user::virtual {
@user { "...":
ensure => "present",
uid => "1001",
gid => "1001",
comment => "...",
home => "/home/...",
shell => "/bin/bash",
}
@user { "...":
ensure => "present",
uid => "1002",
gid => "1002",
comment => "...",
home => "/home/...",
shell => "/bin/bash",
}
@user { "...":
ensure => "present",
uid => "1003",
gid => "1003",
comment => "...",
home => "/home/...",
shell => "/bin/bash",
}
}
Both those files should be loading according to the line
import "/etc/puppet/modules/user/*"
in the site.pp file.
The entire setup consists of two machines (one client, one server) and
they were working with a slightly modified version of "The Simplest
Puppet Install Recipe" from the wiki. I''ve reviewed the tutorial,
best
practices, faq, and style guides without getting any new insights.
Am I missing something obvious? It seems like this is too simple a setup
to actually break.
Thanks,
~Pablo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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
-~----------~----~----~----~------~----~------~--~---
Peter Meier
2008-Sep-22 14:13 UTC
[Puppet Users] Re: Syntax error at "user::virtual" in a simple Debian configuration
Hi> $ puppetmasterd --verbose > info: Starting server for Puppet version 0.20.1 > Syntax error at ''user::virtual'' in > file /etc/puppet/modules/user/itstaff.pp at line 3your version iy heavily outdated. you might use the sid one. it''s more actual and stable enough. greets pete --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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 -~----------~----~----~----~------~----~------~--~---