fans:rainier: Add fan monitor config files
This commit adds the fan monitor config files for the rainier type
machines. The recipe updates to install these files into a rainier image
will collectively be done after all fan application config files are
added.
Change-Id: I73f59f1fd8b390597001b5c699cff30562f22300
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json
new file mode 100644
index 0000000..a6a2cf8
--- /dev/null
+++ b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/everest/config.json
@@ -0,0 +1,107 @@
+{
+ "fans": [
+ {
+ "inventory": "/system/chassis/motherboard/fan0",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan0_0",
+ "has_target": true
+ },
+ {
+ "name": "fan0_1",
+ "has_target": false,
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan1",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan1_0",
+ "has_target": true
+ },
+ {
+ "name": "fan1_1",
+ "has_target": false,
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan2",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan2_0",
+ "has_target": true
+ },
+ {
+ "name": "fan2_1",
+ "has_target": false,
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan3",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan3_0",
+ "has_target": true
+ },
+ {
+ "name": "fan3_1",
+ "has_target": false,
+ }
+ ]
+ }
+ ],
+ "sensor_trust_groups": [
+ {
+ "class": "NonzeroSpeed",
+ "group": [
+ {
+ "name": "fan0_1"
+ },
+ {
+ "name": "fan1_1"
+ },
+ {
+ "name": "fan2_1"
+ },
+ {
+ "name": "fan3_1"
+ },
+ {
+ "name": "fan0_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan1_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan2_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan3_0",
+ "in_trust": false
+ }
+ ]
+ }
+ ]
+}
diff --git a/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json
new file mode 100644
index 0000000..95acaa3
--- /dev/null
+++ b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-2u/config.json
@@ -0,0 +1,167 @@
+{
+ "fans": [
+ {
+ "inventory": "/system/chassis/motherboard/fan0",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan0_0",
+ "has_target": true
+ },
+ {
+ "name": "fan0_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan1",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan1_0",
+ "has_target": true
+ },
+ {
+ "name": "fan1_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan2",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan2_0",
+ "has_target": true
+ },
+ {
+ "name": "fan2_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan3",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan3_0",
+ "has_target": true
+ },
+ {
+ "name": "fan3_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan4",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan4_0",
+ "has_target": true
+ },
+ {
+ "name": "fan4_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan5",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan5_0",
+ "has_target": true
+ },
+ {
+ "name": "fan5_1",
+ "has_target": false,
+ "factor": 1.45,
+ "offset": -909
+ }
+ ]
+ }
+ ],
+ "sensor_trust_groups": [
+ {
+ "class": "NonzeroSpeed",
+ "group": [
+ {
+ "name": "fan0_1"
+ },
+ {
+ "name": "fan1_1"
+ },
+ {
+ "name": "fan2_1"
+ },
+ {
+ "name": "fan3_1"
+ },
+ {
+ "name": "fan4_1"
+ },
+ {
+ "name": "fan5_1"
+ },
+ {
+ "name": "fan0_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan1_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan2_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan3_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan4_0",
+ "in_trust": false
+ },
+ {
+ "name": "fan5_0",
+ "in_trust": false
+ }
+ ]
+ }
+ ]
+}
diff --git a/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json
new file mode 100644
index 0000000..ce69e20
--- /dev/null
+++ b/recipes-phosphor/fans/phosphor-fan-monitor-config/rainier/rainier-4u/config.json
@@ -0,0 +1,82 @@
+{
+ "fans": [
+ {
+ "inventory": "/system/chassis/motherboard/fan0",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan0_0",
+ "has_target": true
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan1",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan1_0",
+ "has_target": true
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan2",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan2_0",
+ "has_target": true
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan3",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan3_0",
+ "has_target": true
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan4",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan4_0",
+ "has_target": true
+ }
+ ]
+ },
+ {
+ "inventory": "/system/chassis/motherboard/fan5",
+ "functional_delay": 5,
+ "allowed_out_of_range_time": 30,
+ "deviation": 15,
+ "num_sensors_nonfunc_for_fan_nonfunc": 1,
+ "sensors": [
+ {
+ "name": "fan5_0",
+ "has_target": true
+ }
+ ]
+ }
+ ]
+}