Skip to content

Commit

Permalink
adding example usage of host_groups to role reference (#45871)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktate authored Aug 29, 2024
1 parent 4d7112d commit 23689ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pages/enroll-resources/server-access/rbac.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ spec:
# the list example above can be expressed as:
'reg': '^us-west-1|eu-central-1$'

# List of host groups the created user will be added to. Any that don't already exist are created.
# List of host groups the created user will be added to. Any that don't
# already exist are created. Only applies when create_host_user_mode
# is not 'off'.
host_groups: [ubuntu, nginx, other]

# Assign the user to the sudoers group
Expand Down
5 changes: 5 additions & 0 deletions docs/pages/includes/role-spec.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ spec:
# 'region': '^us-west-1|eu-central-1$'
'reg': '^us-west-1|eu-central-1$'

# List of host groups the created user will be added to. Any that don't
# already exist are created. Only applies when create_host_user_mode
# is not 'off'.
host_groups: [ubuntu, nginx, other]

# kubernetes_groups specifies Kubernetes groups a user with this role will assume.
# You can refer to a SAML/OIDC trait via the 'external' property bag.
# This allows you to specify Kubernetes group membership in an identity manager:
Expand Down

0 comments on commit 23689ee

Please sign in to comment.