Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
provision
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
provision
Commits
f7a102ff
Commit
f7a102ff
authored
Sep 24, 2010
by
anarcat
Committed by
anarcat
Sep 24, 2010
Browse files
Options
Downloads
Patches
Plain Diff
try to naively implement a slave dns class, which is a failure so far
parent
53abc86b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dns/bind/bind_service.inc
+24
-0
24 additions, 0 deletions
dns/bind/bind_service.inc
dns/bind/slave.tpl.php
+5
-0
5 additions, 0 deletions
dns/bind/slave.tpl.php
with
29 additions
and
0 deletions
dns/bind/bind_service.inc
+
24
−
0
View file @
f7a102ff
...
...
@@ -30,8 +30,32 @@ class provisionService_dns_bind extends provisionService_dns {
}
}
class
provisionService_dns_bind_slave
extends
provisionService_dns
{
protected
$application_name
=
'bind'
;
protected
$has_restart_cmd
=
TRUE
;
function
default_restart_cmd
()
{
return
provisionService_dns_bind
::
bind_default_restart_cmd
();
}
function
init_server
()
{
parent
::
init_server
();
$this
->
server
->
setProperty
(
'dns_master_server'
,
null
);
$this
->
configs
[
'slave'
][]
=
'provisionConfig_bind_slave'
;
}
function
parse_configs
()
{
$this
->
restart
();
}
}
class
provisionConfig_bind_zone
extends
provisionConfig_dns_zone
{
}
class
provisionConfig_bind_server
extends
provisionConfig_dns_server
{
}
class
provisionConfig_bind_slave
extends
provisionConfig_dns_server
{
}
This diff is collapsed.
Click to expand it.
dns/bind/slave.tpl.php
0 → 100644
+
5
−
0
View file @
f7a102ff
<?php
foreach
(
$records
as
$key
=>
$name
)
{
printf
(
'zone "%s" { type slave; file "%s/%s.zone"; masters { %s; }; allow-query { any; }; };'
.
"
\n
"
,
$name
,
$dns_zoned_path
,
$name
,
$master_server
);
}
?>
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