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

feat(docker): discourse container requires docker

This utility state may be removed from here in the future to use a
dedicated formula.
parent e379ff14
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .service.clean
- .package.clean
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .package
- .service
# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_docker_service_clean = tplroot ~ '.docker.service.clean' %}
{%- from tplroot | path_join("map.jinja") import discourse with context %}
include:
- {{ sls_docker_service_clean }}
discourse-docker-package-clean-pkg-removed:
pkg.removed:
- name: docker.io
- require:
- sls: {{ sls_docker_service_clean }}
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .install
# -*- coding: utf-8 -*-
# vim: ft=sls
discourse-docker-package-install-pkg-installed:
pkg.installed:
- name: docker.io
# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_discourse_clean = tplroot ~ '.clean' %}
{%- from tplroot | path_join("/map.jinja") import discourse with context %}
include:
- {{ sls_discourse_clean }}
discourse-docker-service-clean-service-dead:
service.dead:
- name: docker
- enable: False
- require:
- sls: {{ sls_discourse_clean }}
# -*- coding: utf-8 -*-
# vim: ft=sls
include:
- .running
# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_docker_package_install = tplroot ~ '.docker.package.install' %}
{%- from tplroot | path_join("map.jinja") import discourse with context %}
include:
- {{ sls_docker_package_install }}
discourse-docker-service-running-service-running:
service.running:
- name: docker
- enable: True
- require:
- sls: {{ sls_docker_package_install }}
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