This commit is contained in:
Philippe Caseiro 2022-06-30 16:45:33 +02:00
parent 9b7a1b731b
commit acffc4346a
2 changed files with 127 additions and 61 deletions

View File

@ -0,0 +1,127 @@
LokiStack = {
Name: "LokiStack"
Global: {
Vars: {}
ConfigFiles: [
{
destination: /etc/hosts
source: hosts.pktpl.hcl
mode: 600
owner: root
group: root
}
]
}
Services: {
Loki: {
ConfigFiles: [
{
destination: /etc/loki/loki-local-config.yaml
source: loki-local-config.pktpl.hcl
mode: 600
owner: loki
service: loki
group: grafana
}
]
Repositories: {
Grafana: {
type: helm
name: grafana
url: https://grafana.github.io/helm-charts
enabled:true
}
AlpineTesting: {
type: apk
name: testing
url: http://mirrors.bfsu.edu.cn/alpine/edge/testing
enabled: true
}
}
Packages: {
loki: {
name: loki
action: install
}
promtail: {
name: loki-promtail
action: install
}
loki-helm: {
type: helm
name: loki
repo: grafana/loki-simple-scalable
}
}
Vars: {
AuthEnabled: false
User: loki
Group: grafana
HTTPPort: 3100
GRPCPort: 9096
AlertManagerURL: http://localhost:9093
StorageRoot: /var/loki
SharedStore: filesystem
ObjectStore: filesystem
LogLevel: error
S3: {
URL:
BucketName:
APIKey:
APISecretKey:
}
}
Daemons: {
Loki: {
name: loki
enabled: true
}
}
Users: {
loki: {
username: loki
group: grafana
home : /srv/loki
shell: /bin/nologin
}
}
}
Grafana: {
ConfigFiles: [
{
destination: /etc/grafana.ini
source: grafana.ini.pktpl.hcl
mode: 700
owner: grafana
group: grafana
}
]
Packages: {
grafana: {
name: grafana
action: install
}
}
Vars: {
AuthEnabled: false
User: toto
Group: grafana
}
Users: {
grafana: {
username: grafana
group: grafana
home: /srv/grafana
shell: /bin/nologin
}
}
Daemons: {
grafana: {
name: grafana
type: auto
enabled: true
}
}
}
}
}

View File

@ -1,61 +0,0 @@
{
"Name": "OpenNebula",
"Services": {
"Global": {
"Vars": {
"EnableOpenNebula": true
},
"ConfigFiles": [
{
"destination": "/etc/hosts",
"source": "hosts.pktpl.hcl",
"mode": "600",
"owner": "root",
"group": "root"
}
]
},
"OpenNebula": {
"EnabledBy": { "var": "EnableOpenNebula", "value": true },
"ConfigFiles": [
{
"destination": "/etc/one/oned.conf",
"source": "loki-local-config.pktpl.hcl",
"mode": "600",
"owner": "loki",
"group": "grafana"
}
],
"Vars": {
"AuthEnabled": false,
"User": "loki",
"Group": "grafana",
"HTTPPort": "3100",
"GRPCPort": "9096",
"AlertManagerURL": "http://localhost:9093",
"StorageRoot": "/var/loki",
"SharedStore": "filesystem",
"ObjectStore": "filesystem",
"LogLevel": "error",
"S3": {
"URL": "",
"BucketName": "",
"APIKey": "",
"APISecretKey": ""
}
},
"Daemon": {
"name": "oned",
"enabled": true
},
"Users": {
"loki": {
"username": "oneadmin",
"group": "oneadmin",
"home" : "/var/lib/one",
"shell": "/bin/sh"
}
}
}
}
}