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
ef15f63c
Commit
ef15f63c
authored
9 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
dns: remove no-longer-used file cache_packages.pp
parent
6545dc02
No related branches found
Branches containing commit
Tags
release/004.055
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/dns/cache_packages.pp
+0
-53
0 additions, 53 deletions
manifests/dns/cache_packages.pp
with
0 additions
and
53 deletions
manifests/dns/cache_packages.pp
deleted
100644 → 0
+
0
−
53
View file @
6545dc02
# REMOVE THIS FILE
# NOTE: This class only works with Debian.
# $cache_size_entries: the number of entries to cache.
# Default: 10000
class
base::dns::cache_packages
(
$cache_size_entries
=
10000
){
if
(
$::osfamily
!=
'Debian'
)
{
fail
'base::dns::cache_packages only works with Debian'
}
# We use stanford-dnscache for wheezy and dnsmasq for jessie and later.
if
(
$::lsbdistcodename
==
'wheezy'
)
{
# WHEEZY
# Stanford package for DNS caching.
package
{
'stanford-dnscache'
:
ensure
=>
present
,
notify
=>
Exec
[
'chown dnslog:dnslog /var/log/dnscache'
],
}
# This is required because ownership is wrong on reinstall of packages
# but not on initial install.
exec
{
'chown dnslog:dnslog /var/log/dnscache'
:
command
=>
'chown -R dnslog:dnslog /var/log/dnscache'
,
refreshonly
=>
true
,
}
}
else
{
# JESSIE and beyond
package
{
'dnsmasq'
:
ensure
=>
present
,
}
# Call the template for /etc/dnsmasq.d/stanford-dnscache.conf. This
# template uses the $cache_size_entries class parameter.
file
{
'/etc/dnsmasq.d/stanford-dnscache.conf'
:
content
=>
template
(
'base/dns/etc/dnsmasq.d/stanford-dnscache.conf'
)
require
=>
Package
[
'dnsmasq'
],
notify
=>
Service
[
'dnsmasq'
],
}
# Define the service and make sure it runs. Restart the service if
# /etc/resolv.conf changes.
service
{
'dnsmasq'
:
ensure
=>
'running'
,
require
=>
Package
[
'dnsmasq'
],
subscribe
=>
File
[
'/etc/resolv.conf'
],
}
}
}
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