diff --git a/ansible/files/exporter/labgrid-wigyori.yaml b/ansible/files/exporter/labgrid-wigyori.yaml index 5f74ff6a8..3c301f09e 100644 --- a/ansible/files/exporter/labgrid-wigyori.yaml +++ b/ansible/files/exporter/labgrid-wigyori.yaml @@ -83,6 +83,10 @@ labgrid-wigyori-linksprite_a10-pcduino: NetworkService: address: "192.168.1.1%eth0.205" username: "root" + PDUDaemonPort: + host: localhost:16421 + pdu: clusterhat + index: 1 labgrid-wigyori-pine64_pine64-plus: location: wigyorilab @@ -97,4 +101,7 @@ labgrid-wigyori-pine64_pine64-plus: NetworkService: address: "192.168.1.1%eth0.206" username: "root" - + PDUDaemonPort: + host: localhost:16421 + pdu: clusterhat + index: 2 diff --git a/ansible/files/exporter/pdudaemon-labgrid-wigyori.conf b/ansible/files/exporter/pdudaemon-labgrid-wigyori.conf new file mode 100644 index 000000000..b0193f6fb --- /dev/null +++ b/ansible/files/exporter/pdudaemon-labgrid-wigyori.conf @@ -0,0 +1,15 @@ +{ + "daemon": { + "hostname": "localhost", + "port": 16421, + "logging_level": "DEBUG", + "listener": "http" + }, + "pdus": { + "clusterhat": { + "driver": "localcmdline", + "cmd_on": "/usr/sbin/clusterctrl on p%s", + "cmd_off": "/usr/sbin/clusterctrl off p%s" + } + } +} diff --git a/ansible/files/exporter/pdudaemon.service b/ansible/files/exporter/pdudaemon.service index 61840dc5c..efe131abd 100644 --- a/ansible/files/exporter/pdudaemon.service +++ b/ansible/files/exporter/pdudaemon.service @@ -8,6 +8,7 @@ DynamicUser=yes StateDirectory=pdudaemon ProtectHome=true Restart=on-abnormal +SupplementaryGroups=i2c [Install] WantedBy=multi-user.target