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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
42e3b6db
authored
Aug 06, 2018
by
cloud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix graphite dependency order
parent
ebe0fa54
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
salt/graphite/configuration.sls
+7
-2
salt/graphite/files/graphite-carbon.service
+1
-1
salt/graphite/files/graphite.service
+1
-1
salt/graphite/virtualenv.sls
+4
-1
No files found.
salt/graphite/configuration.sls
View file @
42e3b6db
...
...
@@ -50,8 +50,9 @@ requirements:
- source: salt://graphite/files/graphite-carbon.conf
{% endif %}
/opt/
graphite:
opt_
graphite:
file.directory:
- name: /opt/graphite
- makedirs: True
- user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
...
...
@@ -66,6 +67,7 @@ requirements:
- template: jinja
- makedirs: True
- require:
- opt_graphite
- user: {{ pillar['graphite']['user'] }}
/opt/graphite/conf/storage-schemas.conf:
...
...
@@ -76,14 +78,17 @@ requirements:
- group: {{ pillar['graphite']['user'] }}
- makedirs: True
- require:
- opt_graphite
- user: {{ pillar['graphite']['user'] }}
/opt/graphite/webapp/graphite/local_settings.py
:
local_settings
:
file.managed:
- name: /opt/graphite/webapp/graphite/local_settings.py
- source: salt://graphite/files/local_settings.py
- user: {{ pillar['graphite']['user'] }}
- group: {{ pillar['graphite']['user'] }}
- template: jinja
- makedirs: True
- require:
- opt_graphite
- user: {{ pillar['graphite']['user'] }}
salt/graphite/files/graphite-carbon.service
View file @
42e3b6db
...
...
@@ -7,7 +7,7 @@ User={{ pillar['graphite']['user'] }}
Group={{ pillar['graphite']['user'] }}
Environment=PYTHONPATH=/opt/graphite/lib GRAPHITE_ROOT=/opt/graphite
WorkingDirectory=/opt/graphite/bin/
ExecStart=/bin/bash -c "source /opt/graphite/bin/activate; exec twistd --nodaemon --reactor=epoll --no_save carbon-cache"
ExecStart=/bin/bash -c "source /opt/graphite/bin/activate;
source /opt/graphite/bin/postactivate;
exec twistd --nodaemon --reactor=epoll --no_save carbon-cache"
Restart=always
[Install]
...
...
salt/graphite/files/graphite.service
View file @
42e3b6db
...
...
@@ -6,7 +6,7 @@ After=network.target
User={{ pillar['graphite']['user'] }}
Group={{ pillar['graphite']['user'] }}
WorkingDirectory=/opt/graphite/webapp/graphite
ExecStart=/bin/bash -c "source /opt/graphite/bin/activate; PYTHONPATH=/opt/graphite/lib/:/opt/graphite/webapp/ exec django-admin.py runserver [::]:8080 --settings=graphite.settings"
ExecStart=/bin/bash -c "source /opt/graphite/bin/activate;
source /opt/graphite/bin/postactivate;
PYTHONPATH=/opt/graphite/lib/:/opt/graphite/webapp/ exec django-admin.py runserver [::]:8080 --settings=graphite.settings"
Restart=always
[Install]
...
...
salt/graphite/virtualenv.sls
View file @
42e3b6db
...
...
@@ -3,6 +3,8 @@ virtualenv_graphite:
- name: /opt/graphite/
- system_site_packages: False
- user: {{ pillar['graphite']['user'] }}
- require:
- opt_graphite
pip_graphite:
pip.installed:
...
...
@@ -24,5 +26,6 @@ salt://graphite/files/syncdb.sh:
- template: jinja
- user: {{ pillar['graphite']['user'] }}
- require:
- virtualenv
: virtualenv
_graphite
- virtualenv_graphite
- user: {{ pillar['graphite']['user'] }}
- local_settings
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