Commit e3f57b41 authored by Daniel Dehennin's avatar Daniel Dehennin
Browse files

feat(deployment): discourse is deployed from git repository

The `discourse.git.package` state may be removed in the future to use
a dedicated formula.
parent 57fe7c7e
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .package.clean
# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_git_package_install = tplroot ~ '.git.package.install' %}
{%- from tplroot | path_join("map.jinja") import discourse with context %}
include:
- {{ sls_git_package_install }}
discourse-git-clone-git-latest:
git.latest:
- name: {{ discourse | traverse('docker-git-url') }}
- target: {{ discourse.directory }}
- require:
- sls: {{ sls_git_package_install }}
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .package
- .clone
# -*- coding: utf-8 -*-
# vim: ft=sls
discourse-git-package-install-pkg-removed:
pkg.removed:
- name: git
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .install
# -*- coding: utf-8 -*-
# vim: ft=sls
discourse-git-package-install-pkg-installed:
pkg.installed:
- name: git
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