Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c056a8c
authored
Jul 12, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
service ip has higher priority than private ip when file/app is played
parent
d1f36ba9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
porch/api/app/bizlogic.py
porch/templates/pxelinuxcfg.j2
quasar/src/components/app/File.vue
quasar/src/components/play/List.vue
porch/api/app/bizlogic.py
View file @
9c056a8c
...
@@ -345,7 +345,7 @@ def _bg_file_distribute(data, s_logfile):
...
@@ -345,7 +345,7 @@ def _bg_file_distribute(data, s_logfile):
with
open
(
s_logfile
,
'w+'
)
as
f
:
with
open
(
s_logfile
,
'w+'
)
as
f
:
f
.
write
(
'BEGIN: '
+
datetime
.
now
()
.
isoformat
()
+
"
\n
"
)
f
.
write
(
'BEGIN: '
+
datetime
.
now
()
.
isoformat
()
+
"
\n
"
)
for
machine
in
data
[
'machines'
]:
for
machine
in
data
[
'machines'
]:
s_cmd
=
"rsync -
a
v -e 'ssh {}' "
.
format
(
sshoptions
)
+
\
s_cmd
=
"rsync -
rlptD
v -e 'ssh {}' "
.
format
(
sshoptions
)
+
\
"/porch_files/{}/ root@{}:/"
\
"/porch_files/{}/ root@{}:/"
\
.
format
(
data
[
'name'
],
machine
)
.
format
(
data
[
'name'
],
machine
)
f
.
write
(
s_cmd
+
"
\n
"
)
f
.
write
(
s_cmd
+
"
\n
"
)
...
...
porch/templates/pxelinuxcfg.j2
View file @
9c056a8c
...
@@ -2,4 +2,4 @@ default porch-generated
...
@@ -2,4 +2,4 @@ default porch-generated
label porch-generated
label porch-generated
kernel {{ data['fai_kernel_url'] }}
kernel {{ data['fai_kernel_url'] }}
append initrd={{ data['fai_initrd_url'] }} ip=
dhcp root=live:{{ data['fai_squash_url'] }} aufs FAI_FLAGS=verbose,sshd,reboot FAI_CONFIG_SRC={{ data['fai_config_url'] }} FAI_ACTION=install {% if data['type'] == 'PM' %} console=tty0 console=ttyS0,115200n8 {% endif %} net.ifnames
=0 edd=off
append initrd={{ data['fai_initrd_url'] }} ip=
eth0:dhcp rd.shell=1 rd.net.dhcp.retry=3 rd.net.timeout.ifup=60 rd.net.timeout.carrier=30 root=live:{{ data['fai_squash_url'] }} aufs FAI_FLAGS=verbose,sshd,reboot FAI_CONFIG_SRC={{ data['fai_config_url'] }} FAI_ACTION=install {% if data['type'] == 'PM' %} console=tty0 console=ttyS0,115200n8 {% endif %} net.ifnames=0 biosdevname
=0 edd=off
quasar/src/components/app/File.vue
View file @
9c056a8c
...
@@ -232,7 +232,7 @@ export default {
...
@@ -232,7 +232,7 @@ export default {
result
.
forEach
(
function
(
element
)
{
result
.
forEach
(
function
(
element
)
{
self
.
sections
[
element
.
section
].
push
({
self
.
sections
[
element
.
section
].
push
({
name
:
element
.
name
,
name
:
element
.
name
,
ip
:
element
.
ip
ip
:
element
.
svc_ip
?
element
.
svc_ip
:
element
.
ip
})
})
})
})
},
response
=>
{
},
response
=>
{
...
...
quasar/src/components/play/List.vue
View file @
9c056a8c
...
@@ -287,7 +287,7 @@ export default {
...
@@ -287,7 +287,7 @@ export default {
result
.
forEach
(
function
(
element
)
{
result
.
forEach
(
function
(
element
)
{
self
.
sections
[
element
.
section
].
push
({
self
.
sections
[
element
.
section
].
push
({
name
:
element
.
name
,
name
:
element
.
name
,
ip
:
element
.
ip
ip
:
element
.
svc_ip
?
element
.
svc_ip
:
element
.
ip
})
})
})
})
},
response
=>
{
},
response
=>
{
...
...
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