updated golang state

This commit is contained in:
Paul 2020-11-30 22:29:49 +01:00
parent 696aed5ea2
commit b497def28a
2 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,9 @@
---
golang:
enabled: true
install_dir: /usr/local
install_dir: /usr/local/apps
release_dir: /usr/local/apps/releases
mirror: https://dl.google.com/go/
version: 1.14.2
version: 1.15.5
os: linux
arch: amd64

View File

@ -2,17 +2,17 @@
{%- from "golang/map.jinja" import golang with context %}
golang-archive-extract:
archive.extracted:
- name: {{ golang.install_dir }}/go{{ golang.version }}
- name: {{ golang.release_dir }}/go{{ golang.version }}
- source: {{ golang.mirror }}/go{{ golang.version }}.{{ golang.os }}-{{ golang.arch }}.tar.gz
- skip_verify: true
- enforce_toplevel: false
- options: --transform 's/^go\///g'
- if_missing: {{ golang.install_dir }}/go{{ golang.version }}
- if_missing: {{ golang.release_dir }}/go{{ golang.version }}
golang-binary-symlink:
file.symlink:
- name: {{ golang.install_dir }}/go
- target: {{ golang.install_dir }}/go{{ golang.version }}
- target: {{ golang.release_dir }}/go{{ golang.version }}
- force: true
- require:
- archive: golang-archive-extract