Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-public
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
system
ansible-public
Commits
b1302423
Commit
b1302423
authored
2 years ago
by
Antoine SCHILDKNECHT
Browse files
Options
Downloads
Plain Diff
Update tester role for configuration | refs
#37409
parents
d368bc27
d1f08541
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
roles/tester/defaults/main.yml
+21
-0
21 additions, 0 deletions
roles/tester/defaults/main.yml
roles/tester/tasks/main.yml
+16
-0
16 additions, 0 deletions
roles/tester/tasks/main.yml
with
37 additions
and
0 deletions
roles/tester/defaults/main.yml
+
21
−
0
View file @
b1302423
---
# Packages needed for the UbiCast tester installation
tester_packages
:
-
ubicast-env
-
ubicast-tester
-
ubicast-tester-nudgis
-
ubicast-tester-system
# Name of the system in the reports
#tester_system_name: "hostname"
# Sender of the email report
#tester_email_from: "ubicast.tester"
# Reciever of the email report
#tester_email_to: "customer@email.com"
# UbiCast admin reciever of the email report for premiums
#tester_email_admin: "sysadmin+premium@ubicast.eu"
# List of tests to ignore when executing the ubicast-tester
#tester_tests_ignored:
# - ntp.sh
# - email.sh
...
This diff is collapsed.
Click to expand it.
roles/tester/tasks/main.yml
+
16
−
0
View file @
b1302423
---
-
name
:
install tester packages
ansible.builtin.apt
:
force_apt_get
:
true
...
...
@@ -8,3 +9,18 @@
register
:
apt_status
retries
:
60
until
:
apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
-
name
:
tester configuration
ansible.builtin.replace
:
path
:
/etc/ubicast-tester/config.yml
regexp
:
'
^(\s*)#?{{
item.name
}}:(\s*).*$'
replace
:
'
\1{{item.name}}:\2{{
item.value
}}'
loop
:
-
{
name
:
'
name'
,
value
:
'
"{{
tester_system_name
|
d()
}}"'
}
-
{
name
:
'
from'
,
value
:
'
"{{
tester_email_from
|
d()
}}"'
}
-
{
name
:
'
to'
,
value
:
'
"{{
tester_email_to
|
d()
}}"'
}
-
{
name
:
'
admin'
,
value
:
'
"{{
tester_email_admin
|
d()
}}"'
}
-
{
name
:
'
ignored'
,
value
:
'
{{
tester_tests_ignored
|
d()
}}'
}
when
:
item.value != "" and item.value != '""'
...
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