From b811143e9c01ad186ef68969717b338117c7a5b4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 17 Oct 2020 11:44:18 +0200 Subject: [PATCH] add onboarding config --- defaults/main.yml | 7 ++++++- templates/etc/sysconfig/renovate.j2 | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index c0fd276..e661992 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -6,7 +6,7 @@ renovatebot_service_stopped: False # @var renovatebot_interval:description: Interval for the systemd timer. renovatebot_interval: daily -# @var :description: > +# @var renovatebot_github_token:description: > # If you are running on any platform except github.com, it's important to also configure # a personal access token for github.com. It's used when fetching release notes for repositories # in order to increase the hourly API limit. @@ -20,8 +20,13 @@ renovatebot_autodiscover: False # @var renovatebot_autodiscover_filter:example: $ "project/*" # @var renovatebot_autodiscover_filter: $ "_unset_" renovatebot_repositories: [] + renovatebot_endpoint: "https://github.company.com/api/v3" renovatebot_git_author: "Renovate Bot " renovatebot_platform: github # @var renovatebot_token:description: Personal access token for your bot account. # renovatebot_token: $ "_unset_" + +renovatebot_onboarding_config: + extends: + - "config:base" diff --git a/templates/etc/sysconfig/renovate.j2 b/templates/etc/sysconfig/renovate.j2 index ce8adef..8413141 100644 --- a/templates/etc/sysconfig/renovate.j2 +++ b/templates/etc/sysconfig/renovate.j2 @@ -16,5 +16,6 @@ RENOVATE_AUTODISCOVER={{ renovatebot_autodiscover | bool | lower }} RENOVATE_AUTODISCOVER_FILTER={{ renovatebot_autodiscover_filter }} {% endif %} {% elif renovatebot_repositories | length > 0 %} -RENOVATE_REPOSITORIES={{ renovatebot_repositories | to_json }} +RENOVATE_REPOSITORIES={{ renovatebot_repositories | join(",") }} {% endif %} +RENOVATE_ONBOARDING_CONFIG={{ renovatebot_onboarding_config | to_json }}