Skip to content

Commit 2e4bfc8

Browse files
committed
Data for golang #68
1 parent 417b603 commit 2e4bfc8

File tree

6 files changed

+130
-0
lines changed

6 files changed

+130
-0
lines changed

data/golang/default.yaml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
golang::settings:
3+
tp_prerequisites: {}
4+
5+
urls:
6+
website: 'https://go.dev'
7+
issues: 'https://github.com/golang/go/issues'
8+
documentation: 'https://go.dev/doc/'
9+
source: 'https://github.com/golang/go'
10+
description: 'The Go programming language'
11+
12+
# Configured: +package -source -file +image
13+
install_method: 'package'
14+
15+
packages:
16+
main:
17+
name: golang
18+
ensure: present
19+
source: ~
20+
install_options: []
21+
params: {}
22+
providers:
23+
chocolatey:
24+
name: golang
25+
scoop:
26+
name: go
27+
winget:
28+
name: ~
29+
snap:
30+
name: go
31+
brew:
32+
name: go
33+
34+
info_commands:
35+
list: 'go list'
36+
debug_commands:
37+
debug: 'go debug'
38+
test_commands:
39+
status: 'go status'
40+
version_command: 'go version'
41+
help_command: 'go help'
42+
run_commands:
43+
start:
44+
command: 'golang start'
45+
46+
image:
47+
name: 'golang'
48+
49+
build:
50+
prerequisites:
51+
tp::install:
52+
- build-essential
53+
execs:
54+
- name: configure
55+
command: './configure'
56+
- name: build
57+
command: 'make'
58+
- name: setup
59+
command: 'make install'
60+
setup:
61+
enable: true
62+
files:
63+
golang:
64+
path: '/usr/local/bin/golang'
65+
mode: '0755'
66+
systemd_options: {}
67+
resources: {}
68+
manage_service: false
69+
manage_user: false
70+
71+
release:
72+
latest_version: ~
73+
prerequisites: {}
74+
latest_url: ~
75+
base_url: 'https://go.dev/dl/go$VERSION.$OS-$ARCH.tar.gz'
76+
file_name: 'go$VERSION.$OS-$ARCH..tar.gz'
77+
extracted_dir: 'go$VERSION.$OS-$ARCH.tar.gz'
78+
file_format: tar.gz
79+
setup:
80+
enable: true
81+
files:
82+
golang:
83+
path: '/usr/local/bin/golang'
84+
mode: '0755'
85+
resources: {}
86+
manage_service: false
87+
manage_user: false

data/golang/hiera.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
:hierarchy:
3+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
4+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}"
5+
- "%{title}/%{repo}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
6+
- "%{title}/%{repo}/osfamily/%{osfamily}"
7+
- "%{title}/%{repo}/default"
8+
- "%{title}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
9+
- "%{title}/operatingsystem/%{operatingsystem}"
10+
- "%{title}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
11+
- "%{title}/osfamily/%{osfamily}"
12+
- "%{title}/default"
13+
- "default/%{operatingsystem}%{operatingsystemmajrelease}"
14+
- "default/%{operatingsystem}"
15+
- default

data/golang/osfamily/Darwin.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
golang::settings:
3+
4+
release:
5+
https://go.dev/dl/go1.20.darwin-arm64.pkg

data/golang/osfamily/Debian.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
golang::settings:
3+
4+
files:
5+
init:
6+
path: '/etc/default/golang'

data/golang/osfamily/RedHat.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
golang::settings:
3+
dockerfile_prerequisites: 'RUN yum install -y wget which'

data/golang/osfamily/windows.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
golang::settings:
3+
4+
# If exe or msi package is available for direct download:
5+
package_provider: 'windows'
6+
package_source: 'https://go.dev/dl/go$VERSION.$OS-$ARCH.msi'
7+
8+
user_files:
9+
config:
10+
path: '%APPDATA%\golang\golang.conf'
11+
12+
user_dirs:
13+
config:
14+
path: '%APPDATA%\golang'

0 commit comments

Comments
 (0)