FAQ
Please help.
I using virtual resource @user and @group.

If i using next construction i get error with cycles
class users {
Group <| ENABLED_GROUPS |> -> User <| ENABLED_USERS' |> -> User
<| DISABLED_USERS' |> -> Group <| DISABLED_GROUPS |>
}

This construction good, but puppet don't want change gid before delete
vacant group.
class users {
Group <| ENABLED_GROUPS |> -> User <| ENABLED_USERS' |>
User <| DISABLED_USERS' |> -> Group <| DISABLED_GROUPS |>
}


I think, firstly, gid must apply to user. Then delete vacant group.

I got error
Notice: /Stage[main]/Users::Groups_list/Group[shvakov]/ensure: created
Notice: /Stage[main]/Users::Groups_list/Group[developers]/ensure: removed

Error: Could not delete group admins: Execution of '/usr/sbin/groupdel
admins' returned 8: groupdel: cannot remove the primary group of user
'shvakov'
Error: /Stage[main]/Users::Groups_list/Group[admins]/ensure: change from
present to absent failed: Could not delete group admins: Execution of
'/usr/sbin/groupdel admins' returned 8: groupdel: cannot remove the primary
group of user 'shvakov'

Notice: /Stage[main]/Users::Users_list/User[shvakov]/gid: gid changed
'1888800000' to '10110'
Notice: Finished catalog run in 3.32 seconds

How change gid before delete group?


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 3 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 15, '13 at 7:26a
activeFeb 25, '13 at 10:23p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Vlados Vladosov: 2 posts Jcbollinger: 1 post

People

Translate

site design / logo © 2022 Grokbase