Filippo Giunchedi has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/383528 )

Change subject: profile: add check_smart to selectively enable ::smart class
......................................................................


profile: add check_smart to selectively enable ::smart class

Bug: T86552
Change-Id: Iba27c2deaca2761b596bc9d15d3ea3ae459a7a1f
---
M modules/profile/manifests/base.pp
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Filippo Giunchedi: Looks good to me, approved
  Volans: Looks good to me, but someone else must approve



diff --git a/modules/profile/manifests/base.pp 
b/modules/profile/manifests/base.pp
index 997cadc..59213e0 100644
--- a/modules/profile/manifests/base.pp
+++ b/modules/profile/manifests/base.pp
@@ -18,6 +18,7 @@
     $check_raid_policy = hiera('profile::base::check_raid_policy', ''),
     $check_raid_interval = hiera('profile::base::check_raid_interval', 10),
     $check_raid_retry = hiera('profile::base::check_raid_retry', 10),
+    $check_smart = hiera('profile::base::check_smart', false),
 ) {
     require ::profile::base::certificates
     class { '::apt':
@@ -148,4 +149,8 @@
     else {
         grub::bootparam { 'isolcpus': ensure => 'absent' }
     }
+
+    if $check_smart and $facts['is_virtual'] == false {
+        class { '::smart': }
+    }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iba27c2deaca2761b596bc9d15d3ea3ae459a7a1f
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Volans <rcocci...@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