Skip to content

Latest commit

 

History

History
90 lines (76 loc) · 2.46 KB

File metadata and controls

90 lines (76 loc) · 2.46 KB
page_title subcategory description
forgejo_user Resource - forgejo
Forgejo user resource

forgejo_user (Resource)

Forgejo user resource

Example Usage

terraform {
  required_providers {
    forgejo = {
      source = "svalabs/forgejo"
    }
  }
}

provider "forgejo" {
  host = "http://localhost:3000"
}

# User with default settings
resource "forgejo_user" "defaults" {
  login    = "test_user_defaults"
  email    = "[email protected]"
  password = "passw0rd"
}
output "debug_defaults" {
  value     = forgejo_user.defaults
  sensitive = true
}

# User with custom settings
resource "forgejo_user" "non_defaults" {
  login       = "test_user_non_defaults"
  email       = "[email protected]"
  password    = "passw0rd"
  full_name   = "Terraform Test User with non-default attributes"
  description = "Purely for testing..."
  website     = "https://forgejo.org/"
  location    = "Mêlée Island"
  visibility  = "private"
}
output "debug_non_defaults" {
  value     = forgejo_user.non_defaults
  sensitive = true
}

Schema

Required

  • email (String) Email address of the user.
  • login (String) Name of the user.
  • password (String, Sensitive) Password of the user.

Optional

  • active (Boolean) Is the user active?
  • admin (Boolean) Is the user an administrator?
  • description (String) Description of the user.
  • full_name (String) Full name of the user.
  • location (String) Location of the user.
  • login_name (String) Login name of the user.
  • must_change_password (Boolean) Require user to change password?
  • prohibit_login (Boolean) Are user logins prohibited?
  • restricted (Boolean) Is the user restricted?
  • send_notify (Boolean) Send notification to administrators?
  • source_id (Number) Numeric identifier of the user's authentication source.
  • visibility (String) Visibility of the user.
  • website (String) Website of the user.

Read-Only

  • avatar_url (String) Avatar URL of the user.
  • created (String) Date and time of user creation.
  • followers_count (Number) Number of following users.
  • following_count (Number) Number of users followed.
  • id (Number) Numeric identifier of the user.
  • language (String) Locale of the user.
  • last_login (String) Date and time of last login.
  • starred_repos_count (Number) Number of starred repositories.