Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
1ddda313
Commit
1ddda313
authored
Oct 29, 2019
by
julian.gethmann
Browse files
Add tango role (as described by AB how-to)
parent
3f2cad54
Changes
5
Hide whitespace changes
Inline
Side-by-side
hosts
View file @
1ddda313
...
...
@@ -153,6 +153,9 @@ idefix.las.kit.edu
teefax.las.kit.edu
lysander.las.kit.edu
[tango]
gutemine.las.kit.edu
# semi stable
[tgu]
pepe.las.kit.edu
...
...
roles/tango/handlers/main.yml
0 → 100644
View file @
1ddda313
---
-
name
:
start maria
service
:
name
:
mariadb
state
:
started
enabled
:
true
roles/tango/tasks/main.yml
0 → 100644
View file @
1ddda313
---
-
name
:
install dependencies
become
:
yes
dnf
:
name
:
[
"
omniORB"
,
"
omniORB-devel"
,
"
cppzmq-devel"
,
"
zlib-devel"
,
"
mariadb-devel"
,
"
doxygen"
,
"
cmake"
]
state
:
installed
notify
:
-
start maria
-
name
:
get tango sources
unarchive
:
remote_src
:
yes
src
:
"
https://github.com/tango-controls/TangoSourceDistribution/releases/
download/{{
tango_version
}}{{
tango_version_ext
}}/tango-{{
tango_version
}}{{
tango_version_ext
}}.tar.gz"
dest
:
/tmp/
creates
:
"
/tmp/tango-{{
tango_version
}}"
owner
:
undine
group
:
users
-
name
:
Add maria-db config
become
:
yes
become_user
:
undine
blockinfile
:
path
:
/home/undine/.my.conf
block
:
|
[client]
user=root
create
:
yes
group
:
users
backup
:
yes
mode
:
0700
owner
:
undine
-
name
:
build dir
file
:
path
:
"
/tmp/tango-{{
tango_version
}}/build"
state
:
directory
owner
:
undine
group
:
users
-
name
:
fix permissions
file
:
path
:
"
/tmp/tango-{{
tango_version
}}/configure"
state
:
file
mode
:
0777
-
name
:
configure and build tango (1)
command
:
argv
:
-
"
/bin/sh"
-
"
../configure"
-
"
--enable-mariadb"
-
"
--with-mariadb-lib=/usr/lib64"
-
"
--with-mariadbclient-include=/usr/include/mysql"
-
"
--enable-dbserver"
-
"
--enable-dbcreate"
chdir
:
"
/tmp/tango-{{
tango_version
}}/build"
creates
:
"
/tmp/tango-{{
tango_version
}}/build/Makefile"
register
:
config_out
# - name: check configuration (2)
-
name
:
build (3)
make
:
chdir
:
"
/tmp/tango-{{
tango_version
}}/build"
target
:
all
-
name
:
install (4)
become
:
yes
make
:
chdir
:
"
/tmp/tango-{{
tango_version
}}/build"
target
:
install
roles/tango/vars/main.yml
0 → 100644
View file @
1ddda313
tango_version
:
9.3.3
tango_version_ext
:
"
-rc1"
tango.yml
0 → 100644
View file @
1ddda313
---
-
hosts
:
tango
roles
:
-
tango
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