Skip to content

Commit a93135b

Browse files
Document foreman_resource_quota plugin
1 parent 268a7ad commit a93135b

11 files changed

+114
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
include::modules/con_limiting-resources.adoc[]
2+
3+
include::modules/proc_installing-the-resource-quota-plugin.adoc[leveloffset=+1]
4+
5+
include::modules/con_managing-resource-quotas.adoc[leveloffset=+1]
6+
7+
include::modules/proc_creating-a-resource-quota.adoc[leveloffset=+2]
8+
9+
include::modules/proc_editing-a-resource-quota.adoc[leveloffset=+2]
10+
11+
include::modules/proc_deleting-a-resource-quota.adoc[leveloffset=+2]
12+
13+
include::modules/con_assigning-resource-quotas-to-users.adoc[leveloffset=+1]
14+
15+
include::modules/proc_assigning-resource-quotas-to-a-user.adoc[leveloffset=+2]
16+
17+
include::modules/proc_assigning-resource-quotas-to-a-user-group.adoc[leveloffset=+2]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[id="assigning-resource-quotas-to-users"]
2+
= Assigning resource quotas to users
3+
4+
You can assign resource quotas to users or user groups.
5+
If a user has a resource quota assigned to, they can select it during host provisioning.
6+
You can use the `resource_quota` filter in the {ProjectWebUI} to view users or user groups with assigned resource quotas.
7+
8+
If you want to introduce resource quotas to your organization, you can also start by assigning resource quotas to users and user groups but set the limit to optional.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[id="limiting-resources"]
2+
= Limiting resources
3+
4+
You can use the Resource Quota plugin to limit users' access to resources.
5+
6+
Supported resource types::
7+
* CPU {endash} limit the number of CPU cores
8+
* Memory {endash} limit the amnount of memory
9+
* Disk {endash} limit the amount of disk space
10+
11+
Supported compute resources::
12+
* VMware
13+
* libvirt
14+
15+
Configuration options::
16+
* *Global Resource Quota no action* {endash} {Project} will not limit the resource consumption if a resource quota is exceeded.
17+
* *Resource Quota optional assignment* {endash} {Project} will not enforce selecting a resource quota during host provisioning.
18+
The global setting overwrites user-specific and user group-specific configuration options.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[id="managing-resource-quotas"]
2+
= Managing resource quotas
3+
4+
You can create, edit, and delete resource quotas in {ProjectWebUI}.
5+
To view resource quotas, navigate to *Configure* > *Resource Quotas*.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[id="assigning-resource-quotas-to-a-user-group"]
2+
= Assigning resource quotas to a user group
3+
4+
You can assign resource quotas to a user group to limit the resource consumption of that {Project} user group.
5+
All users of the user group share the pool of resources.
6+
7+
.Procedure
8+
. In the {ProjectWebUI}, navigate to *Administer* > *User Groups*.
9+
. On the *Resource Quota* tab, assign resource quotas to the user group.
10+
. Click *Submit* to assign resource quotas to a user group.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[id="assigning-resource-quotas-to-a-user"]
2+
= Assigning resource quotas to a user
3+
4+
You can assign resource quotas to a user to limit the resource consumption of that {Project} user.
5+
6+
.Procedure
7+
. In the {ProjectWebUI}, navigate to *Administer* > *Users*.
8+
. Select a user.
9+
. On the *Resource Quota* tab, assign resource quotas to the user.
10+
. If you want to make the usage of resource quotas optional, select the *Optional Assignment* checkbox.
11+
+
12+
This means that {Project} will not prevent users from consuming more resources than their assigned quota.
13+
. Click *Submit* to assign resource quotas to a user.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[id="creating-a-resource-quota"]
2+
= Creating a resource quota
3+
4+
Create a resource quota to limit the resource consumption of a {Project} user.
5+
6+
.Procedure
7+
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*.
8+
. Click *Create resource quota*.
9+
+
10+
Follow the wizard in the {ProjectWebUI}.
11+
. Click *Create resource quota* to submit the resouce quota to {Project}.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[id="deleting-a-resource-quota"]
2+
= Deleting a resource quota
3+
4+
You can delete a resource quota from {Project}.
5+
6+
.Procedure
7+
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*.
8+
. In the *Actions* column, click *Delete* for your resource quota.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[id="editing-a-resource-quota"]
2+
= Editing a resource quota
3+
4+
You can edit a resource quota to adjust available resources to {Project} users.
5+
6+
.Procedure
7+
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*.
8+
. Select your resource quota.
9+
. Adjust the *CPU cores*, *Memory*, or *Disk space* and click *Apply* to submit your changes to {Project}.
10+
. Click *Create resource quota* to submit the resouce quota to {Project}.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[id="installing-the-resource-quota-plugin"]
2+
= Installing the Resource Quota plugin
3+
4+
Use the following procedure to install the Resource Quota plugin.
5+
6+
.Procedure
7+
* Install the plugin on your {ProjectServer}:
8+
+
9+
[options="nowrap", subs="+quotes,verbatim,attributes"]
10+
----
11+
# {foreman-installer} --enable-foreman-plugin-resource-quota
12+
----

guides/doc-Administering_Project/master.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ include::common/assembly_logging-and-reporting-problems.adoc[leveloffset=+1]
6060

6161
include::common/assembly_monitoring-resources.adoc[leveloffset=+1]
6262

63+
include::common/assembly_limiting-resources.adoc[leveloffset=+1]
64+
6365
include::common/assembly_using-foreman-webhooks.adoc[leveloffset=+1]
6466

6567
include::common/assembly_searching-and-bookmarking.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)