-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document foreman_resource_quota plugin #3460
Open
maximiliankolb
wants to merge
1
commit into
theforeman:master
Choose a base branch
from
ATIX-AG:foreman_resource_quota
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+126
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include::modules/con_limiting-host-resources.adoc[] | ||
|
||
include::modules/proc_installing-the-resource-quota-plugin.adoc[leveloffset=+1] | ||
|
||
include::modules/con_managing-resource-quotas.adoc[leveloffset=+1] | ||
|
||
include::modules/proc_creating-a-resource-quota.adoc[leveloffset=+2] | ||
|
||
include::modules/proc_editing-a-resource-quota.adoc[leveloffset=+2] | ||
|
||
include::modules/proc_deleting-a-resource-quota.adoc[leveloffset=+2] | ||
|
||
include::modules/con_assigning-resource-quotas-to-users.adoc[leveloffset=+1] | ||
|
||
include::modules/proc_assigning-resource-quotas-to-a-user.adoc[leveloffset=+2] | ||
|
||
include::modules/proc_assigning-resource-quotas-to-a-user-group.adoc[leveloffset=+2] | ||
|
||
include::modules/ref_resource-quota-settings.adoc[leveloffset=+1] |
9 changes: 9 additions & 0 deletions
9
guides/common/modules/con_assigning-resource-quotas-to-users.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[id="assigning-resource-quotas-to-users"] | ||
= Assigning resource quotas to users | ||
|
||
You can assign resource quotas to users or user groups. | ||
A user can select one of their assigned resource quotas during host provisioning. | ||
If `Resource Quota optional assignment` is set to *No*, a user does not have to assign a resource quota. | ||
You can use the `resource_quota` filter in the {ProjectWebUI} to view users or user groups with assigned resource quotas. | ||
|
||
If you want to introduce resource quotas to your organization, set `Global Resource Quota no action` to *Yes* to allow users to provision hosts even if they exceed their resource quotas. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[id="limiting-host-resources"] | ||
= Limiting host resources | ||
|
||
You can use the Resource Quota plugin to limit users' access to host resources during host provisioning. | ||
|
||
In a typical usage scenario, {Project} manages multiple compute resources for multiple departments. | ||
To share managed resources in a fair and predictable way, administrators can assign resource quotas to users and user groups. | ||
|
||
// ordered like shown in the WebUI | ||
Supported resource types:: | ||
* CPU cores {endash} limit the number of CPU cores | ||
* Memory {endash} limit the amount of memory | ||
* Disk space {endash} limit the amount of disk space | ||
|
||
Supported compute resources:: | ||
* VMware | ||
* libvirt | ||
|
||
.Additional resources | ||
* For more information, see xref:resource-quota-settings[]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[id="managing-resource-quotas"] | ||
= Managing resource quotas | ||
|
||
You can create, edit, and delete resource quotas in {ProjectWebUI}. | ||
All resource quotas are listed on *Configure* > *Resource Quotas*. |
10 changes: 10 additions & 0 deletions
10
guides/common/modules/proc_assigning-resource-quotas-to-a-user-group.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[id="assigning-resource-quotas-to-a-user-group"] | ||
= Assigning resource quotas to a user group | ||
|
||
You can assign resource quotas to a user group to limit the resource consumption of that {Project} user group. | ||
All users of the user group share the pool of resources. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Administer* > *User Groups*. | ||
. On the *Resource Quota* tab, assign resource quotas to the user group. | ||
. Click *Submit* to assign resource quotas to a user group. |
13 changes: 13 additions & 0 deletions
13
guides/common/modules/proc_assigning-resource-quotas-to-a-user.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[id="assigning-resource-quotas-to-a-user"] | ||
= Assigning resource quotas to a user | ||
|
||
You can assign resource quotas to a user to limit the resource consumption of that {Project} user. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Administer* > *Users*. | ||
. Select a user. | ||
. On the *Resource Quota* tab, assign resource quotas to the user. | ||
. If you want to make the usage of resource quotas optional, select the *Optional Assignment* checkbox. | ||
+ | ||
This means that {Project} will not prevent users from consuming more resources than their assigned quota. | ||
. Click *Submit* to assign resource quotas to a user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[id="creating-a-resource-quota"] | ||
= Creating a resource quota | ||
|
||
Create a resource quota to limit the resource consumption of {Project} users. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*. | ||
. Click *Create resource quota*. | ||
. Specify the name, CPU cores, memory, and disk space. | ||
. Click *Create resource quota* to submit the resource quota to {Project}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[id="deleting-a-resource-quota"] | ||
= Deleting a resource quota | ||
|
||
You can delete a resource quota from {Project}. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*. | ||
. In the *Actions* column, click *Delete* for your resource quota. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[id="editing-a-resource-quota"] | ||
= Editing a resource quota | ||
|
||
You can edit a resource quota to adjust available resources to {Project} users. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Configure* > *Resource Quotas*. | ||
. Select your resource quota. | ||
. Adjust the *CPU cores*, *Memory*, or *Disk space* and click *Apply* to submit your changes to {Project}. | ||
. Click *Create resource quota* to submit the resource quota to {Project}. |
12 changes: 12 additions & 0 deletions
12
guides/common/modules/proc_installing-the-resource-quota-plugin.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[id="installing-the-resource-quota-plugin"] | ||
= Installing the Resource Quota plugin | ||
|
||
Use the following procedure to install the Resource Quota plugin. | ||
maximiliankolb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.Procedure | ||
* Install the plugin on your {ProjectServer}: | ||
+ | ||
[options="nowrap", subs="+quotes,verbatim,attributes"] | ||
---- | ||
# {foreman-installer} --enable-foreman-plugin-resource-quota | ||
maximiliankolb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[id="resource-quota-settings"] | ||
= Resource Quota settings | ||
|
||
The Resource Quota plugin contains the following global {Project} settings: | ||
|
||
* *Global Resource Quota no action* {endash} {Project} will not limit the resource consumption if a resource quota is exceeded. | ||
* *Resource Quota optional assignment* {endash} {Project} will not enforce selecting a resource quota during host provisioning. | ||
The global setting overwrites user-specific and user group-specific configuration options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I'm late to the party :) But this part seems kind of repetitive to me.