Skip to content

Commit

Permalink
Merge pull request #180 from mhyzon/master
Browse files Browse the repository at this point in the history
Allow managing backup cron w/o managing the config file
  • Loading branch information
LongLiveCHIEF authored Mar 8, 2018
2 parents e9d8d28 + 039a840 commit 4d8d21b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@
$backup_cron_enable = $::gitlab::backup_cron_enable
$backup_cron_minute = $::gitlab::backup_cron_minute
$backup_cron_hour = $::gitlab::backup_cron_hour
if empty($::gitlab::backup_cron_hour) {
if empty($::gitlab::backup_cron_skips) {
$backup_cron_skips = ''
} else {
$_backup_cron_skips = join($::gitlab::backup_cron_skips, ',')
$backup_cron_skips = "SKIP:${_backup_cron_skips}"
$backup_cron_skips = "SKIP=${_backup_cron_skips}"
}

# replicate $nginx to $mattermost_nginx if $mattermost_nginx_eq_nginx true
Expand Down Expand Up @@ -136,8 +136,10 @@

if $service_manage {
# configure gitlab using the official tool
File[$config_file] {
notify => Exec['gitlab_reconfigure']
if $config_manage {
File[$config_file] {
notify => Exec['gitlab_reconfigure']
}
}
if ! empty($secrets) {
File[$secrets_file] {
Expand Down

0 comments on commit 4d8d21b

Please sign in to comment.