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
a76410c5
Commit
a76410c5
authored
7 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Do not run SSH-related tasks unless enable_ssh is set
parent
38c6838f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
playbooks/init-credentials.yml
+1
-7
1 addition, 7 deletions
playbooks/init-credentials.yml
roles/vagrant-compat/tasks/main.yml
+2
-0
2 additions, 0 deletions
roles/vagrant-compat/tasks/main.yml
with
3 additions
and
7 deletions
playbooks/init-credentials.yml
+
1
−
7
View file @
a76410c5
...
@@ -33,19 +33,13 @@
...
@@ -33,19 +33,13 @@
dest
:
"
{{
vars_dir
}}/secrets.yml"
dest
:
"
{{
vars_dir
}}/secrets.yml"
state
:
link
state
:
link
# Generate the SSH CA.
-
name
:
Generate SSH CA
-
name
:
Generate SSH CA
local_action
:
sshca ca="{{ credentials_dir }}/ssh/key"
local_action
:
sshca ca="{{ credentials_dir }}/ssh/key"
when
:
enable_ssh
# Generate the SSO ED25519 key pair.
-
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"
# Generate all the X509 service credentials. The first time this
# runs, the service CA will be initialized too.
#- name: Generate X509 credentials for all services
# local_action: x509 ca_root="{{ credentials_dir }}/x509" ca_subject="{{ x509_ca_subject | default('') }}" domain="{{ domain }}"
-
name
:
Generate global DH params
-
name
:
Generate global DH params
local_action
:
command openssl dhparam -out "{{ credentials_dir }}/x509/dhparam" "{{ dhparam_bits | default('2048') }}" creates="{{ credentials_dir }}/x509/dhparam"
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.
roles/vagrant-compat/tasks/main.yml
+
2
−
0
View file @
a76410c5
...
@@ -9,3 +9,5 @@
...
@@ -9,3 +9,5 @@
copy
:
copy
:
dest
:
/etc/ssh/authorized_keys/vagrant
dest
:
/etc/ssh/authorized_keys/vagrant
content
:
"
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==
vagrant
insecure
public
key"
content
:
"
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ==
vagrant
insecure
public
key"
when
:
enable_ssh
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