Skip to content

Commit

Permalink
Only assign member & load-balancer_member as default roles (#159)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Dec 7, 2023
1 parent adc4329 commit 6052573
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/create-ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
CONF(sys.argv[1:], project=PROJECT_NAME)

# Default roles to be assigned to a new user for a project
DEFAULT_ROLES = ["creator", "member", "heat_stack_owner", "load-balancer_member"]
DEFAULT_ROLES = ["member", "load-balancer_member"]

if CONF.debug:
level = "DEBUG"
Expand Down
2 changes: 1 addition & 1 deletion src/create-user.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# Default roles to be assigned to a new user for a project
DEFAULT_ROLES = ["creator", "member", "heat_stack_owner", "load-balancer_member"]
DEFAULT_ROLES = ["member", "load-balancer_member"]

PROJECT_NAME = "openstack-user-manager"
CONF = cfg.CONF
Expand Down
4 changes: 1 addition & 3 deletions src/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@


# Default roles to be assigned to a new user for a project
DEFAULT_ROLES = ["creator", "member", "heat_stack_owner", "load-balancer_member"]
DEFAULT_ROLES = ["member", "load-balancer_member"]

# Default roles to be assigned to a admin user for a project
DEFAULT_ADMIN_ROLES = [
"creator",
"member",
"heat_stack_owner",
"load-balancer_member",
]

Expand Down
2 changes: 1 addition & 1 deletion src/manage-ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
CONF(sys.argv[1:], project=PROJECT_NAME)

# Default roles to be assigned to a new user for a project
DEFAULT_ROLES = ["creator", "member", "heat_stack_owner", "load-balancer_member"]
DEFAULT_ROLES = ["member", "load-balancer_member"]

if CONF.debug:
level = "DEBUG"
Expand Down
2 changes: 1 addition & 1 deletion src/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
CONF.register_cli_opts(opts)
CONF(sys.argv[1:], project=PROJECT_NAME)

DEFAULT_ROLES = ["creator", "member", "heat_stack_owner", "load-balancer_member"]
DEFAULT_ROLES = ["member", "load-balancer_member"]

UNMANAGED_PROJECTS = ["admin", "service"]

Expand Down

0 comments on commit 6052573

Please sign in to comment.