-
Notifications
You must be signed in to change notification settings - Fork 112
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
Hiera Integration #239
Comments
This part of this module is not designed to be integrated with hiera directly. However you can use the |
The most direct translation of your code above to using Hiera is:
Hiera:
This assigns a variable for each parameter from the Unfortunately, I don't know the syntax or semantics for the new |
Thanks you so much for your help. Its working perfectly. |
@jearls do you think we should give up on the idea of having the options file as define and instead make it a class, forcing people to only have "1" of them and allowing them to use native hiera lookups? |
To be honest, I think the way its implemented right now makes no sense -- forcing the consumer of the module to specify the path to the options file when that path is already hard-coded into the main template. As a class, you could have an optional parameter for the path to the options file which people could use if they're providing their own template for the main named.conf file that puts the options somewhere else, but otherwise use the default parameters to just get the "right" path in the first place. However, it might make sense to use a modified version of the defined type if there is a reason to have more than one options file - for example, to have a different set of options for a view, where the defined type has a In either case, it's a major version change to either replace the defined type with a class or to redo the defined type to be useful for multiple options files. |
First of all thanks you so much for writing such a nice module. I am running into an issue where I need to pull following IP address from hiera.
I have multiple bind servers running in multiple region and most of the servers are slave servers. Also, we're using puppet role base installation.
Below is my named.conf.option file.
dns::server::options { '/etc/named/named.conf.options':
listen_on_port => '53',
listen_on => [ '127.0.0.1', '1.2.3.4' ],
dump_file => '/var/named/data/cache_dump.db',
statistics_file => '/var/named/data/named_stats.txt',
memstatistics_file => '/var/named/data/named_mem_stats.txt',
allow_query => [ any ],
transfers => [ '1.3.4.0/8' ],
allow_notify => [ '1.3.4.0/8' ],
also_notify => [ '1.3.4.5', '6.7.8.9' ],
recursion => 'yes',
}
}
What do I have to add/modify in your module in order to add above values in Hiera ?
The text was updated successfully, but these errors were encountered: