Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
0e6d757d
Commit
0e6d757d
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Create directories for additional x509 CAs
parent
bad4e6a0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
playbooks/init-credentials.yml
+8
-4
8 additions, 4 deletions
playbooks/init-credentials.yml
with
8 additions
and
4 deletions
playbooks/init-credentials.yml
+
8
−
4
View file @
0e6d757d
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
-
dnssec
-
dnssec
-
ssh
-
ssh
-
sso
-
sso
-
x509
# First of all, generate secrets from the passwords.yml file.
# First of all, generate secrets from the passwords.yml file.
-
name
:
Initialize secrets
-
name
:
Initialize secrets
...
@@ -50,12 +49,17 @@
...
@@ -50,12 +49,17 @@
-
name
:
Generate SSO credentials
-
name
:
Generate SSO credentials
local_action
:
ed25519 privkey="{{ credentials_dir }}/sso/secret.key" pubkey="{{ credentials_dir }}/sso/public.key"
local_action
:
ed25519 privkey="{{ credentials_dir }}/sso/secret.key" pubkey="{{ credentials_dir }}/sso/public.key"
-
name
:
Generate global DH params
local_action
:
command openssl dhparam -out "{{ credentials_dir }}/x509/dhparam" "{{ dhparam_bits | default('2048') }}" creates="{{ credentials_dir }}/x509/dhparam"
-
set_fact
:
-
set_fact
:
default_x509_ca_list
:
default_x509_ca_list
:
-
{
tag
:
x509
}
-
{
tag
:
x509
}
-
name
:
Create X509 CA directory
local_action
:
file path="{{ credentials_dir }}/{{ item.tag }}" state=directory
loop
:
"
{{
x509_ca_list
|
default(default_x509_ca_list)
}}"
-
name
:
Generate the X509 CA certificate
-
name
:
Generate the X509 CA certificate
local_action
:
x509_ca ca_subject="{{ item.subject | default('CN=Service CA') }}" ca_cert_path="{{ credentials_dir }}/{{ item.tag }}/ca.pem" ca_key_path="{{ credentials_dir }}/{{ item.tag }}/ca_private_key.pem"
local_action
:
x509_ca ca_subject="{{ item.subject | default('CN=Service CA') }}" ca_cert_path="{{ credentials_dir }}/{{ item.tag }}/ca.pem" ca_key_path="{{ credentials_dir }}/{{ item.tag }}/ca_private_key.pem"
loop
:
"
{{
x509_ca_list
|
default(default_x509_ca_list)
}}"
loop
:
"
{{
x509_ca_list
|
default(default_x509_ca_list)
}}"
-
name
:
Generate global DH params
local_action
:
command openssl dhparam -out "{{ credentials_dir }}/x509/dhparam" "{{ dhparam_bits | default('2048') }}" creates="{{ credentials_dir }}/x509/dhparam"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment