Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
packme
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PaNOSC
Data Analysis Services
packme
Commits
8dd3dc70
Commit
8dd3dc70
authored
Mar 18, 2020
by
eric pellegrini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propagate the headless state to all children
parent
601b4817
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/packme/PackerTemplate.py
src/packme/PackerTemplate.py
+2
-0
No files found.
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