Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions etc/kayobe/environments/baremetal-policy/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Policy for a baremetaluser role
===============================

When deploying Slurm on baremetal nodes, it is typical to select a specific
baremetal node, and give it the expected hostname. We allow this via a tweak to
Nova policy.

Similarly, it is common that the IP address has to match the expected one for
the given node. We tweak neutron policy to allow fixed IPs, even when we do
not own the network.

We should never use the admin role to do these operations, as it has far too
much privilege.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Comments show default policy for neutron.
#"create_port:fixed_ips:ip_address": "(rule:admin_only) or (rule:service_api) or role:manager and project_id:%(project_id)s or role:member and rule:network_owner"
"create_port:fixed_ips:ip_address": "(rule:admin_only) or (rule:service_api) or role:manager and project_id:%(project_id)s or role:member and rule:network_owner or role:baremetaluser"
#"create_port:mac_address": "(rule:admin_only) or (rule:service_api) or role:manager and project_id:%(project_id)s or role:member and rule:network_owner"
"create_port:mac_address": "(rule:admin_only) or (rule:service_api) or role:manager and project_id:%(project_id)s or role:member and rule:network_owner or role:baremetaluser"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Comments show default policy for nova.
#"os_compute_api:servers:create:forced_host": "rule:context_is_admin"
"os_compute_api:servers:create:forced_host": "rule:context_is_admin or role:baremetaluser"
#"compute:servers:create:requested_destination": "rule:context_is_admin"
"compute:servers:create:requested_destination": "rule:context_is_admin or role:baremetaluser"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
Adds a mixin environment that includes policy overrides to enable a
``baremetaluser`` role, that is able to create servers on specific
baremetal nodes, with specific IP addresses on a shared network.
Loading