Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
tango
Commits
0c6d815e
Commit
0c6d815e
authored
2 years ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-983
: Basic Ansible Deployment
parent
29868f87
No related branches found
No related tags found
1 merge request
!469
L2SS-983: Deployment through environments and ansible
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
deploy/deploy.yml
+52
-4
52 additions, 4 deletions
deploy/deploy.yml
docker-compose/Makefile
+1
-0
1 addition, 0 deletions
docker-compose/Makefile
with
54 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
1
View file @
0c6d815e
...
...
@@ -683,7 +683,7 @@ stages:
-
cd deploy || exit
1
-
echo "[all]" > hosts
-
echo "stat ansible_host=$DEPLOY_HOST ansible_user=$DEPLOY_USER" >> hosts
-
ansible-playbook deploy.yml --extra-vars station_version=$CI_COMMIT_TAG
-
ansible-playbook deploy.yml --extra-vars station_version=$CI_COMMIT_TAG
--extra-vars station_config=CS001_ConfigDb.json
.deploy_l2ts_base
:
extends
:
.base_deploy
variables
:
...
...
This diff is collapsed.
Click to expand it.
deploy/deploy.yml
+
52
−
4
View file @
0c6d815e
...
...
@@ -2,6 +2,11 @@
-
name
:
StationControl Early Deployment
hosts
:
all
tasks
:
-
name
:
Register make installation status
command
:
which make
changed_when
:
false
failed_when
:
make_installed.rc not in [0,1]
register
:
make_installed
-
name
:
Register git installation status
command
:
which git
changed_when
:
false
...
...
@@ -28,6 +33,10 @@
args
:
chdir
:
~/tango
register
:
pending_changes
-
name
:
Check make installation status
fail
:
msg
:
"
Make
does
not
appear
to
be
installed!"
when
:
make_installed.rc not in [0]
-
name
:
Check git installation status
fail
:
msg
:
"
Git
does
not
appear
to
be
installed!"
...
...
@@ -39,9 +48,48 @@
-
name
:
Check pending changes
fail
:
msg
:
"
Deployment
repository
seems
to
have
pending
changes!"
when
:
pending_changes not in [0]
-
name
:
Update sources
when
:
pending_changes.rc not in [0]
-
name
:
Stop Current Station
changed_when
:
false
shell
:
"
make
stop"
args
:
chdir
:
~/tango/docker-compose
-
name
:
Update Sources
changed_when
:
false
shell
:
"
git
checkout
v
{{
station_version
}}"
shell
:
"
git
checkout
{{
station_version
}}"
args
:
chdir
:
~/tango
-
name
:
Pull Images
changed_when
:
false
shell
:
"
make
pull"
args
:
chdir
:
~/tango/docker-compose
-
name
:
Build Images
changed_when
:
false
shell
:
"
make
build"
args
:
chdir
:
~/tango/docker-compose
-
name
:
Start Database
changed_when
:
false
shell
:
"
make
minimal"
args
:
chdir
:
~/tango/docker-compose
-
name
:
Wait for databaseds
ansible.builtin.wait_for
:
port
:
10000
delay
:
10
-
name
:
Update Base Database Config
changed_when
:
false
shell
:
"
./sbin/load_ConfigDb.sh
CDB/LOFAR_ConfigDb.json"
args
:
chdir
:
~/tango/
-
name
:
Update Station Database Config
changed_when
:
false
shell
:
"
./sbin/load_ConfigDb.sh
CDB/stations/{{
station_config
}}"
args
:
chdir
:
~/tango/
-
name
:
Start Station
changed_when
:
false
shell
:
"
make
start"
args
:
chdir
:
~/tango/docker-compose
This diff is collapsed.
Click to expand it.
docker-compose/Makefile
+
1
−
0
View file @
0c6d815e
...
...
@@ -149,6 +149,7 @@ DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) \
XAUTHORITY_MOUNT
=
$(
XAUTHORITY_MOUNT
)
\
CONTAINER_NAME_PREFIX
=
$(
CONTAINER_NAME_PREFIX
)
\
COMPOSE_IGNORE_ORPHANS
=
true
\
COMPOSE_HTTP_TIMEOUT
=
180
\
CONTAINER_EXECUTION_UID
=
$(
shell
id
-u
)
\
DOCKER_GID
=
$(
DOCKER_GID
)
\
TEST_MODULE
=
$(
INTEGRATION_MODULE
)
...
...
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