Commit 79a95dd4 authored by Daniel Dehennin's avatar Daniel Dehennin
Browse files

feat(sources): `sources` is a better name for what it does

We will then introduce source hacks to automate some tasks.
parent 4c1c5904
......@@ -3,12 +3,12 @@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_git_clone = tplroot ~ '.git.clone' %}
{%- set sls_sources_clone = tplroot ~ '.sources.clone' %}
{%- from tplroot | path_join("map.jinja") import discourse with context %}
{%- from tplroot | path_join("libtofs.jinja") import files_switch with context %}
include:
- {{ sls_git_clone }}
- {{ sls_sources_clone }}
{%- set config = discourse.directory | path_join('containers', 'app.yml') %}
......@@ -28,4 +28,4 @@ discourse-config-file-file-managed:
- context:
discourse: {{ discourse | json }}
- require:
- sls: {{ sls_git_clone }}
- sls: {{ sls_sources_clone }}
......@@ -5,6 +5,6 @@ include:
- .net-tools
- .netcat
- .docker
- .git
- .sources
- .config
- .service
......@@ -3,15 +3,15 @@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_git_package_install = tplroot ~ '.git.package.install' %}
{%- set sls_sources_package_install = tplroot ~ '.sources.package.install' %}
{%- from tplroot | path_join("map.jinja") import discourse with context %}
include:
- {{ sls_git_package_install }}
- {{ sls_sources_package_install }}
discourse-git-clone-git-latest:
discourse-sources-clone-git-latest:
git.latest:
- name: {{ discourse | traverse('docker-git-url') }}
- target: {{ discourse.directory }}
- require:
- sls: {{ sls_git_package_install }}
- sls: {{ sls_sources_package_install }}
# -*- coding: utf-8 -*-
# vim: ft=sls
discourse-git-package-install-pkg-removed:
discourse-sources-package-install-pkg-removed:
pkg.removed:
- name: git
# -*- coding: utf-8 -*-
# vim: ft=sls
discourse-git-package-install-pkg-installed:
discourse-sources-package-install-pkg-installed:
pkg.installed:
- name: git
......@@ -52,7 +52,7 @@ Available states
This state will configure the deployement by generating the
``containers/app.yml`` file.
It depends on ``discourse.git.package.install``.
It depends on ``discourse.sources.clone``.
``discourse.service``
^^^^^^^^^^^^^^^^^^^^^
......@@ -141,8 +141,8 @@ Utility states
The following states are used by the previous states to setup the
environment.
``discourse.git``
`````````````````
``discourse.sources``
`````````````````````
*Meta-state (This is a state that includes other states)*.
......
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