I am trying to add ability to add virtual users to 
the git://github.com/erwbgy/puppet-system.git module as I really want the 
ability to use virtual users and then combine that with "User <| group == 
'x' and group == 'y' |>" way of realizing the users. This is much more 
flexible than what I can do with this module out of the box.

Using the pattern in that module, I tried to do this:

class system::virt_users (
  $config = undef
) {
  if $config {
    $defaults = {
      ensure => 'present',
      managehome => true,
      shell  => '/bin/bash'
    }
    create_resources(@user, $config, $defaults)
  }
}


But that gives me syntax error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Syntax error at '@'; expected ')' at 
/etc/puppet/modules/system/manifests/virt_users.pp:10 on node ......

So I tried putting @user in quotes but that also generated syntax error 
(could not create resource of unknown type @user).

So is there a create_virtual_resource function or some other trick to do 
this?

Thanks,

Rajul

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/-ILmxaJxEBcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to