packages-formula/packages/golang/goget.sls

16 lines
380 B
Text
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import packages with context %}
{%- for package in packages.golang.goget %}
packages-golang-goget-{{ package }}-cmd-run:
cmd.run:
- name: go get {{ package }}
- runas: {{ packages.rootuser }}
{%- endfor %}