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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
e56a6953
authored
Jan 15, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First try
parent
ae1e9385
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
74 additions
and
74 deletions
+74
-74
pillar/agentdriver.sls
+2
-2
pillar/common.sls
+1
-0
pillar/firewall.sls
+1
-1
pillar/installer.sls
+1
-0
pillar/manager.sls
+1
-1
pillar/monitor-client.sls
+2
-2
pillar/storagedriver.sls
+2
-2
pillar/vmdriver.sls
+2
-2
pillar/vncproxy.sls
+2
-2
requirements.txt
+6
-4
salt/common.sls
+4
-0
salt/manager/configuration.sls
+7
-5
salt/manager/files/init.sh
+2
-2
salt/manager/init.sls
+7
-20
salt/manager/pipeline.sls
+2
-2
salt/manager/rabbitmq.sls
+11
-9
salt/manager/virtualenv.sls
+6
-0
salt/node.sls
+0
-1
salt/profile.sls
+3
-9
salt/vncproxy/configuration.sls
+3
-3
salt/vncproxy/init.sls
+6
-6
salt/vncproxy/virtualenv.sls
+3
-1
No files found.
pillar/agentdriver.sls
View file @
e56a6953
agentdriver:
repo_name: https://git.ik.bme.hu/circle/agentdriver.git
repo_revision:
master
repo_name: https://git.ik.bme.hu/circle
3
/agentdriver.git
repo_revision:
python3.6
pillar/common.sls
View file @
e56a6953
...
...
@@ -5,6 +5,7 @@ secret_key: Ga4aex3Eesohngo
timezone: Europe/Budapest
deployment_type: local
init_type: systemd
admin_user: admin
admin_pass: 4j23oihreehfd
...
...
pillar/firewall.sls
View file @
e56a6953
fwdriver:
repo_name: https://git.ik.bme.hu/circle/fwdriver.git
repo_name: https://git.ik.bme.hu/circle
3
/fwdriver.git
repo_revision: master
user: fw
...
...
pillar/installer.sls
View file @
e56a6953
...
...
@@ -5,6 +5,7 @@
#timezone: Europe/Budapest
#deployment_type: local
#init_type: systemd
#admin_user: admin
#admin_pass: 4j23oihreehfd
...
...
pillar/manager.sls
View file @
e56a6953
manager:
repo_name: https://git.ik.bme.hu/circle/cloud.git
repo_name: https://git.ik.bme.hu/circle
3
/cloud.git
repo_revision: master
pillar/monitor-client.sls
View file @
e56a6953
monitor-client:
repo_name: https://git.ik.bme.hu/circle/monitor-client.git
repo_revision:
master
repo_name: https://git.ik.bme.hu/circle
3
/monitor-client.git
repo_revision:
ptyhon3.6
pillar/storagedriver.sls
View file @
e56a6953
storagedriver:
repo_name: https://git.ik.bme.hu/circle/storagedriver.git
repo_revision:
master
repo_name: https://git.ik.bme.hu/circle
3
/storagedriver.git
repo_revision:
python3.6
queue_name: storageserver
pillar/vmdriver.sls
View file @
e56a6953
vmdriver:
repo_name: https://git.ik.bme.hu/circle/vmdriver.git
repo_revision:
master
repo_name: https://git.ik.bme.hu/circle
3
/vmdriver.git
repo_revision:
python3.6
hypervisor_type: kvm
pillar/vncproxy.sls
View file @
e56a6953
vncproxy:
repo_name: https://git.ik.bme.hu/circle/vncproxy.git
repo_revision:
master
repo_name: https://git.ik.bme.hu/circle
3
/vncproxy.git
repo_revision:
python3.6
requirements.txt
View file @
e56a6953
salt
==2014.7.1
netaddr
==0.7.14
netifaces
==0.10.6
halo
==0.0.7
salt
==3003
netaddr
netifaces
halo
virtualenvwrapper
stevedore
salt/common.sls
View file @
e56a6953
include:
- profile
git:
pkg.installed
salt/manager/configuration.sls
View file @
e56a6953
...
...
@@ -5,10 +5,13 @@ manager_postactivate:
- template: jinja
- user: {{ pillar['user'] }}
- mode: 700
- require:
- virtualenv: virtualenv_manager
portal.conf:
file.managed:
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
- name: /etc/systemd/system/portal.service
{% else %}
- name: /etc/init/portal.conf
...
...
@@ -16,14 +19,13 @@ portal.conf:
- user: root
- group: root
- template: jinja
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
{% if pillar['init_type'] == 'systemd' %}
{% if pillar['deployment_type'] == 'production' %}
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal-uwsgi.service
{% else %}
- source: file:///home/{{ pillar['user'] }}/circle/miscellaneous/portal.service
{% endif %}
{% else %}
{% if pillar['deployment_type'] == 'production' %}
...
...
@@ -34,7 +36,7 @@ portal.conf:
{% endif %}
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/systemd/system/manager.service:
file.managed:
- user: root
...
...
salt/manager/files/init.sh
View file @
e56a6953
#!/bin/bash
source
/
home/
{{
pillar[
'user'
]
}}
/.virtualenvs/circle/bin/activate
source
/home/
{{
pillar[
'user'
]
}}
/.virtualenvs/circle/bin/postactivat
e
source
/
etc/profile.d/virtualenvwrapper.sh
workon circl
e
{
%
set
fw
=
pillar[
'fwdriver'
]
%
}
HOSTNAME
=
$(
hostname
-s
)
...
...
salt/manager/init.sls
View file @
e56a6953
include:
- manager.pipeline
#
- manager.pipeline
- manager.gitrepo
- manager.agentgit
#
- manager.agentgit
- manager.postgres
- manager.rabbitmq
- manager.virtualenv
...
...
@@ -13,14 +13,13 @@ manager:
- pkgs:
- postgresql
- git
-
ntp
-
chrony
- rabbitmq-server
- memcached
- gettext
- wget
- swig
{% if grains['os_family'] == 'RedHat' %}
- python2-pip
- libffi-devel
- openssl-devel
- libmemcached-devel
...
...
@@ -29,25 +28,22 @@ manager:
- postgresql-server
- libxml2-devel
- libxslt-devel
- python-devel
- python-virtualenvwrapper
- python3-devel
{% else %}
- python-pip
- libffi-dev
- libssl-dev
- libmemcached-dev
- libpq-dev
- libxml2-dev
- libxslt1-dev
- python-dev
- virtualenvwrapper
- python3-dev
{% endif %}
- require_in:
- service: postgres_service
user:
- present
- name: {{ pillar['user'] }}
-
gid_from_name
: True
-
usergroup
: True
- shell: /bin/bash
- groups:
{% if grains['os_family'] == 'RedHat' %}
...
...
@@ -56,21 +52,12 @@ manager:
- sudo
{% endif %}
service:
- running
- enable: True
- watch:
- file: manager_postactivate
{% if grains['os_family'] == 'RedHat' or grains['os'] == 'Debian' %}
- file: /etc/systemd/system/manager.service
- file: /etc/systemd/system/managercelery@.service
{% else %}
- file: /etc/init/manager.conf
- file: /etc/init/mancelery.conf
- file: /etc/init/moncelery.conf
- file: /etc/init/slowcelery.conf
{% endif %}
- sls: manager.configuration
- sls: manager.gitrepo
portal:
...
...
salt/manager/pipeline.sls
View file @
e56a6953
{% if grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
{% if grains['os'] == 'Ubuntu' or grains['os
_family
'] == 'Debian' %}
nodejs-legacy:
pkg.installed
{% endif %}
npm:
{% if grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
{% if grains['os'] == 'Ubuntu' or grains['os
_family
'] == 'Debian' %}
pkg.installed:
- require:
- pkg: nodejs-legacy
...
...
salt/manager/rabbitmq.sls
View file @
e56a6953
...
...
@@ -14,19 +14,21 @@ rabbitmq-server:
- file: rabbitmq-server
{% endif %}
virtual_host:
rabbitmq_vhost.present:
- name: {{ pillar['amqp']['vhost']}}
- require:
- service: rabbitmq-server
rabbitmq_user:
rabbitmq_user.present:
- name: {{ pillar['amqp']['user'] }}
- password: {{ pillar['amqp']['password'] }}
- perms: [{ {{ pillar['amqp']['vhost']}}: [.*, .*, .*]}]
# - '{{ pillar['amqp']['vhost']}}':
# - conf: ".*"
# - write: " .*"
# - read: ".*"
- require:
- service: rabbitmq-server
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 @
e56a6953
...
...
@@ -15,6 +15,7 @@ m2crypto_swig_env:
virtualenv_manager:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['user'] }}/.virtualenvs/circle
- requirements: /home/{{ pillar['user'] }}/circle/requirements/{{ pillar['deployment_type'] }}.txt
- user: {{ pillar['user'] }}
...
...
@@ -26,6 +27,11 @@ virtualenv_manager:
- environ: m2crypto_swig_env
{% endif %}
/home/{{ pillar['user'] }}/.virtualenvs/circle/lib/python3.6/site-packages/simplesshkey/models.py:
file.patch:
- source: file:///home/{{ pillar['user'] }}/circle/requirements/simplesshkey.patch
- strip: 5
salt://manager/files/syncdb.sh:
cmd.script:
- template: jinja
...
...
salt/node.sls
View file @
e56a6953
include:
- profile
- agentdriver
- monitor-client
- vmdriver
...
...
salt/profile.sls
View file @
e56a6953
{% if grains['os']=='Debian' %}
{# For non-interactive shells, virtualenvwrapper commands
('workon' etc.) are not sourced automatically #}
/etc/profile:
file.append:
- text:
- "#Line below added for Debian by CIRCLE Salt installer"
- . /etc/bash_completion
{% endif %}
/etc/profile.d/virtualenvwrapper.sh:
file.symlink:
- target: /usr/local/bin/virtualenvwrapper.sh
salt/vncproxy/configuration.sls
View file @
e56a6953
...
...
@@ -6,16 +6,14 @@
- group: {{ pillar['user'] }}
- mode: 700
{% if
grains['os_family'] == 'RedHat' or grains['os'] == 'Debian
' %}
{% if
pillar['init_type'] == 'systemd
' %}
/etc/systemd/system/vncproxy.service:
file.managed:
- user: root
- group: root
- template: jinja
- source: file:///home/{{ pillar['user'] }}/vncproxy/miscellaneous/vncproxy.service
{% else %}
/etc/init/vncproxy.conf:
file.managed:
- user: root
...
...
@@ -23,3 +21,5 @@
- template: jinja
- source: file:///home/{{ pillar['user'] }}/vncproxy/miscellaneous/vncproxy.conf
{% endif %}
salt/vncproxy/init.sls
View file @
e56a6953
...
...
@@ -7,19 +7,19 @@ vncproxy:
pkg.installed:
- pkgs:
- git
-
ntp
-
chrony
- wget
{% if grains['os_family'] == 'RedHat' %}
- python
2
-pip
- python
3
-pip
- libffi-devel
- openssl-devel
- python-devel
- python-virtualenvwrapper
- python
3
-devel
- python
3
-virtualenvwrapper
{% else %}
- python-pip
- python
3
-pip
- libffi-dev
- libssl-dev
- python-dev
- python
3
-dev
- virtualenvwrapper
{% endif %}
- require_in:
...
...
salt/vncproxy/virtualenv.sls
View file @
e56a6953
virtualenv_vncproxy:
virtualenv.managed:
- python: /usr/bin/python3
- name: /home/{{ pillar['user'] }}/.virtualenvs/vncproxy
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements.txt
- requirements: /home/{{ pillar['user'] }}/vncproxy/requirements/{{ pillar['deployment_type'] }}.txt
- cwd: /home/{{ pillar['user'] }}/vncproxy
- user: {{ pillar['user'] }}
- no_chown: true
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