Hi,

I'm new to puppet and are setting up an environment for our Macs.

I've been creating a module that are creating a local admin on each 
computer. The user get created but I keep getting this error:
"Could not prefetch user provider 'directoryservice': undefined method `[]' 
for nil:NilClass"

The code in the module:

class createlocaladmin{

  user {

    'ladmin':

      ensure     => present,

      comment    => 'Local Admin',

      home       => '/Users/ladmin',

      gid        => '20',

      iterations => '21881',

      password   => 
'401e3aa796b3bfff2c8e929a003b727be1bd548aa0f0b0e131f0d11f3953162be210200a70872734a28be747a933e12e2458ffdcc60d209eab9e006a9f4042dc883148070e6e8ad05f4a5e5d44b$

      salt       => 
'0c3cd42b97d0b0df45542fcb5961a2920f2fd6204aa151bf08d762d9dd44fd0c',

      shell      => '/bin/bash',

      uid        => '404',

      notify     => Exec['Hide sub-500 users'],

  }


  exec {

    'Hide sub-500 users':

      command => "/usr/bin/defaults write 
/Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE",

      refreshonly => true,

  }


}



What am I missing here? :)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bf90588f-5370-4643-950f-eb1225c9c06d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to