ignitify_group
A group of the tenant: a named set of permissions and the users that get them. Needs an owner key.
Example
resource "ignitify_group" "deployers" {
name = "deployers"
permissions = ["tasks.read", "tasks.write", "deployments.read", "deployments.write"]
members = [ignitify_user.ci.name]
}Arguments and attributes
| Name | Type | Use | Meaning |
|---|---|---|---|
name | String | Requiredforces replacement · import id | The group name, unique in the tenant. 1 to 63 lower case letters, digits and -, starting with a letter or digit. |
permissions | Set of String | Required | The permissions the group grants. At least one, from the list below. |
members | Set of String | Optional | The user names in the group. Empty when you do not set it, so a member added outside Terraform shows as drift. |
created_at | String | Read-only | When the group was created (ISO 8601). |
resource_id | String | Read-only | The server id of the group. |
Permissions
A group may grant these permissions, and no others. An unknown name is refused at plan time. schedules.read and schedules.write need provider 0.5.0 or later.
| Permission | Allows |
|---|---|
| tasks.read | Read tasks. |
| tasks.write | Create and delete tasks. A delete also deletes the task's deployments, runs, hooks and recurring schedules. |
| deployments.read | Read deployments and build logs. |
| deployments.write | Deploy, delete a deployment, ask for package advice. |
| runs.read | Read runs, logs, timeline, failures and VMs. |
| runs.write | Start, cancel, delete runs; stop VMs. |
| secrets.read | List secret names. A value is never readable. |
| secrets.write | Set and delete secrets. |
| hooks.read | List the hooks of a task and read one hook. |
| hooks.write | Create and delete hooks; set the notify callback. A hook can start runs. |
| schedules.read | List schedules and read one schedule. |
| schedules.write | Create, edit, pause, resume and delete schedules; a run at a later time also needs it. A schedule starts runs later and outlives the key that made it. |
| usage.read | Read usage, series and notifications. |
Behaviour
- The group owns both lists. A grant or a member added outside Terraform shows as drift, and the next apply removes it.
- A member must be an existing user. Refer to
ignitify_user.ci.nameand Terraform creates the user first.
Import
The import id is the group name.
$ terraform import ignitify_group.deployers deployers