On Monday, November 3, 2014 5:16:29 AM UTC-6, Andreas Dvorak wrote:
>
> Dear all,
>
> I have a modul accounts to create user. That is working fine. Today I 
> would like to remove a user but it does not work.
> Unfortunately I don't understand the error. Can you please have a look?
>
> Error: No command localdelete defined for provider 
> Error: 
> /Stage[main]/Accounts/Accounts::Virtual[testuser]/User[testuser]/ensure: 
> change from present to absent failed: No command localdelete defined for 
> provider 
>
> cat init.pp
> class accounts {
>   @accounts::virtual { 'testuser':
>     ensure => absent,
>     comment  => 'testuser',
>     uid      => '1000',
>     gid      => '1000',
>     group    => 'testuser',
>   }
> ....
> }
>
> define accounts::virtual (
>   $ensure        = present,
>   $comment       = undef,
>   $uid           = undef,
>   $home          = undef,
>   $group         = undef,
>   $gid           = undef,
>   $password      = undef,
>   $shell         = '/bin/bash',
>   $sshkeytype    = 'rsa',
>   $sshkey        = undef,
>   $sol10_profile = undef,
>   $sol11_profile = undef,
>   ) {
>   include accounts::groups
>
>   $username = $title
>
>   user { $username:
>     ensure     => $ensure,
>     comment    => $comment,
>     uid        => $uid,
>     gid        => $gid,
>     shell      => $shell,
>     home       => $home_dir,
>     managehome => true,
>     forcelocal => true,
>     password   => $password,
>   }
> ....
> }
>
> Best regards,
> Andreas
>


It looks like the 'provider' chosen for the User type on the affected 
node(s) does not support deleting (local) users.  That could be a bug, but 
it might just be a limitation of the node's environment.  What is the 
node's OS?


John

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9aae91e5-88a9-41b7-9169-987bd2873c4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to