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
4c42939b
authored
Aug 07, 2015
by
Dóbé Péter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
towards Debian comp
parent
6f9c3e6a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
22 additions
and
15 deletions
+22
-15
salt/agentdriver/configuration.sls
+1
-1
salt/fwdriver/configuration.sls
+1
-1
salt/fwdriver/init.sls
+3
-0
salt/graphite/configuration.sls
+1
-1
salt/manager/configuration.sls
+3
-3
salt/manager/init.sls
+1
-1
salt/monitor-client/configuration.sls
+1
-1
salt/network/init.sls
+1
-1
salt/storagedriver/configuration.sls
+1
-1
salt/vmdriver/configuration.sls
+3
-2
salt/vmdriver/init.sls
+4
-1
salt/vmdriver/libvirt.sls
+1
-1
salt/vncproxy/configuration.sls
+1
-1
No files found.
salt/agentdriver/configuration.sls
View file @
4c42939b
...
...
@@ -13,7 +13,7 @@
- user: root
- group: root
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/agentdriver.service:
file.managed:
- user: root
...
...
salt/fwdriver/configuration.sls
View file @
4c42939b
...
...
@@ -9,7 +9,7 @@ include:
- group: {{ pillar['fwdriver']['user'] }}
- mode: 700
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/firewall.service:
file.managed:
- user: root
...
...
salt/fwdriver/init.sls
View file @
4c42939b
...
...
@@ -18,7 +18,10 @@ firewall:
- python-dev
- libmemcached-dev
- openvswitch-switch
{% if grains['os'] != 'Debian' %}
{# No such package in Debian Jessie! #}
- openvswitch-controller
{% endif %}
- isc-dhcp-server
{% endif %}
- git
...
...
salt/graphite/configuration.sls
View file @
4c42939b
...
...
@@ -17,7 +17,7 @@ requirements:
- require:
- user: {{ pillar['graphite']['user'] }}
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/graphite.service:
file.managed:
...
...
salt/manager/configuration.sls
View file @
4c42939b
...
...
@@ -8,7 +8,7 @@ manager_postactivate:
portal.conf:
file.managed:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
- 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' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
{% 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' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/manager.service:
file.managed:
- user: root
...
...
salt/manager/init.sls
View file @
4c42939b
...
...
@@ -61,7 +61,7 @@ manager:
- enable: True
- watch:
- file: manager_postactivate
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
- file: /etc/systemd/system/manager.service
- file: /etc/systemd/system/managercelery@.service
{% else %}
...
...
salt/monitor-client/configuration.sls
View file @
4c42939b
...
...
@@ -6,7 +6,7 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/monitor-client.service:
file.managed:
- user: root
...
...
salt/network/init.sls
View file @
4c42939b
...
...
@@ -11,7 +11,7 @@ vm:
- ipaddr: {{ pillar['fwdriver']['vm_net_ip'] }}
- netmask: {{ pillar['fwdriver']['vm_net_mask'] }}
- pre_up_cmds:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
- /bin/systemctl restart openvswitch
{% else %}
- /etc/init.d/openvswitch-switch restart
...
...
salt/storagedriver/configuration.sls
View file @
4c42939b
...
...
@@ -6,7 +6,7 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/storagecelery@.service:
file.managed:
- user: root
...
...
salt/vmdriver/configuration.sls
View file @
4c42939b
...
...
@@ -9,9 +9,10 @@ include:
- group: {{ pillar['user'] }}
- mode: 700
{% set service_dir = "/etc/systemd/system/" if grains['os_family'] == 'RedHat' else "/etc/init/" %}
{% set service_dir = "/etc/systemd/system/" if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
else "/etc/init/" %}
{% set service_files = (("vmcelery@.service", "netcelery@.service", "node.service")
if grains['os_family'] == 'RedHat' else
if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian' else
("vmcelery.conf", "netcelery.conf", "node.conf")) %}
{% for file in service_files %}
...
...
salt/vmdriver/init.sls
View file @
4c42939b
...
...
@@ -32,7 +32,10 @@ vmdriver:
- libxslt1-dev
- openvswitch-common
- openvswitch-switch
{% if grains['os'] != 'Debian' %}
{# No such package in Debian Jessie! #}
- openvswitch-controller
{% endif %}
- python-dev
- python-libvirt
- virtualenvwrapper
...
...
@@ -41,7 +44,7 @@ vmdriver:
{% endif %}
- require_in:
- file: /etc/default/libvirt-bin
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
- service: libvirtd
{% else %}
- file: /etc/apparmor.d/libvirt/TEMPLATE
...
...
salt/vmdriver/libvirt.sls
View file @
4c42939b
...
...
@@ -15,7 +15,7 @@ libvirtconf:
file.append:
- text: libvirtd_opts="-d -l"
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
libvirtd:
{% else %}
libvirt-bin:
...
...
salt/vncproxy/configuration.sls
View file @
4c42939b
...
...
@@ -6,7 +6,7 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat'
or grains['os'] == 'Debian'
%}
/etc/systemd/system/vncproxy.service:
file.managed:
- user: root
...
...
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