salt.modules.groupadd

Manage groups on Linux

Members

add

salt.modules.groupadd.add(name, gid=None, system=False)

Add the specified group

CLI Example:

salt '*' group.add foo 3456

chgid

salt.modules.groupadd.chgid(name, gid)

Change the gid for a named group

CLI Example:

salt '*' group.chgid foo 4376

delete

salt.modules.groupadd.delete(name)

Remove the named group

CLI Example:

salt '*' group.delete foo

getent

salt.modules.groupadd.getent()

Return info on all groups

CLI Example:

salt '*' group.getent

info

salt.modules.groupadd.info(name)

Return information about a group

CLI Example:

salt '*' group.info foo

Parent topic

Table Of Contents

Previous topic

salt.modules.grains

Next topic

salt.modules.grub