Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user and group management capability to coderd provider #2

Closed
johnstcn opened this issue Jun 7, 2024 · 1 comment
Closed

Add user and group management capability to coderd provider #2

johnstcn opened this issue Jun 7, 2024 · 1 comment
Milestone

Comments

@johnstcn
Copy link
Member

johnstcn commented Jun 7, 2024

Should cover use cases similar to the following:

// Create a bot user for Jenkins
resource "coderd_user" "jenkins" {
  username = "jenkins"
  name     = "Jenkins CI/CD"
  email    = "[email protected]"
  roles    = ["template-admin"]
  login_type = "none"
}

// Keep the password of a user account up to date from an external source
resource "coderd_user" "audit" {
  username = "auditor"
  name     = "Auditor"
  email    = "[email protected]"
  roles    = ["auditor"]
  login_type = "password"
  password = data.vault_password.auditor.value
}

// Ensure the admin account is suspended
resource "coderd_user" "admin" {
  username = "admin"
  suspended = true
}

// Only the following can admin
resource "coderd_group" "bosses" {
  display_name = "The Bosses"
  members = [
    data.coder_user.jon.id
    data.coder_user.ammar.id
    data.coder_user.kyle.id
    data.coder_user.rob.id
  ]
}
@ethanndickson
Copy link
Member

Closed by #18, #19, #31, #32

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

No branches or pull requests

2 participants