recipe: allow to disable optionnal apps (#25233)

To disable an app in inventory.yaml, define empty dev-<app>, for
example:

  local:
    hosts:
      localhost:
        tenants_conf:
          dev-fargo:   # disabled
          dev-chrono:  # disabled
          dev-corbo:   # disabled
          dev-bijoe:   # disabled
This commit is contained in:
Thomas NOËL 2018-07-12 13:32:52 +02:00
parent 167f4a4a5b
commit 94adb4a896
1 changed files with 10 additions and 0 deletions

View File

@ -33,27 +33,37 @@
"slug": "eservices",
"title": "Démarches"
}},
{% if tenants_conf['dev-passerelle'] %}
{"create-passerelle": {
"url": "https://{{tenants_conf['dev-passerelle']}}/",
"template_name": "{{wcs_skeleton_filename}}",
"title": "Passerelle"
}},
{% endif %}
{% if tenants_conf['dev-fargo'] %}
{"create-fargo": {
"url": "https://{{tenants_conf['dev-fargo']}}/",
"title": "Porte-documents"
}},
{% endif %}
{% if tenants_conf['dev-chrono'] %}
{"create-chrono": {
"url": "https://{{tenants_conf['dev-chrono']}}/",
"title": "Agendas"
}},
{% endif %}
{% if tenants_conf['dev-corbo'] %}
{"create-corbo": {
"url": "https://{{tenants_conf['dev-corbo']}}/",
"title": "Annonces"
}},
{% endif %}
{% if tenants_conf['dev-bijoe'] %}
{"create-bijoe": {
"url": "https://{{tenants_conf['dev-bijoe']}}/",
"title": "Statistiques"
}},
{% endif %}
{"set-theme": {
"theme": "publik"
}}