Bug #3515
parseonly failure on user attribute
| Status: | Duplicate | Start date: | 04/07/2010 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Affected Puppet version: | 0.24.8 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
I added an attribute “group” to a user definition. Running puppet —parseonly file.pp returns OK But when client ran this error is encountered Apr 7 11:25:20 offbeat-dev-001 puppetd[26165]: Could not retrieve catalog: Invalid parameter ‘group’ for type ‘User’ at /var/puppet/offbeat/modules/offbeat-db-host/manifests/init.pp:48 on node offbeat-dev-001.offbeat-creations.com
Related issues
History
Updated by James Turnbull about 2 years ago
- Status changed from Unreviewed to Needs More Information
Firstly, “group” isn’t a supported attribute for user – “groups” is however. Please see:
http://docs.puppetlabs.com/references/stable/type.html#id310
Secondly, can you show the full manifest please?
Updated by mark foster about 2 years ago
I realize now that groups is not a valid attribute and should have used gid instead. However that does not make this bug invalid, because puppet —parseonly should have caught the invalid attribute right?
I can’t post the whole manifest but here is an example snippet. user { “blue”:
ensure => present,
comment => "Blue",
uid => 1992,
group => 1992,
groups => ["mysql","sudo"],
home => "/home/blue",
shell => "/bin/bash",
password => 'somehash'
}
Updated by Markus Roberts over 1 year ago
- Status changed from Needs More Information to Duplicate