diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53c5de3..fc188f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,9 @@ on: pull_request: env: # renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver-coerced - GOLANGCI_LINT_VERSION: "v2.6.2" + GOLANGCI_LINT_VERSION: "v2.7.2" # renovate: datasource=github-releases depName=goreleaser/goreleaser versioning=semver-coerced - GORELEASER_VERSION: "v2.12.7" + GORELEASER_VERSION: "v2.13.1" # renovate: datasource=github-releases depName=ko-build/ko versioning=semver-coerced KO_VERSION: "v0.18.0" jobs: @@ -25,15 +25,15 @@ jobs: id-token: write steps: - name: Checkout - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 with: go-version-file: 'go.mod' - name: Run golangci-lint - uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9 + uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9 with: version: ${{ env.GOLANGCI_LINT_VERSION }} - name: Run tests diff --git a/examples/systemd/puppet-agent-exporter.service b/examples/systemd/puppet-agent-exporter.service new file mode 100644 index 0000000..3df6b2d --- /dev/null +++ b/examples/systemd/puppet-agent-exporter.service @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2025 CERN +# +# SPDX-License-Identifier: GPL-3.0-or-later + +[Unit] +Description=Puppet Agent Exporter +After=network.target + +[Service] +ExecStart=/usr/bin/puppet-agent-exporter +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target diff --git a/go.mod b/go.mod index b8a98f1..5e57d6e 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,12 @@ module github.com/cernops/puppet-agent-exporter -go 1.25.4 +go 1.25.5 require ( github.com/alecthomas/kingpin/v2 v2.4.0 github.com/prometheus/client_golang v1.23.2 go.uber.org/multierr v1.11.0 - go.uber.org/zap v1.27.0 + go.uber.org/zap v1.27.1 golang.org/x/term v0.37.0 gopkg.in/ini.v1 v1.67.0 gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index 4295f1a..8bb0915 100644 --- a/go.sum +++ b/go.sum @@ -43,8 +43,8 @@ go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= -go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.uber.org/zap v1.27.1 h1:08RqriUEv8+ArZRYSTXy1LeBScaMpVSTBhCeaZYfMYc= +go.uber.org/zap v1.27.1/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=