Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
39be440d
authored
Jul 04, 2017
by
Dóbé Péter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix startup/syncdb problems with Graphite due to missing manage.py (issue
#27
)
parent
365c2a84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
salt/graphite/files/graphite.conf
+1
-1
salt/graphite/files/graphite.service
+1
-1
salt/graphite/files/syncdb.sh
+1
-1
No files found.
salt/graphite/files/graphite.conf
View file @
39be440d
...
@@ -13,5 +13,5 @@ env HOME=/home/{{ pillar['graphite']['user'] }}
...
@@ -13,5 +13,5 @@ env HOME=/home/{{ pillar['graphite']['user'] }}
script
script
. $
HOME
/.
virtualenvs
/
graphite
/
local
/
bin
/
activate
. $
HOME
/.
virtualenvs
/
graphite
/
local
/
bin
/
activate
cd
/
opt
/
graphite
/
webapp
/
graphite
cd
/
opt
/
graphite
/
webapp
/
graphite
exec
python
manage
.
py
runserver
[::]:
8081
PYTHONPATH
=/
opt
/
graphite
/
webapp
exec
django
-
admin
.
py
runserver
[::]:
8081
--
settings
=
graphite
.
settings
end
script
end
script
salt/graphite/files/graphite.service
View file @
39be440d
...
@@ -6,7 +6,7 @@ After=network.target
...
@@ -6,7 +6,7 @@ After=network.target
User={{ pillar['graphite']['user'] }}
User={{ pillar['graphite']['user'] }}
Group={{ pillar['graphite']['user'] }}
Group={{ pillar['graphite']['user'] }}
WorkingDirectory=/opt/graphite/webapp/graphite
WorkingDirectory=/opt/graphite/webapp/graphite
ExecStart=/bin/bash -c "source /etc/profile; workon graphite;
exec python manage.py runserver [::]:8081
"
ExecStart=/bin/bash -c "source /etc/profile; workon graphite;
PYTHONPATH=/opt/graphite/webapp exec django-admin.py runserver [::]:8081 --settings=graphite.settings
"
Restart=always
Restart=always
[Install]
[Install]
...
...
salt/graphite/files/syncdb.sh
View file @
39be440d
#!/bin/bash
#!/bin/bash
source
/home/
{{
pillar[
'graphite'
][
'user'
]
}}
/.virtualenvs/graphite/bin/activate
;
source
/home/
{{
pillar[
'graphite'
][
'user'
]
}}
/.virtualenvs/graphite/bin/activate
;
cd
/opt/graphite/webapp/graphite/
cd
/opt/graphite/webapp/graphite/
python manage.py syncdb
--noinput
PYTHONPATH
=
/opt/graphite/webapp django-admin.py syncdb
--settings
=
graphite.settings
--noinput
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