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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
702aa9be
Commit
702aa9be
authored
Aug 05, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor code to create script to run varnish using slapos.recipe.librecipe.execute
parent
3614fd34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
slapos/recipe/apache/__init__.py
slapos/recipe/apache/__init__.py
+13
-7
No files found.
slapos/recipe/apache/__init__.py
View file @
702aa9be
...
@@ -283,12 +283,18 @@ class Recipe(BaseSlapRecipe):
...
@@ -283,12 +283,18 @@ class Recipe(BaseSlapRecipe):
config_file
=
self
.
createConfigurationFile
(
"%s.conf"
%
name
,
config_file
=
self
.
createConfigurationFile
(
"%s.conf"
%
name
,
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'varnish.vcl.in'
),
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'varnish.vcl.in'
),
dict
(
backend_host
=
backend_host
,
backend_port
=
backend_port
)))
dict
(
backend_host
=
backend_host
,
backend_port
=
backend_port
)))
varnish_config
[
"configuration_file"
]
=
config_file
varnish_argument_list
=
[
varnish_config
[
'varnishd_binary'
].
strip
(),
self
.
path_list
.
append
(
self
.
createRunningWrapper
(
'varnishd'
,
"-F"
,
"-n"
,
directory
,
"-P"
,
varnish_config
[
"pid"
],
"-f"
,
config_file
,
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'varnishd.in'
),
"-a"
,
varnish_config
[
"port"
],
"-T"
,
varnish_config
[
"control_port"
],
varnish_config
)))
"-s"
,
varnish_config
[
"storage"
]]
wrapper
=
zc
.
buildout
.
easy_install
.
scripts
([(
'varnishd'
,
'slapos.recipe.librecipe.execute'
,
'execute'
)],
self
.
ws
,
sys
.
executable
,
self
.
wrapper_directory
,
arguments
=
varnish_argument_list
,
)[
0
]
self
.
path_list
.
append
(
wrapper
)
return
varnish_config
return
varnish_config
...
...
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