Elukey has submitted this change and it was merged.

Change subject: Fix remaining issues with the Pivot UI
......................................................................


Fix remaining issues with the Pivot UI

A missing key in the config file prevents Pivot to properly bootstrap,
the /etc/pivot directory needs to be ensured.

Bug: T138262
Change-Id: I7120b3530331d6be7e3d28237a242a9a7b0de1b2
---
M modules/pivot/manifests/init.pp
M modules/pivot/templates/config.yaml.erb
2 files changed, 9 insertions(+), 0 deletions(-)

Approvals:
  Elukey: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/pivot/manifests/init.pp b/modules/pivot/manifests/init.pp
index 42ef4d7..70b2b2b 100644
--- a/modules/pivot/manifests/init.pp
+++ b/modules/pivot/manifests/init.pp
@@ -92,12 +92,20 @@
         source => 'puppet:///modules/pivot/pivot.profile.firejail',
     }
 
+    file { '/etc/pivot':
+        ensure => directory,
+        owner  => root,
+        group  => root,
+        mode   => '0755',
+    }
+
     file { '/etc/pivot/config.yaml':
         ensure  => present,
         owner   => 'root',
         group   => 'root',
         mode    => '0444',
         content => template('pivot/config.yaml.erb'),
+        require => File['/etc/pivot'],
     }
 
     systemd::syslog { 'pivot':
diff --git a/modules/pivot/templates/config.yaml.erb 
b/modules/pivot/templates/config.yaml.erb
index 99d52b0..6459038 100644
--- a/modules/pivot/templates/config.yaml.erb
+++ b/modules/pivot/templates/config.yaml.erb
@@ -106,6 +106,7 @@
     source: pageviews-hourly
     # The refresh rule describes how often the data cube looks for new data.
     # Default: 'query'/PT1M (every minute)
+    refreshRule:
       rule: query
 
     #defaultTimezone: Etc/UTC

-- 
To view, visit https://gerrit.wikimedia.org/r/315486
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7120b3530331d6be7e3d28237a242a9a7b0de1b2
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to