summaryrefslogtreecommitdiff
path: root/databases/leofs/files/patch-apps-leo_gateway-priv-leo_gateway.schema
blob: ce62e91a817cb65b17386d0065292ac0914801dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
--- apps/leo_gateway/priv/leo_gateway.schema.orig	2014-08-06 05:56:49.000000000 +0300
+++ apps/leo_gateway/priv/leo_gateway.schema	2014-08-13 23:13:17.000000000 +0300
@@ -37,7 +37,7 @@
  "sasl.sasl_error_logger",
  [
   {datatype, string},
-  {default, "./log/sasl/sasl-error.log"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/sasl/sasl-error.log"}
  ]}.
 
 {translation, "sasl.sasl_error_logger",
@@ -63,7 +63,7 @@
  "sasl.error_logger_mf_dir",
  "sasl.error_logger_mf_dir",
  [
-  {default, "./log/sasl"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/sasl"}
  ]}.
 
 %% @doc Specifies how large each individual file can be.
@@ -104,7 +104,7 @@
          Managers = cuttlefish_util:conf_get_value("managers", Conf),
          case string:tokens(Managers, "[ , ]") of
              [] ->
-                 ['manager_0@127.0.0.1', 'manager_1@127.0.0.1'];
+                 ['manager@127.0.0.1', 'manager_slave@127.0.0.1'];
              Tokens ->
                  lists:map(fun(X) ->
                                    list_to_atom(X)
@@ -191,7 +191,7 @@
  "http.ssl_certfile",
  "leo_gateway.http.ssl_certfile",
  [
-  {default, "./etc/server_cert.pem"}
+  {default, "%%PREFIX%%/etc/leofs/server_cert.pem"}
  ]}.
 
 %% @doc SSL key
@@ -199,7 +199,7 @@
  "http.ssl_keyfile",
  "leo_gateway.http.ssl_keyfile",
  [
-  {default, "./etc/server_key.pem"}
+  {default, "%%PREFIX%%/etc/leofs/server_key.pem"}
  ]}.
 
 %% @doc Synchronized time of a bucket property (second)
@@ -306,7 +306,7 @@
  "cache.cache_disc_dir_data",
  "leo_gateway.cache.cache_disc_dir_data",
  [
-  {default, "./cache/data"}
+  {default, "%%LEOFS_DBDIR%%/leo_gateway/cache/data"}
  ]}.
 
 %% @doc Directory for the disk cache journal
@@ -314,7 +314,7 @@
  "cache.cache_disc_dir_journal",
  "leo_gateway.cache.cache_disc_dir_journal",
  [
-  {default, "./cache/journal"}
+  {default, "%%LEOFS_DBDIR%%/leo_gateway/cache/journal"}
  ]}.
 
 %% @doc Cache Expire in seconds
@@ -484,7 +484,7 @@
  "leo_gateway.log_dir",
  [
   {datatype, string},
-  {default, "./log/erlang"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/erlang"}
  ]}.
 
 %% @doc Output log file(s) - app
@@ -493,7 +493,7 @@
  "leo_gateway.log_appender",
  [
   {datatype, string},
-  {default, "./log/app"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/app"}
  ]}.
 
 {translation, "leo_gateway.log_appender",
@@ -508,7 +508,7 @@
  "leo_redundant_manager.log_dir_member",
  [
   {datatype, string},
-  {default, "./log/ring"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/ring"}
  ]}.
 
 %% @doc Output log file(s) - ring
@@ -517,7 +517,7 @@
  "leo_redundant_manager.log_dir_ring",
  [
   {datatype, string},
-  {default, "./log/ring"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/ring"}
  ]}.
 
 
@@ -529,7 +529,7 @@
  "queue_dir",
  "leo_gateway.queue_dir",
  [
-  {default, "./work/queue"}
+  {default, "%%LEOFS_DBDIR%%/leo_gateway/queue"}
  ]}.
 
 %% @doc Directory of SNMP agent configuration
@@ -537,7 +537,7 @@
  "snmp_agent",
  "leo_gateway.snmp_agent",
  [
-  {default, "./snmp/snmpa_gateway_0/LEO-GATEWAY"}
+  {default, "%%PREFIX%%/lib/leofs/snmp/snmpa_gateway/LEO-GATEWAY"}
  ]}.
 
 
@@ -752,7 +752,7 @@
  "nodename",
  "vm_args.-name",
  [
-  {default, "gateway_0@127.0.0.1"}
+  {default, "gateway@127.0.0.1"}
  ]}.
 
 %% @doc Cookie for distributed node communication.  All nodes in the same cluster
@@ -800,7 +800,7 @@
  "erlang.crash_dump",
  "vm_args.-env ERL_CRASH_DUMP",
  [
-  {default, "./log/erl_crash.dump"}
+  {default, "%%LEOFS_LOGDIR%%/leo_gateway/erl_crash.dump"}
  ]}.
 
 %% @doc Raise the ETS table limit
@@ -839,5 +839,5 @@
  "snmp_conf",
  "vm_args.-config",
  [
-  {default, "./snmp/snmpa_gateway_0/leo_gateway_snmp"}
+  {default, "%%PREFIX%%/lib/leofs/snmp/snmpa_gateway/leo_gateway_snmp"}
  ]}.