Github User State Module
New in version 2016.3.0..
This state is used to ensure presence of users in the Organization.
ensure user test is present in github:
github.present:
- name: 'Example TestUser1'
- email: example@domain.com
- username: 'gitexample'
salt.states.github.
absent
(name, profile='github', **kwargs)¶Ensure a github user is absent
ensure user test is absent in github:
github.absent:
- name: 'Example TestUser1'
- email: example@domain.com
- username: 'gitexample'
The following parameters are required:
salt.states.github.
present
(name, profile='github', **kwargs)¶Ensure a user is present
ensure user test is present in github:
github.present:
- name: 'gitexample'
The following parameters are required:
salt.states.github.
repo_absent
(name, profile='github', **kwargs)¶Ensure a repo is absent.
Example:
ensure repo test is absent in github:
github.repo_absent:
- name: 'test'
The following parameters are required:
New in version 2016.11.0.
salt.states.github.
repo_present
(name, description=None, homepage=None, private=None, has_issues=None, has_wiki=None, has_downloads=None, auto_init=False, gitignore_template=None, license_template=None, teams=None, profile='github', **kwargs)¶Ensure a repository is present
The teams for which this repo should belong to, specified as a dict of team name to permission ('pull', 'push' or 'admin').
New in version 2017.7.0.
Example:
Ensure repo my-repo is present in github:
github.repo_present:
- name: 'my-repo'
- description: 'My very important repository'
New in version 2016.11.0.
salt.states.github.
team_absent
(name, profile='github', **kwargs)¶Ensure a team is absent.
Example:
ensure team test is present in github:
github.team_absent:
- name: 'test'
The following parameters are required:
New in version 2016.11.0.
salt.states.github.
team_present
(name, description=None, repo_names=None, privacy='secret', permission='pull', members=None, enforce_mfa=False, no_mfa_grace_seconds=0, profile='github', **kwargs)¶Ensure a team is present
Example:
Ensure team test is present in github:
github.team_present:
- name: 'test'
- members:
user1: {}
user2: {}
Ensure team test_mfa is present in github:
github.team_present:
- name: 'test_mfa'
- members:
user1:
enforce_mfa_from: 2016/06/15
- enforce_mfa: True
New in version 2016.11.0.