Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
hpc-team
HPCasCode
Commits
654a7ed0
Commit
654a7ed0
authored
3 years ago
by
Simon Michnowicz
Browse files
Options
Downloads
Patches
Plain Diff
update NAT role with keepalived service file
parent
ef5300d3
No related branches found
No related tags found
1 merge request
!460
Upcoming maintenance
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/nat_server/tasks/main.yml
+13
-0
13 additions, 0 deletions
roles/nat_server/tasks/main.yml
roles/nat_server/templates/keepalived.service.j2
+14
-0
14 additions, 0 deletions
roles/nat_server/templates/keepalived.service.j2
with
27 additions
and
0 deletions
roles/nat_server/tasks/main.yml
+
13
−
0
View file @
654a7ed0
...
...
@@ -68,6 +68,11 @@
become
:
true
become_user
:
root
-
name
:
Template keepalived service file
template
:
dest=/etc/systemd/system/keepalived.service src=keepalived.service.j2
become
:
true
become_user
:
root
-
name
:
Enable and start keepalived
service
:
name
:
keepalived
...
...
@@ -75,3 +80,11 @@
enabled
:
yes
become
:
true
become_user
:
root
-
name
:
Restart iptables service
service
:
name
:
iptables
state
:
restarted
become
:
true
become_user
:
root
This diff is collapsed.
Click to expand it.
roles/nat_server/templates/keepalived.service.j2
0 → 100644
+
14
−
0
View file @
654a7ed0
# systemd servive unit file for Keepalived
[Unit]
Description=Keepalived service for High Availability with VRRP
After=network.target network-online.target
ConditionFileNotEmpty=/etc/keepalived/keepalived.conf
[Service]
Type=simple
ExecStart=/usr/sbin/keepalived --dont-fork
ExecReload=/bin/kill -s HUP $MAINPID #Define the procedure of killing the processes belonging to the Keepalived service unit.
KillMode=process
[Install]
WantedBy=multi-user.target
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