 805633972b
			
		
	
	
		805633972b
		
			
		
	
	
	
	
		
			
			```bash
Examining prometheus/archive/install.sls of type state
[201] Trailing whitespace
prometheus/archive/install.sls:33
    - source_hash: {{ p.pkg[name]['archive_hash'] }}
[201] Trailing whitespace
prometheus/archive/install.sls:44
```
		
	
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			746 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			746 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # -*- coding: utf-8 -*-
 | |
| # vim: ft=sls
 | |
| 
 | |
| {#- Get the `tplroot` from `tpldir` #}
 | |
| {%- set tplroot = tpldir.split('/')[0] %}
 | |
| {%- from tplroot ~ "/map.jinja" import prometheus with context %}
 | |
| {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
 | |
| {%- set sls_service_clean = tplroot ~ '.service.clean' %}
 | |
| 
 | |
| include:
 | |
|   - {{ sls_service_clean }}
 | |
| 
 | |
|     {%- for name in prometheus.wanted %}
 | |
| 
 | |
| prometheus-config-file-{{ name }}-file-absent:
 | |
|   file.absent:
 | |
|     - name: {{ prometheus.dir.etc }}/{{ name }}.yml
 | |
|     - require_in:
 | |
|       - file: prometheus-config-file-etc-file-absent
 | |
| 
 | |
|     {%- endfor %}
 | |
| 
 | |
| prometheus-config-file-etc-file-absent:
 | |
|   file.absent:
 | |
|     - name: {{ prometheus.dir.etc }}
 | |
|     - require:
 | |
|       - sls: {{ sls_service_clean }}
 |