File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ is calculated.
174
174
- Options: "mysql", "postgresql"
175
175
- Default (varies based on ` type ` )
176
176
177
+ * ` gitlab['database']['socket'] `
178
+ - The socket to use for connection
179
+ - Default /var/run/mysqld/mysqld.sock
180
+
177
181
* ` gitlab['database']['encoding'] `
178
182
- The database encoding
179
183
- Default (varies based on ` type ` )
Original file line number Diff line number Diff line change 50
50
default [ 'gitlab' ] [ 'database' ] [ 'encoding' ] = node [ 'gitlab' ] [ 'database' ] [ 'type' ] == 'mysql' ? 'utf8' : 'unicode'
51
51
default [ 'gitlab' ] [ 'database' ] [ 'collation' ] = 'utf8_general_ci'
52
52
default [ 'gitlab' ] [ 'database' ] [ 'host' ] = '127.0.0.1'
53
+ default [ 'gitlab' ] [ 'database' ] [ 'socket' ] = '/var/run/mysqld/mysqld.sock'
53
54
default [ 'gitlab' ] [ 'database' ] [ 'pool' ] = 5
54
55
default [ 'gitlab' ] [ 'database' ] [ 'database' ] = 'gitlab'
55
56
default [ 'gitlab' ] [ 'database' ] [ 'username' ] = 'gitlab'
Original file line number Diff line number Diff line change 45
45
database_password = node [ 'gitlab' ] [ 'database' ] [ 'password' ]
46
46
database_userhost = node [ 'gitlab' ] [ 'database' ] [ 'userhost' ]
47
47
database_host = node [ 'gitlab' ] [ 'database' ] [ 'host' ]
48
+ database_host = node [ 'gitlab' ] [ 'database' ] [ 'socket' ]
48
49
database_connection = {
49
50
host : database_host ,
50
51
username : 'root' ,
51
- password : node [ 'mysql' ] [ 'server_root_password' ]
52
+ password : node [ 'mysql' ] [ 'server_root_password' ] ,
53
+ socket : node [ 'mysql' ] [ 'socket' ]
52
54
}
53
55
54
56
# Create the database
You can’t perform that action at this time.
0 commit comments