This is temporal automation to create multiple LDAP users in Chef Automate.
The minimum prerequisites to be able to use this automation are:
- Use a Unix Workstation. (MAC, Linux, etc)
- Have ChefDK Installed. (https://downloads.chef.io/chef-dk/)
- Setup the CLI to point to your Automate Server. (https://asciinema.org/a/89658)
- Download the
bulk-user-creation.rb
script locally and give executable permissions to the file.
The automation will ask you to provide a file with the list of users to create with the following format:
[USERNAME]|[ROLES]
[USERNAME]|[ROLES]
An example of this file at:
https://gist.github.com/afiune/ac5b4b7074ee9191a876d29ae73fe536#file-users-example-list
Once you have all the prerequisites in place, and the list of users to create, open a terminal and go to the directory that you have previously configured the delivery-cli to point to your Chef Automate Server.
Then run:
➜ ./bulk-user-creation.rb
Automate LDAP Bulking User Creation
Insert the user list file: user.list
Creating Users from 'user.list'
user1: done.
user2: done.