Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
mediaserver
envsetup
Commits
da20da90
Commit
da20da90
authored
4 years ago
by
Antoine Schildknecht
Browse files
Options
Downloads
Patches
Plain Diff
Add high-availibility playbook
parent
5e035ff7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+15
-0
15 additions, 0 deletions
Makefile
site-ha.yml
+34
-0
34 additions, 0 deletions
site-ha.yml
with
49 additions
and
0 deletions
Makefile
+
15
−
0
View file @
da20da90
...
...
@@ -75,6 +75,21 @@ endif
$(
ANSIBLE_BIN
)
-i
$(
i
)
-l
$(
l
)
-m
ping all
$(
ANSIBLE_PLAYBOOK_BIN
)
-i
$(
i
)
site.yml
-e
conf_update
=
true
-l
$(
l
)
-t
$(
t
)
.PHONY
:
deploy-ha
## deploy-ha: Run deployment playbooks : i=<inventory-path>, l=<host-or-group>, t=<tag>
deploy-ha
:
ifndef
i
$(
error i is undefined
)
endif
ifndef
l
$(
eval
l
=
all
)
endif
ifndef
t
$(
eval
t
=
all
)
endif
$(
ANSIBLE_BIN
)
-i
$(
i
)
-l
$(
l
)
-m
ping all
$(
ANSIBLE_PLAYBOOK_BIN
)
-i
$(
i
)
site-ha.yml
-e
conf_update
=
true
-l
$(
l
)
-t
$(
t
)
.PHONY
:
image-validate
## image-validate: Check that Packer image is valid : build=<path-to-packer-file>
image-validate
:
...
...
This diff is collapsed.
Click to expand it.
site-ha.yml
0 → 100755
+
34
−
0
View file @
da20da90
#!/usr/bin/env ansible-playbook
---
-
name
:
PYTHON
hosts
:
all
gather_facts
:
false
tasks
:
-
name
:
ensure python3 is installed
register
:
python_install
changed_when
:
"
'es_pyinstall'
in
python_install.stdout_lines"
raw
:
command -v python3 || echo es_pyinstall && apt update && apt install -y python3-minimal python3-apt
-
import_playbook
:
playbooks/postgres-ha.yml
tags
:
postgres
-
import_playbook
:
playbooks/msmonitor.yml
tags
:
monitor
-
import_playbook
:
playbooks/mirismanager.yml
tags
:
manager
-
import_playbook
:
playbooks/wowza.yml
tags
:
wowza
-
import_playbook
:
playbooks/celerity.yml
tags
:
celerity
-
import_playbook
:
playbooks/mediaworker.yml
tags
:
worker
-
import_playbook
:
playbooks/mediaserver.yml
tags
:
server
-
import_playbook
:
playbooks/mediavault.yml
tags
:
vault
-
import_playbook
:
playbooks/mediaimport.yml
tags
:
import
-
import_playbook
:
playbooks/netcapture.yml
tags
:
netcapture
...
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