Skip to content

Commit

Permalink
base: disable Zincati and pinger on non-release builds
Browse files Browse the repository at this point in the history
On non-release/local developer builds, we don't want Zincati or pinger
to be active by default. Key off of the OSTree version and add a config
dropin to do this.

See discussions about this in:
coreos/fedora-coreos-tracker#212
  • Loading branch information
jlebon committed Jul 10, 2019
1 parent 44dcadc commit 8bae3e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fedora-coreos-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ postprocess:
set -xeuo pipefail
rm -rf /etc/systemd/system/*
systemctl preset-all
# Disable Zincati and fedora-coreos-pinger on non-release builds
# https://github.com/coreos/fedora-coreos-tracker/issues/212
- |
#!/usr/bin/env bash
set -xeuo pipefail
source /etc/os-release
if [[ $OSTREE_VERSION = *.dev* ]]; then
mkdir -p /etc/fedora-coreos-pinger/config.d /etc/zincati/config.d
echo -e '# https://github.com/coreos/fedora-coreos-tracker/issues/212\nreporting.enabled = false' > /etc/fedora-coreos-pinger/config.d/95-disable-on-dev.toml
echo -e '# https://github.com/coreos/fedora-coreos-tracker/issues/212\nupdates.enabled = false' > /etc/zincati/config.d/95-disable-on-dev.toml
fi
packages:
# Security
Expand Down

0 comments on commit 8bae3e3

Please sign in to comment.