zoukankan      html  css  js  c++  java
  • Saltstack module group 详解

    group.delete

    Remove the named group
    
    name
        Name group to delete
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.delete foo
    

    group.members

    Replaces members of the group with a provided list.
    
    name
        Name of the group to modify
    
    members_list
        Username list to set into the group
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.members foo 'user1,user2,user3,...'
    
    Replaces a membership list for a local group 'foo'.
        foo:x:1234:user1,user2,user3,...
    

    group.getent

    Return info on all groups
    
    refresh
        Force a refresh of group information
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.getent
    

    group.add

    Add the specified group
    
    name
        Name of the new group
    
    gid
        Use GID for the new group
    
    system
        Create a system account
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.add foo 3456
    

    group.deluser

    Remove a user from the group.
    
    name
        Name of the group to modify
    
    username
        Username to delete from the group
    
    root
        Directory to chroot into
    
    CLI Example:
    
         salt '*' group.deluser foo bar
    
    Removes a member user 'bar' from a group 'foo'. If group is not present
    then returns True.
    

    group.chgid

    Change the gid for a named group
    
    name
        Name of the group to modify
    
    gid
        Change the group ID to GID
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.chgid foo 4376
    

    group.adduser

    Add a user in the group.
    
    name
        Name of the group to modify
    
    username
        Username to add to the group
    
    root
        Directory to chroot into
    
    CLI Example:
    
         salt '*' group.adduser foo bar
    
    Verifies if a valid username 'bar' as a member of an existing group 'foo',
    if not then adds it.
    

    group.info

    Return information about a group
    
    name
        Name of the group
    
    root
        Directory to chroot into
    
    CLI Example:
    
        salt '*' group.info foo
  • 相关阅读:
    LOJ-10096(强连通+bfs)
    LOJ-10095(缩点的特殊使用)
    LOJ-10094(强连通分量)
    LOJ-10092(最大半连通子图)
    【BZOJ3489】A simple rmq problem(KD-Tree)
    UVA10384 推门游戏 The Wall Pushers(IDA*)
    [SCOI2005]骑士精神(IDA*)
    浅谈A*算法
    【模板】K-D Tree
    【XSY1953】【BZOJ4012】【HNOI2015】开店(动态点分治)
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_group.html
Copyright © 2011-2022 走看看