Filippo Giunchedi has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/28/383528/1
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: newchange
Gerrit-Change-Id: Iba27c2deaca2761b596bc9d15d3ea3ae459a7a1f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits