Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icinga2 node wizard🧙‍♂️ creates 2 zones, despite Local zone == Parent zone #10270

Open
Al2Klimov opened this issue Dec 11, 2024 · 0 comments
Labels
area/cli Command line helpers area/setup Installation, systemd, sample files bug Something isn't working good first issue Good for newcomers

Comments

@Al2Klimov
Copy link
Member

Is your feature request related to a problem? Please describe.

If I specify equal names for Local zone name and Parent zone name, icinga2 node wizard creates both zones with identical names as I specified.

Local zone name [master2]: master
Parent zone name [master]:

Default global zones: global-templates director-global
Do you want to specify additional global zones? [y/N]:

Do you want to disable the inclusion of the conf.d directory [Y/n]:
Disabling the inclusion of the conf.d directory...

Done.

Now restart your Icinga 2 daemon to finish the installation!
[root@aklimov820479-2 ~]# cat /etc/icinga2/zones.conf
/*
 * Generated by Icinga 2 node setup commands
 * on 2024-12-11 10:39:26 +0000
 */

object Endpoint "master1" {
	host = "10.27.2.188"
	port = "5665"
}

object Zone "master" {
	endpoints = [ "master1" ]
}

object Endpoint "master2" {
}

object Zone "master" {
	endpoints = [ "master2" ]
	parent = "master"
}

object Zone "global-templates" {
	global = true
}

object Zone "director-global" {
	global = true
}


[root@aklimov820479-2 ~]#

Describe the solution you'd like

Create just one zone.

Describe alternatives you've considered

Reject such input explicitly.

@Al2Klimov Al2Klimov added bug Something isn't working area/setup Installation, systemd, sample files area/cli Command line helpers good first issue Good for newcomers labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers area/setup Installation, systemd, sample files bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant