Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
Nounous
Ansible
Commits
821330bf
Verified
Commit
821330bf
authored
3 years ago
by
shirenn
🌊
Committed by
ynerant
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[radvd] pep-crans
parent
ea85a834
No related branches found
Branches containing commit
No related tags found
1 merge request
!254
Cachan
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
group_vars/radvd.yml
+23
-0
23 additions, 0 deletions
group_vars/radvd.yml
plays/radvd.yml
+7
-0
7 additions, 0 deletions
plays/radvd.yml
roles/radvd/templates/radvd.conf.j2
+5
-2
5 additions, 2 deletions
roles/radvd/templates/radvd.conf.j2
with
35 additions
and
2 deletions
group_vars/radvd.yml
0 → 100644
+
23
−
0
View file @
821330bf
glob_radvd
:
subnets
:
-
name
:
infra
prefix
:
fd00:0:0:11::/64
no_gateway
:
yes
dnssl
:
infra.crans.org
dns
:
-
fd00::11:0:ff:fe00:9911
-
name
:
adh
prefix
:
2a0c:700:12::/64
dnssl
:
adh.crans.org
dns
:
-
2a0c:700:12::ff:fe00:9912
-
name
:
adh_nat
prefix
:
2a0c:700:13::/64
dnssl
:
adh-nat.crans.org
dns
:
-
2a0c:700:13::ff:fe00:9913
-
name
:
federez
prefix
:
2a0c:700:254::/64
dnssl
:
federez.net
dns
:
-
2a0c:700:254::ff:fe00:99fe
This diff is collapsed.
Click to expand it.
plays/radvd.yml
0 → 100755
+
7
−
0
View file @
821330bf
#!/usr/bin/env ansible-playbook
---
-
hosts
:
crans_routeurs
vars
:
radvd
:
"
{{
glob_radvd
|
default({})
|
combine(loc_radvd
|
default({}))
}}"
roles
:
-
radvd
This diff is collapsed.
Click to expand it.
roles/radvd/templates/radvd.conf.j2
+
5
−
2
View file @
821330bf
{% for subnet in subnets %}
{% for subnet in
radvd.
subnets %}
interface {{ interfaces[subnet.name] }} {
AdvSendAdvert on;
AdvDefaultPreference high;
{% if subnet.no_gateway is defined and subnet.no_gateway %}
AdvDefaultLifetime 0;
{% endif %}
MaxRtrAdvInterval 30;
prefix {{ subnet.prefix }} {
...
...
@@ -9,7 +12,7 @@ interface {{ interfaces[subnet.name] }} {
};
# La zone DNS
DNSSL {{ subnet.
name | replace('_', '-') }}.crans.org
{};
DNSSL {{ subnet.
dnssl }}
{};
# Les DNS récursifs
{% for dns in subnet.dns %}
...
...
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