XMLRPC / HA-Sync: add services keyword (introduced https://github.com/opnsense/core/issues/4834) in xmlrpc templates for existing plugins.

This commit is contained in:
Ad Schellevis
2021-03-24 16:35:09 +01:00
parent 75d5af5228
commit f557e2b09a
12 changed files with 12 additions and 0 deletions
@@ -60,5 +60,6 @@ function bind_xmlrpc_sync()
$result['id'] = 'bind';
$result['section'] = 'OPNsense.bind';
$result['description'] = gettext('BIND domain name service');
$result['services'] = ['named'];
return array($result);
}
@@ -66,5 +66,6 @@ function qemuguestagent_xmlrpc_sync()
$result['id'] = 'qemuguestagent';
$result['section'] = 'OPNsense.QemuGuestAgent';
$result['description'] = gettext('QEMU Guest Agent');
$result['services'] = ['qemu-ga'];
return array($result);
}
@@ -82,5 +82,6 @@ function zabbixagent_xmlrpc_sync()
$result['id'] = 'zabbixagent';
$result['section'] = 'OPNsense.zabbixagent.settings';
$result['description'] = gettext('Zabbix monitoring agent');
$result['services'] = ['zabbix_agentd'];
return array($result);
}
@@ -142,5 +142,6 @@ function frr_xmlrpc_sync()
$result['id'] = 'quagga';
$result['section'] = 'OPNsense.quagga';
$result['description'] = gettext('FRR');
$result['services'] = ['frr'];
return array($result);
}
@@ -79,5 +79,6 @@ function haproxy_xmlrpc_sync()
$result['id'] = 'haproxy';
$result['section'] = 'OPNsense.HAProxy';
$result['description'] = gettext('HAProxy Load Balancer');
$result['services'] = ['haproxy'];
return array($result);
}
@@ -73,6 +73,7 @@ function relayd_xmlrpc_sync()
$result[] = array(
'description' => gettext('Relayd Load Balancer'),
'section' => 'OPNsense.relayd',
'services' => ['relayd'],
/* kept for backwards compat: */
'id' => 'lb',
);
@@ -59,6 +59,7 @@ function tayga_xmlrpc_sync()
$result['id'] = 'taygavpn';
$result['section'] = 'OPNsense.tayga';
$result['description'] = gettext('Tayga');
$result['services'] = ['tayga'];
return array($result);
}
@@ -75,5 +75,6 @@ function wireguard_xmlrpc_sync()
$result['id'] = 'wireguard';
$result['section'] = 'OPNsense.wireguard';
$result['description'] = gettext('WireGuard');
$result['services'] = ['wireguard-go'];
return array($result);
}
@@ -79,5 +79,6 @@ function openconnect_xmlrpc_sync()
$result['id'] = 'openconnectvpn';
$result['section'] = 'OPNsense.openconnect';
$result['description'] = gettext('OpenConnect');
$result['services'] = ['tincd'];
return array($result);
}
@@ -135,6 +135,7 @@ function stunnel_xmlrpc_sync()
'description' => gettext('Stunnel'),
'section' => 'OPNsense.Stunnel',
'id' => 'stunnel',
'services' => ['stunnel', 'identd_stunnel'],
);
return $result;
}
@@ -104,5 +104,6 @@ function tinc_xmlrpc_sync()
$result['id'] = 'tincvpn';
$result['section'] = 'OPNsense.Tinc';
$result['description'] = gettext('Tinc VPN');
$result['services'] = ['tincd'];
return array($result);
}
@@ -61,5 +61,6 @@ function nginx_xmlrpc_sync()
$result['id'] = 'nginx';
$result['section'] = 'OPNsense.Nginx';
$result['description'] = gettext('Nginx Load Balancer');
$result['services'] = ['nginx'];
return array($result);
}