Skip to content
Snippets Groups Projects
Commit 8d384383 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Deprecate the ssh key for deployments

parent 6277a151
Branches
No related tags found
No related merge requests found
...@@ -80,6 +80,7 @@ It usually should not differ between deployments and might be assigned to many m ...@@ -80,6 +80,7 @@ It usually should not differ between deployments and might be assigned to many m
- `deploy.config.key` **no default value** - `deploy.config.key` **no default value**
A private key that is able to access repositories. A private key that is able to access repositories.
**Deprecated** Use [gitlab deploy tokens](https://doc.it.hs-hannover.de/books/sysadmin/page/gitlab-deploy-with-token-and-without-ssh) instead:
- `deploy.config.deploy_directory` _default: `/srv/repo`_ - `deploy.config.deploy_directory` _default: `/srv/repo`_
The directory in which git clones are located. The directory in which git clones are located.
- `deploy.config.venv_directory` _default: `/srv/venv`_ - `deploy.config.venv_directory` _default: `/srv/venv`_
......
...@@ -4,6 +4,7 @@ deployer: ...@@ -4,6 +4,7 @@ deployer:
user.absent: [] user.absent: []
group.absent: [] group.absent: []
{% if salt.pillar.get('deploy:config:key:', None) is not None %}
deploy_user_ssh_known_hosts_file_present: deploy_user_ssh_known_hosts_file_present:
file.managed: file.managed:
...@@ -50,6 +51,8 @@ deploy_key: ...@@ -50,6 +51,8 @@ deploy_key:
- group: root - group: root
- makedirs: True - makedirs: True
{% endif %}
{% for project_name, project_config in deploy.projects.items() %} {% for project_name, project_config in deploy.projects.items() %}
{% set config_user_groups = project_config.get('user_groups', []) %} {% set config_user_groups = project_config.get('user_groups', []) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment