Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
slapos
Commits
8c8d9d16
Commit
8c8d9d16
authored
Oct 01, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved socket file, restricted permissions
parent
1a03e7e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
slapos/recipe/postgres/__init__.py
slapos/recipe/postgres/__init__.py
+8
-2
No files found.
slapos/recipe/postgres/__init__.py
View file @
8c8d9d16
...
@@ -119,7 +119,13 @@ class Recipe(GenericBaseRecipe):
...
@@ -119,7 +119,13 @@ class Recipe(GenericBaseRecipe):
lc_numeric = 'en_US.UTF-8'
lc_numeric = 'en_US.UTF-8'
lc_time = 'en_US.UTF-8'
lc_time = 'en_US.UTF-8'
default_text_search_config = 'pg_catalog.english'
default_text_search_config = 'pg_catalog.english'
"""
%
self
.
fetch_host
(
self
.
options
)))
unix_socket_directory = '%s'
unix_socket_permissions = 0700
"""
%
(
self
.
fetch_host
(
self
.
options
),
pgdata
,
)))
with
open
(
os
.
path
.
join
(
pgdata
,
'pg_hba.conf'
),
'wb'
)
as
cfg
:
with
open
(
os
.
path
.
join
(
pgdata
,
'pg_hba.conf'
),
'wb'
)
as
cfg
:
...
@@ -128,7 +134,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -128,7 +134,7 @@ class Recipe(GenericBaseRecipe):
cfg
.
write
(
textwrap
.
dedent
(
"""
\
cfg
.
write
(
textwrap
.
dedent
(
"""
\
# TYPE DATABASE USER ADDRESS METHOD
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
# "local" is for Unix domain socket connections only
(check unix_socket_permissions!)
local all all ident
local all all ident
host all all 127.0.0.1/32 md5
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
host all all ::1/128 md5
...
...
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