jackscott / golang-formula Goto Github PK
View Code? Open in Web Editor NEWSaltstack formula for Golang
License: Other
Saltstack formula for Golang
License: Other
Hi
I modified defaults.yaml with 1.7 new release
{% load_yaml as lookup_map %}
default:
prefix: /usr/local
go_root: /usr/local/go
go_path: /var/lib/golang
version: "1.7"
archive_hash: "702ad90f705365227e902b42d91dd1a40e48ca7f67a2f4b2fd052aaa4295cd95"
Debian: {}
RedHat: {}
{% endload %}
but I am still getting following old link to 1.6
[root@server01 ~]# ls -ld /etc/alternatives/golang-home-link
lrwxrwxrwx 1 root root 25 Aug 16 17:01 /etc/alternatives/golang-home-link -> /usr/local/golang/1.6/go/
[root@server01 ~]#
Could not find "1.6" variable got set anywhere else beside defaults.yaml in the formula files.
I was able to run following command to install golang 1.6 version on CentOS 7.
salt-call state.sls golang test=false
The question is how to tackle the reverse of "install" action cleanly ?
This is great to get go installed and setup, how about so we can go do things like "go.installed" via custom states. Anyone done anything like that yet?
I doing following command from a CentOS 7 VM box.
[root@server01 tmp]# salt-call state.sls golang test=false
[WARNING ] SSL Error on 29 ('216.58.216.208', 443): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:76
SSL Error on 29 ('216.58.216.208', 443): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:76 5)
[ERROR ] Unable to manage file: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
local:
----------
ID: golang|cache-archive
Function: file.managed
Name: /tmp/go1.6.linux-amd64.tar.gz
Result: False
Comment: Unable to manage file: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
Started: 15:30:05.937680
Duration: 89.049 ms
Changes:
<snipped>
[root@server01 tmp]# host 216.58.216.208
208.216.58.216.in-addr.arpa domain name pointer ord31s21-in-f208.1e100.net.
208.216.58.216.in-addr.arpa domain name pointer ord31s21-in-f16.1e100.net.
208.216.58.216.in-addr.arpa domain name pointer ord31s21-in-f16.1e100.net.
208.216.58.216.in-addr.arpa domain name pointer ord31s21-in-f208.1e100.net.
[root@server01 tmp]#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.