icinga

Icinga2 API client in Go
git clone https://git.olowe.co/icinga
Log | Files | Refs | README | LICENSE

.build.yml (402B)


      1 image: openbsd/latest
      2 packages:
      3   - go
      4   - icinga2
      5 sources:
      6   - https://git.sr.ht/~otl/icinga
      7 tasks:
      8   - icinga_setup: |
      9       doas icinga2 api setup
     10       doas tee /etc/icinga2/conf.d/api-users.conf <<EOF
     11       object ApiUser "icinga" {
     12         password = name
     13         permissions = ["*"]
     14       }
     15       EOF
     16       doas rcctl enable icinga2
     17       doas rcctl start icinga2
     18   - test: cd icinga && go test