Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
70870406
authored
Jan 17, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
component integration and reorg.
parent
a477ae1b
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
81 additions
and
71 deletions
+81
-71
pillar/installer.sls
+4
-4
pillar/monitor-client.sls
+1
-1
pillar/storagedriver.sls
+1
-1
pillar/vmdriver.sls
+2
-2
salt/agentdriver/configuration.sls
+1
-1
salt/agentdriver/init.sls
+3
-7
salt/agentdriver/virtualenv.sls
+4
-1
salt/manager/init.sls
+1
-1
salt/manager/pipeline.sls
+40
-22
salt/monitor-client/configuration.sls
+1
-1
salt/monitor-client/init.sls
+0
-9
salt/monitor-client/virtualenv.sls
+6
-0
salt/network/init.sls
+7
-7
salt/storagedriver/configuration.sls
+1
-1
salt/storagedriver/init.sls
+3
-7
salt/storagedriver/virtualenv.sls
+4
-1
salt/vmdriver/init.sls
+1
-0
salt/vmdriver/virtualenv.sls
+1
-1
salt/vncproxy/init.sls
+0
-4
No files found.
pillar/installer.sls
View file @
70870406
...
...
@@ -8,7 +8,7 @@
#init_type: systemd
#admin_user: admin
#admin_pass:
4j23oihreehfd
#admin_pass:
admin
#database:
# name: circle
...
...
@@ -40,12 +40,12 @@
# directory: /datastore
#storagedriver:
# queue_name: cloud-
6605
# queue_name: cloud-
41118
#fwdriver:
# queue_name: cloud-
6605
# queue_name: cloud-
41118
# gateway: 10.0.255.254
# external_net: 10.
0.0.115
/16
# external_net: 10.
9.0.87
/16
# external_if: eth0
# trunk_if: linkb
# management_if: ethy
pillar/monitor-client.sls
View file @
70870406
monitor-client:
repo_name: https://git.ik.bme.hu/circle3/monitor-client.git
repo_revision:
ptyhon3.6
repo_revision:
master
pillar/storagedriver.sls
View file @
70870406
storagedriver:
repo_name: https://git.ik.bme.hu/circle3/storagedriver.git
repo_revision:
python3.6
repo_revision:
master
queue_name: storageserver
pillar/vmdriver.sls
View file @
70870406
vmdriver:
repo_name: https://git.ik.bme.hu/circle3/vmdriver.git
repo_revision:
python3.6
hypervisor_type:
kvm
repo_revision:
master
hypervisor_type:
qemu
salt/agentdriver/configuration.sls
View file @
70870406
...
...
@@ -13,7 +13,7 @@
- user: root
- group: root
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/systemd/system/agentdriver.service:
file.managed:
- user: root
...
...
salt/agentdriver/init.sls
View file @
70870406
...
...
@@ -10,16 +10,12 @@ agentdriver:
- ntp
- incron
{% if grains['os_family'] == 'RedHat' %}
- python2-pip
- libmemcached-devel
- python-devel
- python-virtualenvwrapper
- python3-devel
- zlib-devel
{% else %}
- libmemcached-dev
- python-dev
- virtualenvwrapper
- python-pip
- python3-dev
- zlib1g-dev
{% endif %}
- require_in:
...
...
@@ -28,7 +24,7 @@ agentdriver:
user:
- present
- name: {{ pillar['user'] }}
-
gid_from_name
: True
-
usergroup
: True
- shell: /bin/bash
- groups:
{% if grains['os_family'] == 'RedHat' %}
...
...
salt/agentdriver/virtualenv.sls
View file @
70870406
virtualenv_agentdriver:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['user'] }}/.virtualenvs/agentdriver
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements.txt
- requirements: /home/{{ pillar['user'] }}/agentdriver/requirements/{{ pillar['deployment_type'] }}.txt
- cwd: /home/{{ pillar['user'] }}/agentdriver
- user: {{ pillar['user'] }}
- no_chown: true
salt/manager/init.sls
View file @
70870406
include:
#
- manager.pipeline
- manager.pipeline
- manager.gitrepo
# - manager.agentgit
- manager.postgres
...
...
salt/manager/pipeline.sls
View file @
70870406
{% if grains['os'] == 'Ubuntu' or grains['os_family'] == 'Debian' %}
nodejs-legacy:
pkg.installed
{% endif %}
npm:
{% if grains['os'] == 'Ubuntu' or grains['os_family'] == 'Debian' %}
npm_installed:
pkg.installed:
- require:
- pkg: nodejs-legacy
{% else %}
pkg.installed
{% endif %}
- pkgs:
- nodejs
- npm
bower
:
npm_pkgs
:
npm.installed:
- pkgs:
- bower
- less
- yuglify
- require:
- pkg: npm
- pkg: npm
_installed
less:
npm.installed:
- require:
- pkg: npm
yuglify:
npm.installed:
- require:
- pkg: npm
#{% if grains['os'] == 'Ubuntu' or grains['os_family'] == 'Debian' %}
#nodejs-legacy:
# pkg.installed
#{% endif %}
#
#npm:
# {% if grains['os'] == 'Ubuntu' or grains['os_family'] == 'Debian' %}
# pkg.installed:
# - require:
# - pkg: nodejs-legacy
# {% else %}
# pkg.installed
# {% endif %}
#
#bower:
# npm.installed:
# - require:
# - pkg: npm
#
#less:
# npm.installed:
# - require:
# - pkg: npm
#
#yuglify:
# npm.installed:
# - require:
# - pkg: npm
salt/monitor-client/configuration.sls
View file @
70870406
...
...
@@ -6,7 +6,7 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/systemd/system/monitor-client.service:
file.managed:
- user: root
...
...
salt/monitor-client/init.sls
View file @
70870406
...
...
@@ -9,15 +9,6 @@ monitor-client:
- git
- ntp
- wget
{% if grains['os_family'] == 'RedHat' %}
- python2-pip
- python-devel
- python-virtualenvwrapper
{% else %}
- python-pip
- python-dev
- virtualenvwrapper
{% endif %}
- require_in:
- git: gitrepo_monitor-client
- virtualenv: virtualenv_monitor-client
...
...
salt/monitor-client/virtualenv.sls
View file @
70870406
virtualenv_monitor-client:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/monitor-client
- python: /usr/bin/python3
# - requirements: /home/{{ pillar['user'] }}/monitor-client/requirements/{{ pillar['deployment_type'] }}.txt
- requirements: /home/{{ pillar['user'] }}/monitor-client/requirements.txt
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/monitor-client/
- no_chown: true
- reqire:
- git: gitrepo_monitor-client
salt/network/init.sls
View file @
70870406
...
...
@@ -21,7 +21,7 @@ vm:
- require:
- cmd: ovs-if
{% if grains['os'] == 'Debian' %}
{% if grains['os
_family
'] == 'Debian' %}
symlink_dhcpd:
file.symlink:
- name: /etc/init.d/dhcpd
...
...
@@ -47,7 +47,7 @@ reload_firewall:
- user: {{ pillar['user'] }}
- require:
- service: firewall2
{% if grains['os'] == 'Debian' %}
{% if grains['os
_family
'] == 'Debian' %}
- cmd: symlink_dhcpd
{% endif %}
...
...
@@ -69,13 +69,13 @@ fix_dhcp:
{% endif %}
isc-dhcp-server:
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os
_family
'] == 'Debian' %}
cmd.run:
- name: /bin/systemctl restart dhcpd
{% if grains['os_family'] == 'RedHat' %}
- watch:
- cmd: fix_dhcp
{% elif grains['os'] == 'Debian' %}
{% elif grains['os
_family
'] == 'Debian' %}
- watch:
- cmd: fix_dhcp_daemon_reload
{% endif %}
...
...
@@ -85,17 +85,17 @@ isc-dhcp-server:
{% if grains['os_family'] == 'RedHat' %}
- watch:
- cmd: fix_dhcp
{% elif grains['os'] == 'Debian' %}
{% elif grains['os
_family
'] == 'Debian' %}
- watch:
- cmd: fix_dhcp_daemon_reload
{% endif %}
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if grains['os_family'] == 'RedHat' or grains['os
_family
'] == 'Debian' %}
- name: dhcpd
- require:
- cmd: isc-dhcp-server
{% endif %}
{% if grains['os'] == 'Debian' %}
{% if grains['os
_family
'] == 'Debian' %}
{# For next reboot #}
after_openvswitch_conf:
file.managed:
...
...
salt/storagedriver/configuration.sls
View file @
70870406
...
...
@@ -6,7 +6,7 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/systemd/system/storagecelery@.service:
file.managed:
- user: root
...
...
salt/storagedriver/init.sls
View file @
70870406
...
...
@@ -2,7 +2,7 @@ include:
- storagedriver.gitrepo
- storagedriver.virtualenv
- storagedriver.configuration
- storagedriver.nfs-server
#
- storagedriver.nfs-server
{% if grains['os_family'] == 'RedHat' %}
...
...
@@ -17,18 +17,14 @@ storagedriver:
- git
- ntp
{% if grains['os_family'] == 'RedHat' %}
- python2-pip
- libmemcached-devel
- python-devel
- python-virtualenvwrapper
- python3-devel
- qemu-img-ev
- zlib-devel
{% else %}
- python-pip
- libmemcached-dev
- python-dev
- python
3
-dev
- qemu-utils
- virtualenvwrapper
- zlib1g-dev
{% endif %}
- require_in:
...
...
salt/storagedriver/virtualenv.sls
View file @
70870406
virtualenv_storagedriver:
virtualenv.managed:
- name: /home/{{ pillar['user'] }}/.virtualenvs/storagedriver
- requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/production.txt
- python: /usr/bin/python3
- requirements: /home/{{ pillar['user'] }}/storagedriver/requirements/{{ pillar['deployment_type'] }}.txt
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/storagedriver
- no_chown: true
salt/vmdriver/init.sls
View file @
70870406
...
...
@@ -33,6 +33,7 @@ vmdriver:
{% else %}
- qemu-kvm
# - libvirt-bin
- libvirt-dev
- virt-manager
- libmemcached-dev
- libxml2-dev
...
...
salt/vmdriver/virtualenv.sls
View file @
70870406
...
...
@@ -17,7 +17,7 @@ virtualenv_vmdriver_install_first:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['user'] }}/.virtualenvs/vmdriver
- requirements: /home/{{ pillar['user'] }}/
circle
/requirements/install_first.txt
- requirements: /home/{{ pillar['user'] }}/
vmdriver
/requirements/install_first.txt
- user: {{ pillar['user'] }}
- cwd: /home/{{ pillar['user'] }}/vmdriver
- no_chown: true
...
...
salt/vncproxy/init.sls
View file @
70870406
...
...
@@ -10,17 +10,13 @@ vncproxy:
- chrony
- wget
{% if grains['os_family'] == 'RedHat' %}
- python3-pip
- libffi-devel
- openssl-devel
- python3-devel
- python3-virtualenvwrapper
{% else %}
- python3-pip
- libffi-dev
- libssl-dev
- python3-dev
- virtualenvwrapper
{% endif %}
- require_in:
- git: gitrepo_vncproxy
...
...
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