Commit 0881c145 authored by Marcel Amirault's avatar Marcel Amirault

Clean up yaml code block formatting

Fix spacing, indentation, comments, etc
parent 3e8137fe
...@@ -48,7 +48,7 @@ To enable the CAS OmniAuth provider you must register your application with your ...@@ -48,7 +48,7 @@ To enable the CAS OmniAuth provider you must register your application with your
url: 'CAS_SERVER', url: 'CAS_SERVER',
login_url: '/CAS_PATH/login', login_url: '/CAS_PATH/login',
service_validate_url: '/CAS_PATH/p3/serviceValidate', service_validate_url: '/CAS_PATH/p3/serviceValidate',
logout_url: '/CAS_PATH/logout'} } logout_url: '/CAS_PATH/logout' } }
``` ```
1. Change 'CAS_PATH' to the root of your CAS instance (ie. `cas`). 1. Change 'CAS_PATH' to the root of your CAS instance (ie. `cas`).
......
...@@ -78,7 +78,8 @@ Follow these steps to incorporate the GitHub OAuth 2 app in your GitLab server: ...@@ -78,7 +78,8 @@ Follow these steps to incorporate the GitHub OAuth 2 app in your GitLab server:
For GitHub Enterprise: For GitHub Enterprise:
```yaml ```yaml
- { name: 'github', app_id: 'YOUR_APP_ID', - { name: 'github',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET', app_secret: 'YOUR_APP_SECRET',
url: "https://github.example.com/", url: "https://github.example.com/",
args: { scope: 'user:email' } } args: { scope: 'user:email' } }
...@@ -125,7 +126,8 @@ omnibus_gitconfig['system'] = { "http" => ["sslVerify = false"] } ...@@ -125,7 +126,8 @@ omnibus_gitconfig['system'] = { "http" => ["sslVerify = false"] }
For installation from source: For installation from source:
```yaml ```yaml
- { name: 'github', app_id: 'YOUR_APP_ID', - { name: 'github',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET', app_secret: 'YOUR_APP_SECRET',
url: "https://github.example.com/", url: "https://github.example.com/",
verify_ssl: false, verify_ssl: false,
......
...@@ -63,7 +63,8 @@ GitLab.com will generate an application ID and secret key for you to use. ...@@ -63,7 +63,8 @@ GitLab.com will generate an application ID and secret key for you to use.
For installations from source: For installations from source:
```yaml ```yaml
- { name: 'gitlab', app_id: 'YOUR_APP_ID', - { name: 'gitlab',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET', app_secret: 'YOUR_APP_SECRET',
args: { scope: 'api' } } args: { scope: 'api' } }
``` ```
......
...@@ -84,7 +84,8 @@ On your GitLab server: ...@@ -84,7 +84,8 @@ On your GitLab server:
For installations from source: For installations from source:
```yaml ```yaml
- { name: 'google_oauth2', app_id: 'YOUR_APP_ID', - { name: 'google_oauth2',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET', app_secret: 'YOUR_APP_SECRET',
args: { access_type: 'offline', approval_prompt: '' } } args: { access_type: 'offline', approval_prompt: '' } }
``` ```
......
...@@ -207,6 +207,7 @@ remove the OmniAuth provider named `kerberos` from your `gitlab.yml` / ...@@ -207,6 +207,7 @@ remove the OmniAuth provider named `kerberos` from your `gitlab.yml` /
```yaml ```yaml
omniauth: omniauth:
# Rest of configuration omitted
# ... # ...
providers: providers:
- { name: 'kerberos' } # <-- remove this line - { name: 'kerberos' } # <-- remove this line
......
...@@ -142,7 +142,7 @@ The chosen OmniAuth provider is now active and can be used to sign in to GitLab ...@@ -142,7 +142,7 @@ The chosen OmniAuth provider is now active and can be used to sign in to GitLab
## Automatically Link Existing Users to OmniAuth Users ## Automatically Link Existing Users to OmniAuth Users
> [Introduced in GitLab 13.4.](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36664) > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36664) in GitLab 13.4.
You can automatically link OmniAuth users with existing GitLab users if their email addresses match. You can automatically link OmniAuth users with existing GitLab users if their email addresses match.
For example, the following setting is used to enable the auto link feature for both a SAML provider and the Twitter OAuth provider: For example, the following setting is used to enable the auto link feature for both a SAML provider and the Twitter OAuth provider:
......
...@@ -65,7 +65,8 @@ To enable the Twitter OmniAuth provider you must register your application with ...@@ -65,7 +65,8 @@ To enable the Twitter OmniAuth provider you must register your application with
For installations from source: For installations from source:
```yaml ```yaml
- { name: 'twitter', app_id: 'YOUR_APP_ID', - { name: 'twitter',
app_id: 'YOUR_APP_ID',
app_secret: 'YOUR_APP_SECRET' } app_secret: 'YOUR_APP_SECRET' }
``` ```
......
...@@ -70,7 +70,8 @@ receivers: ...@@ -70,7 +70,8 @@ receivers:
bearer_token: 9e1cbfcd546896a9ea8be557caf13a76 bearer_token: 9e1cbfcd546896a9ea8be557caf13a76
send_resolved: true send_resolved: true
url: http://192.168.178.31:3001/root/manual_prometheus/prometheus/alerts/notify.json url: http://192.168.178.31:3001/root/manual_prometheus/prometheus/alerts/notify.json
... # Rest of configuration omitted
# ...
``` ```
For GitLab to associate your alerts with an [environment](../../ci/environments/index.md), For GitLab to associate your alerts with an [environment](../../ci/environments/index.md),
......
...@@ -125,7 +125,7 @@ the Agent in subsequent steps. You can create an Agent record either: ...@@ -125,7 +125,7 @@ the Agent in subsequent steps. You can create an Agent record either:
- Through GraphQL: **(PREMIUM ONLY)** - Through GraphQL: **(PREMIUM ONLY)**
```json ```graphql
mutation createAgent { mutation createAgent {
createClusterAgent(input: { projectPath: "path-to/your-awesome-project", name: "<agent-name>" }) { createClusterAgent(input: { projectPath: "path-to/your-awesome-project", name: "<agent-name>" }) {
clusterAgent { clusterAgent {
......
...@@ -269,7 +269,7 @@ To add a Kubernetes cluster to your project, group, or instance: ...@@ -269,7 +269,7 @@ To add a Kubernetes cluster to your project, group, or instance:
Copy the `<authentication_token>` value from the output: Copy the `<authentication_token>` value from the output:
```yaml ```plaintext
Name: gitlab-token-b5zv4 Name: gitlab-token-b5zv4
Namespace: kube-system Namespace: kube-system
Labels: <none> Labels: <none>
......
...@@ -222,7 +222,8 @@ the environment of the deployed function: ...@@ -222,7 +222,8 @@ the environment of the deployed function:
```yaml ```yaml
provider: provider:
... # Other configuration omitted
# ...
environment: environment:
A_VARIABLE: ${env:A_VARIABLE} A_VARIABLE: ${env:A_VARIABLE}
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment