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
1596f928
authored
Jul 13, 2016
by
Desztics Armand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manager
parent
e0781e73
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
salt/manager/configuration.sls
+3
-3
salt/manager/init.sls
+1
-1
salt/manager/rabbitmq.sls
+6
-4
salt/manager/virtualenv.sls
+0
-1
No files found.
salt/manager/configuration.sls
View file @
1596f928
...
...
@@ -8,7 +8,7 @@ manager_postactivate:
portal.conf:
file.managed:
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
- name: /etc/systemd/system/portal.service
{% else %}
- name: /etc/init/portal.conf
...
...
@@ -16,7 +16,7 @@ portal.conf:
- user: root
- group: root
- template: jinja
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
{% if pillar['deployment_type'] == 'production' %}
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal-uwsgi.service
...
...
@@ -34,7 +34,7 @@ portal.conf:
{% endif %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
/etc/systemd/system/manager.service:
file.managed:
- user: root
...
...
salt/manager/init.sls
View file @
1596f928
...
...
@@ -61,7 +61,7 @@ manager:
- enable: True
- watch:
- file: manager_postactivate
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian'
or grains['osfinger'] == 'Ubuntu-16.04'
%}
- file: /etc/systemd/system/manager.service
- file: /etc/systemd/system/managercelery@.service
{% else %}
...
...
salt/manager/rabbitmq.sls
View file @
1596f928
...
...
@@ -20,13 +20,15 @@ rabbitmq_user:
- password: {{ pillar['amqp']['password'] }}
- require:
- service: rabbitmq-server
- rabbitmq_vhost: virtual_host
- perms:
- {{ pillar['amqp']['vhost']}}:
- .*
- .*
- .*
virtual_host:
rabbitmq_vhost.present:
- name: {{ pillar['amqp']['vhost']}}
- user: {{ pillar['amqp']['user'] }}
- conf: .*
- write: .*
- read: .*
- require:
- service: rabbitmq-server
salt/manager/virtualenv.sls
View file @
1596f928
...
...
@@ -18,7 +18,6 @@ virtualenv_manager:
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- requirements: /home/{{ pillar['user'] }}/circle/requirements/{{ pillar['deployment_type'] }}.txt
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/circle/
- no_chown: true
- require:
- git: gitrepo
...
...
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