Admin task helper - simple script for doing what people don't want to do
Some helper functions for on/off boarding automation.
The reporting code is in nimda/services.py.
The default output folder is output and the default log file is nimda.log,
which can be changed in the config file (see example config/devops.ini).
UserAccounts:
DatabaseUserAccountsSummary.json.nimda.log:
BitbucketUsers-team-x.csv.nimda.log:
ConfluenceUsers.csv.nimda.log:
FlowdockUsers.csv.nimda.log:
JenkinsUsers.csv.nimda.log:
JiraUsers.csv.nimda.log:
status from active to suspendedbitbucket attributeconfluence attributeflowdock attributejenkins attributejira attributeSimilar to Off-boarding (at the moment), except
status from active to transferredUserAccounts (DynamoDB):
gmail with the given user nameactive to activeUse boto3 to interact with DynamoDB.
Use pybitbucket to interact with Bitbucket;
require to write additional functions to support some user management functions.
Use requests to write a client to interact with Confluence REST API.
Note that it’s the username required for auth.
Use requests to write a client to interact with Flowdock REST API.
Note that it’s the user email address required for auth.
Use requests to write a client to interact with Jenkins API.
Note that it’s the username required for auth.
Use jira to interact with JIRA;
require to write additional functions to support some user management functions.
Note that it’s the user email address required for auth.
Update the config file (see config/devops.ini).
pip install the latest version of nimda.
For reporting:
nimda --config config/devops.ini
To off board a user:
nimda --config config/devops.ini --offboard [gmail-acc-name e.g. firstname.lastname]
To transfer a user to other business group:
nimda --config config/devops.ini --transfer [gmail-acc-name e.g. firstname.lastname]
User --help to see all options.
Linux
virtualenv env
. env/bin/activate
pip install -e .
Windows
virtualenv env
env\Scripts\activate
pip install -e .
Linux
./test.sh
Windows
test.bat