Skip to content
New issue

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

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

Already on GitHub? # to your account

variable munin_node_allowed_cidrs wrongly templated? #24

Open
logiczny opened this issue Sep 16, 2023 · 0 comments
Open

variable munin_node_allowed_cidrs wrongly templated? #24

logiczny opened this issue Sep 16, 2023 · 0 comments

Comments

@logiczny
Copy link

logiczny commented Sep 16, 2023

Hi, I love your work and I use many of your projects daily!
I've noticed that when I setup a variable per host (in hosts.ini) like so:
192.168.1.3 munin_node_allowed_cidrs=192.168.1.2/32
or
192.168.1.3 munin_node_allowed_cidrs=[192.168.1.2/32]
or even
192.168.1.3 munin_node_allowed_cidrs=[ 192.168.1.2/32 ]

I'm getting something like this in 192.168.1.3's munin-node.conf:

(...)
cidr_allow 1
cidr_allow 9
cidr_allow 2
cidr_allow .
cidr_allow 1
cidr_allow 6
cidr_allow 8
cidr_allow .
cidr_allow 1
cidr_allow .
cidr_allow 2
cidr_allow /
cidr_allow 3
cidr_allow 2
(...)

instead of
cidr_allow 192.168.1.2/32

When I setup a variable in a role at a playbook - it works like expected, but I need different IP addresses per host.
Am I doing something wrong here?

Greetings from Poland!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant