Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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:
...
@@ -8,7 +8,7 @@ manager_postactivate:
portal.conf:
portal.conf:
file.managed:
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
- name: /etc/systemd/system/portal.service
{% else %}
{% else %}
- name: /etc/init/portal.conf
- name: /etc/init/portal.conf
...
@@ -16,7 +16,7 @@ portal.conf:
...
@@ -16,7 +16,7 @@ portal.conf:
- user: root
- user: root
- group: root
- group: root
- template: jinja
- 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' %}
{% if pillar['deployment_type'] == 'production' %}
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal-uwsgi.service
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal-uwsgi.service
...
@@ -34,7 +34,7 @@ portal.conf:
...
@@ -34,7 +34,7 @@ portal.conf:
{% endif %}
{% 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:
/etc/systemd/system/manager.service:
file.managed:
file.managed:
- user: root
- user: root
...
...
salt/manager/init.sls
View file @
1596f928
...
@@ -61,7 +61,7 @@ manager:
...
@@ -61,7 +61,7 @@ manager:
- enable: True
- enable: True
- watch:
- watch:
- file: manager_postactivate
- 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/manager.service
- file: /etc/systemd/system/managercelery@.service
- file: /etc/systemd/system/managercelery@.service
{% else %}
{% else %}
...
...
salt/manager/rabbitmq.sls
View file @
1596f928
...
@@ -20,13 +20,15 @@ rabbitmq_user:
...
@@ -20,13 +20,15 @@ rabbitmq_user:
- password: {{ pillar['amqp']['password'] }}
- password: {{ pillar['amqp']['password'] }}
- require:
- require:
- service: rabbitmq-server
- service: rabbitmq-server
- rabbitmq_vhost: virtual_host
- perms:
- {{ pillar['amqp']['vhost']}}:
- .*
- .*
- .*
virtual_host:
virtual_host:
rabbitmq_vhost.present:
rabbitmq_vhost.present:
- name: {{ pillar['amqp']['vhost']}}
- name: {{ pillar['amqp']['vhost']}}
- user: {{ pillar['amqp']['user'] }}
- conf: .*
- write: .*
- read: .*
- require:
- require:
- service: rabbitmq-server
- service: rabbitmq-server
salt/manager/virtualenv.sls
View file @
1596f928
...
@@ -18,7 +18,6 @@ virtualenv_manager:
...
@@ -18,7 +18,6 @@ virtualenv_manager:
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- requirements: /home/{{ pillar['user'] }}/circle/requirements/{{ pillar['deployment_type'] }}.txt
- requirements: /home/{{ pillar['user'] }}/circle/requirements/{{ pillar['deployment_type'] }}.txt
- user: {{ pillar['user'] }}
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/circle/
- no_chown: true
- no_chown: true
- require:
- require:
- git: gitrepo
- 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