Skip to content

JMast3rs/netcfgbu-plugin-teams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MS Teams & GitLab intergration for netcfgbu

About The Project

This project expands on the work by @minitriga for netcfgbu (0.8.0) which enables the creation of plugins. These python plugins can be used to create extra functionality. In my case I made a plugin which integrates with MS Teams. The reason for this is because Teams is the primary messaging tool at my company. This allows me to have multiple people to be alerted to a backup and any problems that it may have. Or to keep a log of when it was ran and the results.

Notification of Device Backups (by using backup_report.py)

Notification of Git Push (by using git_report.py)

Requirements

Needed for backup_report.py

This plugin requires the uses of Teams Incoming Webhooks. This guide here shows how to get the required webhook URL that is needed. This is all that is need from Teams.

A python library called pymsteams is need and instruction on how to install are found here.

Optionally if you are not using git_report.py or GitLab then this is all that is need for backup_report.py.

Needed for git_report.py

If you want to implement git_report.py then the following information is needed.

Setup

The netcfgbu plugins need to be placed in a specified folder which is configured in netcfgbu.toml. This is described on the netcfgbu GitHub here.

The following lines need to be filled with the correct information.

For backup_report.py

teams_webhook_url = "<< Insert Teams Webhook URL>>"

For git_report.py

teams_webhook_url = "<< Insert Teams Webhook URL>>"

teams_git_repository_url = "<< Insert GitLab Repo URL (without .git) >>"
teams_git_repository_id =  "<< Insert GitLab Repo ID >>"
teams_git_token = "<< Insert GitLab Access Token >>"

Once the files are in the plugins folder of your netcfgbu instance the backup_report.py script will be ran when a backup is take. The git_report.py will be ran when then netcfgbu vcs save command is used.

About

A netcfgbu plugin for MS Teams.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages