Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
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
b1b9c1ed
authored
Dec 05, 2017
by
Nótai István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manager: add parameters for default node
parent
32d1f285
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
salt/manager/files/init.sh
+14
-1
No files found.
salt/manager/files/init.sh
View file @
b1b9c1ed
...
...
@@ -3,6 +3,14 @@
source
/home/
{{
pillar[
'user'
]
}}
/.virtualenvs/circle/bin/activate
source
/home/
{{
pillar[
'user'
]
}}
/.virtualenvs/circle/bin/postactivate
{
%
set
fw
=
pillar[
'fwdriver'
]
%
}
HOSTNAME
=
$(
hostname
-s
)
EXTRAPARAMS
=
""
if
[
"{{ pillar['vmdriver']['hypervisor_type'] }}"
=
"kvm"
]
;
then
EXTRAPARAMS
=
"--kvm-present"
fi
exec
python /home/
{{
pillar[
'user'
]
}}
/circle/circle/manage.py init
\
--external-net
={{
fw[
'external_net'
]
}}
\
--management-net
={{
fw[
'management_net'
]
}}
\
...
...
@@ -13,4 +21,9 @@ exec python /home/{{ pillar['user'] }}/circle/circle/manage.py init \
--firewall-queue
={{
fw[
'queue_name'
]
}}
\
--external-if
={{
fw[
'external_if'
]
}}
\
--management-if
={{
fw[
'management_if'
]
}}
\
--vm-if
={{
fw[
'vm_if'
]
}}
--vm-if
={{
fw[
'vm_if'
]
}}
\
--node-hostname
=
$HOSTNAME
\
--node-mac
=
"99:AA:BB:CC:DD:EE"
\
--node-ip
=
"127.0.0.1"
\
--node-name
=
$HOSTNAME
\
$EXTRAPARAMS
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