diff --git a/data/config/test-services.hcl b/data/config/test-services.hcl new file mode 100644 index 0000000..80d5aee --- /dev/null +++ b/data/config/test-services.hcl @@ -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 + } + } + } + } +} \ No newline at end of file diff --git a/data/config/test-servies-2.json b/data/config/test-servies-2.json deleted file mode 100644 index e20d70a..0000000 --- a/data/config/test-servies-2.json +++ /dev/null @@ -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" - } - } - } - } -} \ No newline at end of file