Merge branch 'slaprunner'
[slapos.git] / software / neoppod / instance-neo-storage-mysql.cfg.in
1 [buildout]
2 extends = {{ master_cfg }}
3 parts += neo-storage-run-wrapper
4
5 [mariadb-instance]
6 recipe = slapos.cookbook:generic.mysql
7 user = user
8 database = neo
9
10 conf-file = ${directory:etc}/mariadb.cnf
11 # No networking (ip & port options)
12 data-directory = ${directory:srv_mariadb}
13 pid-file = ${directory:var_run}/mariadb.pid
14 socket = ${directory:var_run}/mariadb.sock
15 error-log = ${directory:log}/mariadb_error.log
16 slow-query-log = ${directory:log}/mariadb_slowquery.log
17
18 wrapper = ${directory:etc_run}/mariadb
19 update-wrapper = ${directory:etc_run}/mariadb_update
20 mysql-base-directory = {{ mariadb_location }}
21 mysql-binary = {{ mariadb_location }}/bin/mysql
22 mysql-install-binary = {{ mariadb_location }}/scripts/mysql_install_db
23 mysql-upgrade-binary = {{ mariadb_location }}/bin/mysql_upgrade
24 mysqld-binary = {{ mariadb_location }}/bin/mysqld
25
26 mroonga =
27
28 [neo-storage]
29 recipe = slapos.cookbook:neoppod.storage
30 binary = {{ bin_directory }}/neostorage
31 wrapper = ${directory:bin}/neostorage
32 logfile = ${directory:log}/neostorage.log
33 ip = [${slap-network-information:global-ipv6}]
34 cluster = ${slap-parameter:cluster}
35 masters = ${slap-parameter:masters}
36 verbose = ${slap-parameter:verbose}
37 database-adapter = MySQL
38 database-parameters = ${mariadb-instance:user}:${mariadb-instance:password}@${mariadb-instance:database}${mariadb-instance:socket}
39 wait-database = 60
40
41 [neo-storage-run-wrapper]
42 recipe = slapos.cookbook:symbolic.link
43 target-directory = ${directory:etc_run}
44 link-binary = ${neo-storage:wrapper}
45
46 [directory]
47 etc = ${buildout:directory}/etc
48 var = ${buildout:directory}/var
49 etc_run =  ${:etc}/run
50 var_run =  ${:var}/run
51 srv_mariadb = ${buildout:directory}/srv/mariadb