Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
9e96c3b7
Commit
9e96c3b7
authored
9 years ago
by
Karl Kornel
Browse files
Options
Downloads
Patches
Plain Diff
dns: Make dns_cache a class-level variable.
parent
f34709b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+3
-0
3 additions, 0 deletions
NEWS
manifests/dns.pp
+7
-1
7 additions, 1 deletion
manifests/dns.pp
with
10 additions
and
1 deletion
NEWS
+
3
−
0
View file @
9e96c3b7
unreleased (??)
unreleased (??)
[dns] Make dns_cache a class-level parameter, so that it can be set in
Hiera (as base::dns::dns_cache) (akkornel)
[dns] Add support for Livermore, via Hiera. Set base::dns::livermore (in
[dns] Add support for Livermore, via Hiera. Set base::dns::livermore (in
Hiera) to true, and Livermore DNS gets added to resolv.conf (akkornel)
Hiera) to true, and Livermore DNS gets added to resolv.conf (akkornel)
...
...
This diff is collapsed.
Click to expand it.
manifests/dns.pp
+
7
−
1
View file @
9e96c3b7
...
@@ -4,15 +4,21 @@
...
@@ -4,15 +4,21 @@
# resolv.conf file. This is helpful in DHCP environments.
# resolv.conf file. This is helpful in DHCP environments.
# To enable, use Hiera to set base::dns::no_resolv_conf to "true".
# To enable, use Hiera to set base::dns::no_resolv_conf to "true".
# If you use a DNS cache, you can change base::dns::dns_cache in Hiera to true,
# and 127.0.0.1 will be set as the first nameserver.
# For Livermore sites, change base::dns::livermore to true, and the Livermore
# For Livermore sites, change base::dns::livermore to true, and the Livermore
# DNS server will be added above the standard DNS servers.
# DNS server will be added above the standard DNS servers. If dns_cache is
# also true, Livermore DNS will be second (right below 127.0.0.1).
class
base::dns
(
class
base::dns
(
$no_resolv_conf
=
false
,
$no_resolv_conf
=
false
,
$dns_cache
=
'NONE'
,
$livermore
=
false
,
$livermore
=
false
,
)
{
)
{
if
!
$no_resolv_conf
{
if
!
$no_resolv_conf
{
base::dns::resolv_conf
{
$::fqdn_lc
:
base::dns::resolv_conf
{
$::fqdn_lc
:
ensure
=>
present
,
ensure
=>
present
,
dns_cache
=>
$dns_cache
,
livermore
=>
$livermore
,
livermore
=>
$livermore
,
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment