parent
f77de7992b
commit
0cb0904d14
|
@ -268,7 +268,8 @@ class SelfServiceController extends ActionController
|
||||||
'fetch_agent_name' => $settings->get('self-service/agent_name') === 'hostname',
|
'fetch_agent_name' => $settings->get('self-service/agent_name') === 'hostname',
|
||||||
'fetch_agent_fqdn' => $settings->get('self-service/agent_name') === 'fqdn',
|
'fetch_agent_fqdn' => $settings->get('self-service/agent_name') === 'fqdn',
|
||||||
'transform_hostname' => $transform,
|
'transform_hostname' => $transform,
|
||||||
'flush_api_directory' => $settings->get('self-service/flush_api_dir') === 'y'
|
'flush_api_directory' => $settings->get('self-service/flush_api_dir') === 'y',
|
||||||
|
'ConvertEndpointIPConfig' => '0',
|
||||||
];
|
];
|
||||||
$username = $settings->get('self-service/icinga_service_user');
|
$username = $settings->get('self-service/icinga_service_user');
|
||||||
if (strlen($username)) {
|
if (strlen($username)) {
|
||||||
|
|
|
@ -39,6 +39,19 @@ class SelfServiceSettingsForm extends DirectorForm
|
||||||
],
|
],
|
||||||
'value' => $settings->getStoredOrDefaultValue('self-service/transform_hostname')
|
'value' => $settings->getStoredOrDefaultValue('self-service/transform_hostname')
|
||||||
]);
|
]);
|
||||||
|
$this->addElement('select', 'transform_parent_host', [
|
||||||
|
'label' => $this->translate('Transform Parent Host to IP'),
|
||||||
|
'description' => $this->translate(
|
||||||
|
'This is only important in case your master/satellite nodes do not'
|
||||||
|
. ' have IP addresses as their "host" property. The Agent can be'
|
||||||
|
. ' told to issue related DNS lookups on it\' own'
|
||||||
|
),
|
||||||
|
'multiOptions' => [
|
||||||
|
'0' => $this->translate("Don't care, my host settings are fine"),
|
||||||
|
'1' => $this->translate('My Agents should use DNS to look up Endpoint names'),
|
||||||
|
],
|
||||||
|
'value' => $settings->getStoredOrDefaultValue('self-service/transform_parent_host')
|
||||||
|
]);
|
||||||
|
|
||||||
$this->addElement('extensibleSet', 'global_zones', [
|
$this->addElement('extensibleSet', 'global_zones', [
|
||||||
'label' => $this->translate('Global Zones'),
|
'label' => $this->translate('Global Zones'),
|
||||||
|
|
|
@ -11,23 +11,25 @@ class Settings
|
||||||
protected $cache;
|
protected $cache;
|
||||||
|
|
||||||
protected $defaults = [
|
protected $defaults = [
|
||||||
'default_global_zone' => 'director-global',
|
'default_global_zone' => 'director-global',
|
||||||
'icinga_package_name' => 'director',
|
'icinga_package_name' => 'director',
|
||||||
'magic_apply_for' => '_director_apply_for', /* @deprecated to be removed in 1.8.0 #1850 #1851 */
|
/* @deprecated to be removed in 1.8.0 #1850 #1851 */
|
||||||
'config_format' => 'v2',
|
'magic_apply_for' => '_director_apply_for',
|
||||||
'override_services_varname' => '_override_servicevars',
|
'config_format' => 'v2',
|
||||||
'override_services_templatename' => 'host var overrides (Director)',
|
'override_services_varname' => '_override_servicevars',
|
||||||
'disable_all_jobs' => 'n', // 'y'
|
'override_services_templatename' => 'host var overrides (Director)',
|
||||||
'enable_audit_log' => 'n',
|
'disable_all_jobs' => 'n', // 'y'
|
||||||
'deployment_mode_v1' => 'active-passive',
|
'enable_audit_log' => 'n',
|
||||||
'deployment_path_v1' => null,
|
'deployment_mode_v1' => 'active-passive',
|
||||||
'activation_script_v1' => null,
|
'deployment_path_v1' => null,
|
||||||
'self-service/agent_name' => 'fqdn',
|
'activation_script_v1' => null,
|
||||||
'self-service/transform_hostname' => '0',
|
'self-service/agent_name' => 'fqdn',
|
||||||
'self-service/global_zones' => ['director-global'],
|
'self-service/transform_hostname' => '0',
|
||||||
'ignore_bug7530' => 'n',
|
'self-service/transform_parent_host' => '0',
|
||||||
// 'experimental_features' => null, // 'allow'
|
'self-service/global_zones' => ['director-global'],
|
||||||
// 'master_zone' => null,
|
'ignore_bug7530' => 'n',
|
||||||
|
// 'experimental_features' => null, // 'allow'
|
||||||
|
// 'master_zone' => null,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $jsonEncode = [
|
protected $jsonEncode = [
|
||||||
|
|
Loading…
Reference in New Issue