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

Provide salt spm deployments

parent 2dc9c5d0
No related branches found
No related tags found
No related merge requests found
name: deploy name: deploy
os: Debian, Ubuntu os: Debian, Ubuntu
os_family: Debian os_family: Debian
version: 201907 version: 0.2.0
release: 1 release: 1
summary: Formula that allows you clone code from git repositories summary: Deploy code
description: It primarily ships a user with proper ssh config and a target directory plus ssh key. description: Formula that allows you clone code from git repositories and additional tasks for their deployments
\ No newline at end of file
{% from "deploy/map.jinja" import deploy with context %}
{% for project_name, project_config in deploy.projects.iteritems() if project_config.get('spm', False) %}
{% set spm_config = project_config.spm %}
{% if spm_config %}
spm build {{ project_config.path }}:
cmd.run:
- require_in:
- cmd: spm create_repo /srv/spm_build
{% endif %}
{% endfor %}
spm create_repo /srv/spm_build:
cmd.run
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment