Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PaNOSC
Data Analysis Services
packme
Commits
8dd3dc70
Commit
8dd3dc70
authored
Mar 18, 2020
by
eric pellegrini
Browse files
propagate the headless state to all children
parent
601b4817
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/packme/PackerTemplate.py
View file @
8dd3dc70
...
...
@@ -190,6 +190,7 @@ class PackerTemplate:
parent_builder
[
"iso_url"
]
=
os
.
path
.
join
(
builder
[
"output_directory"
],
"{}-{}"
.
format
(
parent_template
.
name
,
builder_name
))
parent_builder
[
"iso_checksum_type"
]
=
"none"
parent_builder
[
"iso_checksum_url"
]
=
"none"
parent_builder
[
"headless"
]
=
"{{ headless }}"
self
.
_builders
.
insert
(
0
,
parent_builder
)
# If the builder is also defined in the child config, use the child config one and specify the image dependency
...
...
@@ -202,6 +203,7 @@ class PackerTemplate:
builder
[
"iso_url"
]
=
os
.
path
.
join
(
self
.
_templates_base_dir
,
parent_template
.
name
,
"builds"
,
"{}-{}"
.
format
(
parent_template
.
name
,
builder_name
))
builder
[
"iso_checksum_type"
]
=
"none"
builder
[
"iso_checksum_url"
]
=
"none"
builder
[
"headless"
]
=
"{{ headless }}"
def
_load_packages
(
self
,
packages
:
List
[
str
]):
"""Load the non-standard package YAML file and append them as provisioners of this :class:`PackerTemplate`.
...
...
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