Skip to content

gradata-systems/stroom-config-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This script queries the Stroom API to download a configuration ZIP bundle. The configuration is compared to the contents of a Git repository and any changes are checked in as a commit.

Prerequisites

  1. Private key for issuing git commands and a corresponding public key authorised by the target Git server.
  2. Existing Git remote, for which the user has push permissions.
  3. Stroom property stroom.export.enabled set to true.
  4. Stroom user account with the following minimum access attributes:
    1. Export Configuration cluster permission.
    2. Read access to the top-level System node, or at least one sub-item.
  5. OAuth2 client and secret access key (for client credentials flow).

Usage

Run as a one-time job

./scripts/sync-stroom-config.sh

Run on Kubernetes as a CronJob

  1. Customise /deploy/k8s/cronjob.yaml
  2. Create Secret containing api-key and ssh-key
  3. kubectl apply -f /deploy/k8s/cronjob.yaml

About

Checks Stroom configuration into a Git repository

Topics

Resources

License

Stars

Watchers

Forks

Packages