New service netbox
Created by: balcirakpeter
- gen script fetches resources and their assigned members. For resources fetches netboxGroupName which serves as a group name in the destination and netboxIsStaff which indicates is_staff value for its members. Resources without the name attribute are skipped. We fetch name, email login, for each user. is_active is set to true and is_staff to false. These two are attributes in netbox. We set them in gen script in case, we will fill them from perun in the future. groups list is filled with netboxGroupName attribute for each member's resource.
- send script creates missing groups first. Then creates missing users. In this part we generate also password and set group membership. In the end we update users. If user does not exists in perun but exists in netbox he is set to inactive and his group list is erased. If he exists both in perun and netbox, his attributes are updated except password. laso group membership is updated in this part. We do not delete users and groups. When group does not exists in perun but exists in netbox. It will be empty in the end of the process.
- for this service is needed file with name netbox in /etc/perun/, which contains authorization token. Destination needs to be set to without trailing "/".