Milestone #12: User and Group Provisioning - wAlber47/Tech-Journal GitHub Wiki
Gathering User Data
For my test data, I've found a datasheet online that includes the Players in the English Premier League from the 2017/18 Season. The online source can be found here. There is also a raw version in my GitHub, which can be found here.
It has some data that isn't necessary but overall I can make groups from the teams as well as the positions and nationalities if necessary.
Creating Users and Groups
By expanding a password generating script that was found here, we were able to create our own version parsed through the data from out CSV file to create Active Directory Users and Groups.
This finished script can be seen here.
Below are the two files that were created by the password-gen.ps1
script:
Adding AD Users and Groups with Ansible
With Ansible, we can leverage the Accounts and Groups files that we just created to add these users to our Blue4 Active Directory server.
The playbook used to execute this process can be found here.
The command and some of it's output can be seen here:
By running this playbook, we successfully created 20 Groups and around 400 Users on the Blue4 Domain.
Creating an SMB File Share
Here, we used fs-blue4
to host a File Share Server on the domain. Using Ansible we created a new folder for each group that only members of that group have access to.
The playbook used to execute this process can be found here.
Below are the outputs of running that playbook: