66
77 {%- if grains.kernel| lower in (' linux' ,) % }
88 {%- from tplroot ~ " /files/macros.jinja" import format_kwargs with context % }
9- {%- if d.pkg.compose.use_upstream == ' binary' and ' binary' in d.pkg.compose % }
9+ {%- set composer = d.pkg.compose % }
10+ {%- if composer.use_upstream == ' binary' and ' binary' in composer and ' path' in composer % }
1011
1112docker- compose- software- binary- install:
1213 {%- if ' deps' in d.pkg and d.pkg.deps % }
@@ -26,12 +27,12 @@ docker-compose-software-binary-install:
2627 - file : docker- compose- software- binary- install
2728 {%- endif % }
2829 file .managed:
29- - unless: test - x {{ d.pkg.compose .path }}/ docker- compose
30- - name: {{ d.pkg.compose .path }}/ docker- compose
31- - source: {{ d.pkg.compose .binary.source }}
30+ - unless: test - x {{ composer .path }}/ docker- compose
31+ - name: {{ composer .path }}/ docker- compose
32+ - source: {{ composer .binary.source }}
3233 - clean: {{ d.misc.clean }}
33- {%- if ' source_hash' in d.pkg.compose. binary and d.pkg.compose .binary.source_hash % }
34- - source_hash: {{ d.pkg.compose .binary.source_hash }}
34+ {%- if ' source_hash' in composer. binary and composer .binary.source_hash % }
35+ - source_hash: {{ composer .binary.source_hash }}
3536 {%- else % }
3637 - skip_verify: True
3738 {%- endif % }
@@ -46,12 +47,12 @@ docker-compose-software-binary-install:
4647 - mode
4748
4849 {%- if d.linux.altpriority| int == 0 or grains.os_family in (' Arch' , ' MacOS' ) % }
49- {%- for cmd in d.pkg.compose .commands| unique % }
50+ {%- for cmd in composer .commands| unique % }
5051
5152docker- compose- software- binary- install- symlink- {{ cmd }}:
5253 file .symlink:
5354 - name: / usr/ local/ bin / {{ cmd }}
54- - target: {{ d.pkg.compose .path }}/ {{ cmd }}
55+ - target: {{ composer .path }}/ {{ cmd }}
5556 - force: True
5657 - onchanges:
5758 - file : docker- compose- software- binary- install
0 commit comments