Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos.package
Commits
8cb17135
Commit
8cb17135
authored
Jul 22, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Add roles/radvd to configure radvd
parent
4c83d562
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
1 deletion
+42
-1
playbook/handlers/main.yml
playbook/handlers/main.yml
+4
-0
playbook/local-frontend.yml
playbook/local-frontend.yml
+22
-1
playbook/roles/radvd/handlers/main.yml
playbook/roles/radvd/handlers/main.yml
+4
-0
playbook/roles/radvd/meta/main.yml
playbook/roles/radvd/meta/main.yml
+3
-0
playbook/roles/radvd/tasks/main.yml
playbook/roles/radvd/tasks/main.yml
+2
-0
playbook/roles/radvd/templates/radvd.conf.in
playbook/roles/radvd/templates/radvd.conf.in
+7
-0
No files found.
playbook/handlers/main.yml
0 → 100644
View file @
8cb17135
---
-
name
:
restart re6stnet
service
:
name=re6stnet state=restarted
playbook/local-frontend.yml
View file @
8cb17135
...
@@ -2,8 +2,29 @@
...
@@ -2,8 +2,29 @@
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
vars_prompt
:
-
name
:
"
network_prefix"
prompt
:
"
RADVD
Adv.
Network"
private
:
no
roles
:
roles
:
-
{
role
:
package
,
package_name
:
radvd
,
package_state
:
present
}
-
{
role
:
radvd
}
-
{
role
:
package
,
package_name
:
dnsmasq
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
dnsmasq
,
package_state
:
present
}
tasks
:
-
name
:
Check if configuration exists already
stat
:
path=/etc/re6stnet/re6stnet.conf
register
:
re6stnet_conf
-
lineinfile
:
dest=/etc/re6stnet/re6stnet.conf line='interface eth0' state=present
notify
:
restart re6stnet
when
:
re6stnet_conf.stat.exists == True
-
lineinfile
:
dest=/etc/re6stnet/re6stnet.conf line='main-interface eth0' state=present
notify
:
restart re6stnet
when
:
re6stnet_conf.stat.exists == True
-
lineinfile
:
dest=/etc/re6stnet/re6stnet.conf line='daemon "/usr/sbin/radvd -n /etc/radvd.conf"' state=present
notify
:
restart re6stnet
when
:
re6stnet_conf.stat.exists == True
playbook/roles/radvd/handlers/main.yml
0 → 100644
View file @
8cb17135
---
-
name
:
restart re6stnet
service
:
name=re6stnet state=restarted
playbook/roles/radvd/meta/main.yml
0 → 100644
View file @
8cb17135
---
dependencies
:
-
{
role
:
package
,
package_name
:
radvd
,
package_state
:
present
}
playbook/roles/radvd/tasks/main.yml
0 → 100644
View file @
8cb17135
-
name
:
copy templates
template
:
src=radvd.conf.in dest=/etc/radvd.conf mode=660
playbook/roles/radvd/templates/radvd.conf.in
0 → 100644
View file @
8cb17135
interface eth0
{
AdvSendAdvert on;
prefix {{ network_prefix}}c000/64
{
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment