Add kickstart.user functions
This commit is contained in:
14
docs/kickstart/print_with_separator.md
Normal file
14
docs/kickstart/print_with_separator.md
Normal file
@ -0,0 +1,14 @@
|
||||
# kickstart.print_with_separator separator [arguments...]
|
||||
|
||||
Print the list of `arguments` separated by `separator`
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```bash
|
||||
$ kickstart.print_with_separator , a b c
|
||||
a,b,c
|
||||
|
||||
$ kickstart.print_with_separator '|' a b c
|
||||
a|b|c
|
||||
```
|
12
docs/kickstart/user/is_on_group.md
Normal file
12
docs/kickstart/user/is_on_group.md
Normal file
@ -0,0 +1,12 @@
|
||||
# kickstart.user.is_on_group user group
|
||||
Return 0 if `user` is on `group`, and 1 if not.
|
||||
|
||||
### Example
|
||||
|
||||
```bash
|
||||
$ kickstart.user.is_on_group vagrant vagrant && echo yup
|
||||
yup
|
||||
|
||||
$ kickstart.user.is_on_group vagrant no_group || echo nope
|
||||
nope
|
||||
```
|
8
docs/kickstart/user/remove_group.md
Normal file
8
docs/kickstart/user/remove_group.md
Normal file
@ -0,0 +1,8 @@
|
||||
# kickstart.user.remove_group user group
|
||||
Check if `user` is part of `group` and remove it from `group`
|
||||
|
||||
### Example
|
||||
|
||||
```bash
|
||||
$ kickstart.user.remove_group vagrant admin
|
||||
```
|
Reference in New Issue
Block a user