paulbsd-salt/states/golang/install.sls

19 lines
640 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "golang/map.jinja" import golang with context %}
golang-archive-extract:
archive.extracted:
2020-11-30 22:29:49 +01:00
- name: {{ golang.release_dir }}/go{{ golang.version }}
2020-07-10 00:58:55 +02:00
- source: {{ golang.mirror }}/go{{ golang.version }}.{{ golang.os }}-{{ golang.arch }}.tar.gz
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2020-07-10 00:58:55 +02:00
- options: --transform 's/^go\///g'
2020-11-30 22:29:49 +01:00
- if_missing: {{ golang.release_dir }}/go{{ golang.version }}
2020-07-10 00:58:55 +02:00
golang-binary-symlink:
file.symlink:
- name: {{ golang.install_dir }}/go
2020-11-30 22:29:49 +01:00
- target: {{ golang.release_dir }}/go{{ golang.version }}
2020-09-12 17:41:35 +02:00
- force: true
2020-07-10 00:58:55 +02:00
- require:
2020-11-30 22:29:49 +01:00
- archive: golang-archive-extract