try quoting it
authorPeter Palfrader <peter@palfrader.org>
Sun, 19 May 2013 12:51:28 +0000 (14:51 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 19 May 2013 12:51:28 +0000 (14:51 +0200)
modules/hardware/manifests/init.pp

index 0ab1eb3..921eef8 100644 (file)
@@ -1,7 +1,7 @@
 class hardware {
        include hardware::raid
 
-       if $::systemproductname in ["ProLiant BL495c G5", "ProLiant DL385 G1", "ProLiant DL380 G4"] {
+       if "$::systemproductname" in ["ProLiant BL495c G5", "ProLiant DL385 G1", "ProLiant DL380 G4"] {
                file { '/etc/apt/preferences.d/dsa-hp-tools':
                        content => "Package: hp-health\nPin: version 8.6*\nPin-Priority: 1100\n"
                }