Skip to content

Adding users and group bulk creation files - #31

Open
kassovix wants to merge 1 commit into
masterfrom
add-bulk-create-users
Open

Adding users and group bulk creation files#31
kassovix wants to merge 1 commit into
masterfrom
add-bulk-create-users

Conversation

@kassovix

Copy link
Copy Markdown
Contributor

No description provided.

@kassovix
kassovix force-pushed the add-bulk-create-users branch from f265f6f to 49b7844 Compare June 11, 2021 10:21
@kassovix
kassovix force-pushed the add-bulk-create-users branch from 49b7844 to 396e919 Compare June 11, 2021 10:23
@kassovix
kassovix force-pushed the master branch 2 times, most recently from 0667e8b to 4b1bf9d Compare June 15, 2021 12:25
terraform output -json bastion_ip |jq -r . >> "${ROOT_DIR}/config/ips"
userid=$(printf "%02d" "$project_id") # 2 digits, e.g. 01 for project 1
passwd=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 20) # 20 alpha-numeric chars
echo "trainee${userid},trainee${userid},trainee${userid}@training.wecontrol.cloud,${passwd},,/kube-niv1-trainee" >> "${ROOT_DIR}/config/users.csv"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mathieulaude : mettre les usersID et passwords en resources puis outputs terraform permettrait de les retrouver dans les TF statefile.

@romainDavaze
romainDavaze force-pushed the master branch 2 times, most recently from 6f9d336 to 7fb3b89 Compare November 15, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants