generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 89
feature: define Staged Configs #264
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c4e7d52
feature: define Staged Configs
mjang 4fd8b5c
More
mjang 041c05c
More
mjang 19ec961
Add Staged Config API endpoints
mjang e73ad82
Edits
mjang f738007
More
mjang cc343ae
Apply suggestions from code review
mjang e20283f
Merge branch 'main' into feature-staged-configs-release-1
mjang 395d52b
Apply suggestions from code review
mjang ddef075
Update content/nginx-one/how-to/nginx-configs/view-edit-nginx-configu…
mjang b142748
Update content/nginx-one/changelog.md
mjang 3079ccc
Merge branch 'main' into feature-staged-configs-release-1
mjang 25de75a
Merge branch 'main' into feature-staged-configs-release-1
mjang cc72964
Apply suggestions from code review
mjang 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 hidden or 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,18 @@ | ||
--- | ||
docs: DOCS-000 | ||
files: | ||
- content/nginx-one/how-to/staged-configs/add-staged-config.md | ||
- content/nginx-one/how-to/staged-configs/edit-staged-config.md | ||
--- | ||
|
||
It takes time to set up NGINX configuration files can take time. Staged Configurations can help. They work like a draft that uses the features of NGINX One Console. The Staged Configuration does not have to be valid. | ||
You can save your work before you push a configuration to an instance of NGINX. | ||
|
||
With Staged Configurations, you can use these features of NGINX One Console: | ||
|
||
- Automatic syntax checking | ||
- Contextual documentation | ||
- Dynamic analysis of your work in progress | ||
- Suggestions from our AI assistant | ||
|
||
Once you've finished your work and have pushed the changes to an Instance or a Config Sync Group, you can next delete that Staged Configuration. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,6 @@ | ||
--- | ||
description: | ||
title: Staged Configurations | ||
weight: 800 | ||
url: /nginx-one/how-to/staged-configs | ||
--- |
88 changes: 88 additions & 0 deletions
88
content/nginx-one/how-to/staged-configs/add-staged-config.md
This file contains hidden or 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,88 @@ | ||
--- | ||
# We use sentence case and present imperative tone | ||
title: Add a Staged Configuration | ||
# Weights are assigned in increments of 100: determines sorting order | ||
weight: 100 | ||
# Creates a table of contents and sidebar, useful for large documents | ||
toc: true | ||
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this | ||
type: tutorial | ||
# Intended for internal catalogue and search, case sensitive: | ||
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit | ||
product: | ||
--- | ||
|
||
## Overview | ||
|
||
This guide explains how to add a Staged Configuration to your NGINX One Console. | ||
|
||
{{< include "nginx-one/staged-config-overview.md" >}} | ||
|
||
## Before you start | ||
|
||
Before you add a Staged Configuration to NGINX One Console, ensure: | ||
|
||
- You have an NGINX One Console account with staged configuration permissions. | ||
|
||
## Add a Staged Configuration | ||
|
||
You can add a Staged Configuration from: | ||
|
||
- Empty files | ||
- An existing Instance | ||
- An existing Config Sync Group | ||
- An existing Staged Configuration | ||
|
||
To start the process from NGINX One Console, select **Manage > Staged Configruations**. Select **Add Staged Configuration**. | ||
|
||
The following sections start from the **Add Staged Configuration** window that appears. | ||
|
||
### Start from an empty file | ||
|
||
To start a new Staged Configuration: | ||
|
||
1. Select **New Configuration**. | ||
1. Enter a name. | ||
1. Select **Next**. | ||
|
||
You will see a new Staged Configuration with the default NGINX configuration file, `/etc/nginx/nginx.conf`, in edit mode. | ||
1. Type or paste content for `/etc/nginx/nginx.conf`. | ||
1. Select **Add File** to add the configuration, certificate, or other file(s) of your choice. | ||
1. When you're done, select **Save**. | ||
|
||
### Start from an existing Instance | ||
|
||
To start from an existing Instance: | ||
|
||
1. Select **Existing Source**. | ||
1. Enter a name for your new Staged Configuration. | ||
1. Select **Instance**. | ||
1. In the Choose Instance menu that appears, select an existing Instance. | ||
1. Select **Next**. | ||
|
||
NGINX One Console imports the configuration from the existing Instance. You can now edit the configuration. When you're ready to stop and save your work, select Save. | ||
|
||
### Start from an existing Config Sync Group | ||
|
||
To start from an existing Config Sync Group: | ||
|
||
1. Select **Existing Source**. | ||
1. Select **Config Sync Group**. | ||
1. In the Choose Config Sync Group menu that appears, select an existing Config Sync Group. | ||
1. Enter a name for your new Staged Configuration. | ||
1. Select **Next**. | ||
|
||
NGINX One Console imports the configuration from the existing Config Sync Group. You can now edit the configuration. When you're ready to stop and save your work, select Save. | ||
|
||
### Start from an existing Staged Config | ||
|
||
To start from an existing Staged Config: | ||
|
||
1. Select **Existing Source**. | ||
1. Select **Staged Configuration**. | ||
1. In the Choose Staged Configuratiog menu that appears, select an existing Staged Configuration. | ||
1. Enter a name for your new Staged Configuration. | ||
1. Select **Next**. | ||
|
||
NGINX One Console imports the configuration from the existing Staged Configuration. You can now edit the configuration. When you're ready to stop and save your work, select Save. | ||
|
20 changes: 20 additions & 0 deletions
20
content/nginx-one/how-to/staged-configs/api-staged-config.md
This file contains hidden or 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 @@ | ||
--- | ||
# We use sentence case and present imperative tone | ||
title: Use the API to manage your Staged Configurations | ||
# Weights are assigned in increments of 100: determines sorting order | ||
weight: 300 | ||
# Creates a table of contents and sidebar, useful for large documents | ||
toc: true | ||
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this | ||
type: tutorial | ||
# Intended for internal catalogue and search, case sensitive: | ||
product: NGINX One | ||
--- | ||
|
||
You can use F5 NGINX One Console API to manage your Staged Configurations. With our API, you can: | ||
|
||
- [Create an NGINX Staged Configuration]({{< relref "/nginx-one/api/api-reference-guide/#operation/createStagedConfig" >}}) | ||
- The details allow you to add existing configuration files. | ||
- [Get a list of existing Staged Configruations]({{< relref "/nginx-one/api/api-reference-guide/#operation/listStagedConfigs" >}}) | ||
- Be sure to record the `object_id` of your target Staged Configuration for your analysis report. | ||
- [Get an analysis report for an existing Staged Configuration]({{< relref "/nginx-one/api/api-reference-guide/#operation/getStagedConfigReport" >}}) |
38 changes: 38 additions & 0 deletions
38
content/nginx-one/how-to/staged-configs/edit-staged-config.md
This file contains hidden or 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,38 @@ | ||
--- | ||
# We use sentence case and present imperative tone | ||
title: View and edit a Staged Configuration | ||
# Weights are assigned in increments of 100: determines sorting order | ||
weight: 200 | ||
# Creates a table of contents and sidebar, useful for large documents | ||
toc: true | ||
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this | ||
type: tutorial | ||
# Intended for internal catalogue and search, case sensitive: | ||
product: NGINX One | ||
--- | ||
|
||
## Overview | ||
|
||
This guide explains how to edit an existing Staged Configuration in your NGINX One Console. | ||
|
||
{{< include "nginx-one/staged-config-overview.md" >}} | ||
|
||
## Before you start | ||
|
||
Before you edit a Staged Configuration, ensure: | ||
|
||
- You have an NGINX One Console account with staged configuration permissions.``` | ||
|
||
## View and edit a Staged Configuration | ||
<!-- Possible future include, with similar files in config-sync-groups/, nginx-configs/, and staged-configs/ subdirectories --> | ||
|
||
Once you've registered your NGINX Staged Configs with the F5 NGINX One Console, you can view and edit their NGINX configurations on the **Staged Configurations** details page. | ||
|
||
To view and edit an NGINX configuration, follow these steps: | ||
|
||
1. On the left menu, select **Staged Configurations**. | ||
1. Select the staged configuration you want to view or modify. | ||
1. Select **Edit** to make changes to the current configuration. | ||
1. Make your changes to the configuration files. The configuration analyzer will let you know if there are any errors. | ||
1. When you are satisfied with the changes, select **Next**. | ||
1. Compare and verify your changes before selecting **Save** to publish the edited Staged configuration. |
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.