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
25d261b3
authored
Jan 23, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installer.py fix, rabbitmq mgr added
parent
250bc29b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
22 deletions
+46
-22
install.py
+5
-5
pillar/installer.sls
+12
-16
salt/manager/files/nginx-default-site.conf
+17
-1
salt/manager/rabbitmq.sls
+12
-0
No files found.
install.py
View file @
25d261b3
...
...
@@ -69,7 +69,7 @@ def input_admin_password():
pw
,
status
=
input_password_with_retype
()
while
not
status
:
pw
,
status
=
input_password_with_retype
()
return
pw
.
encode
(
'utf8'
)
return
str
(
pw
)
def
yaml_pretty_dump
(
data
,
file
,
**
extra
):
...
...
@@ -106,7 +106,7 @@ class KeyStore:
if
key
is
None
:
key
=
self
.
gen_key
(
16
)
self
.
data
[
name
]
=
key
return
key
return
str
(
key
)
def
save
(
self
):
with
open
(
self
.
keyfile
,
'w'
)
as
f
:
...
...
@@ -173,9 +173,9 @@ installer_sls = {
'queue_name'
:
get_hostname
(),
},
'fwdriver'
:
{
'gateway'
:
get_default_gw
()
.
encode
(
'utf-8'
)
,
'external_if'
:
get_interface
()
.
encode
(
'utf-8'
)
,
'external_net'
:
get_ip_with_mask
(
get_interface
())
.
encode
(
'utf-8'
)
,
'gateway'
:
get_default_gw
(),
'external_if'
:
get_interface
(),
'external_net'
:
get_ip_with_mask
(
get_interface
()),
'queue_name'
:
get_hostname
(),
'management_if'
:
'ethy'
,
'trunk_if'
:
'linkb'
,
...
...
pillar/installer.sls
View file @
25d261b3
admin_pass: !!binary |
YWRtaW4=
admin_pass: admin
admin_user: admin
amqp:
host: 127.0.0.1
password:
Y4zmHRFVSMaeLcp
8
password:
phvBiu3rPLXaJZc
8
port: 5672
user: cloud
vhost: circle
cache: pylibmc://127.0.0.1:11211/
database:
name: circle
password:
an065ZReMOuiwfGW
password:
PmH8Fzdx0LBcl6sr
user: circle
deployment_type: local
fwdriver:
external_if: !!binary |
ZXRoMA==
external_net: !!binary |
MTAuOS4wLjE0Mi8xNg==
gateway: !!binary |
MTAuOS4yNTUuMjU0
external_if: eth0
external_net: 10.9.0.55/16
gateway: 10.9.255.254
management_if: ethy
queue_name: cloud-411
25
queue_name: cloud-411
74
trunk_if: linkb
graphite:
host: 127.0.0.1
password:
mCiHBgpsS9rL64vM
password:
huWGODFPm1HSgMZk
port: 5672
queue: monitor
secret_key:
yGWhI0DsEoX7QJzl
secret_key:
YK4c6jfDR31HsA0O
user: monitor
vhost: monitor
init_type: systemd
...
...
@@ -37,10 +33,10 @@ nfs:
enabled: true
network: 127.0.0.0/8
server: 127.0.0.1
proxy_secret:
bQHgYBlX43aPop5h
secret_key:
95utIBEkwb0a7KSN
proxy_secret:
P4dFDnXOmvQtKUJ0
secret_key:
XISvOHyuaWBc89kF
storagedriver:
queue_name: cloud-411
25
queue_name: cloud-411
74
timezone: Europe/Budapest
user: cloud
vmdriver:
...
...
salt/manager/files/nginx-default-site.conf
View file @
25d261b3
...
...
@@ -2,7 +2,6 @@ ignore_invalid_headers on;
server
{
listen
443
ssl
default
;
ssl
on
;
ssl_certificate
/
etc
/
ssl
/
certs
/
circle
.
pem
;
ssl_certificate_key
/
etc
/
ssl
/
certs
/
circle
.
pem
;
...
...
@@ -40,6 +39,23 @@ server {
}
}
{%
if
pillar
[
'deployment_type'
] ==
"local"
%}
server
{
# listen 8443 ssl default;
listen
8443
default
;
# ssl_certificate /etc/ssl/certs/circle.pem;
# ssl_certificate_key /etc/ssl/certs/circle.pem;
location
/ {
proxy_pass
http
://
localhost
:
15672
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
}
}
{%
endif
%}
server
{
listen
80
default
;
...
...
salt/manager/rabbitmq.sls
View file @
25d261b3
...
...
@@ -42,4 +42,16 @@ rabbitmq_user_graphite:
- require:
- service: rabbitmq-server
{% if pillar['deployment_type'] == "local" %}
rabbitmq_management:
rabbitmq_plugin.enabled: []
rabbitmq_user_guest:
rabbitmq_user.present:
- name: guest
- password: guest
- perms: [{ {{ pillar['amqp']['vhost']}}: [.*, .*, .*]}, { {{ pillar['graphite']['vhost']}}: [.*, .*, .*]}]
- require:
- service: rabbitmq-server
{% endif %}
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