Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Xiaowu Zhang
slapos.package
Commits
c0c43ce9
Commit
c0c43ce9
authored
Jun 23, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: packer fix to 1.7.3
parent
cfaba771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
38 deletions
+26
-38
packer/debian10.json
packer/debian10.json
+26
-38
No files found.
packer/debian10.json
View file @
c0c43ce9
{
"variables"
:
{
"user"
:
"slapos"
,
"password"
:
"slapos"
,
"domain"
:
""
,
"disk_size"
:
"100"
,
"name"
:
"image"
,
"custom_script"
:
"scripts/empty.sh"
},
"builders"
:
[
"builders"
:
[
{
"name"
:
"debian10-{{ user `disk_size`}}G-{{ user `name`}}"
,
"type"
:
"qemu"
,
"format"
:
"qcow2"
,
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"iso_url"
:
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.2.0-amd64-netinst.iso"
,
"iso_checksum"
:
"36de671429939e90f2a31ce3fbed0aaf"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
"ssh_username"
:
"{{user `user`}}"
,
"ssh_password"
:
"{{user `password`}}"
,
"ssh_wait_timeout"
:
"1800s"
,
"shutdown_command"
:
"echo '{{user `password`}}'|sudo -S shutdown -h now"
,
"headless"
:
true
,
"boot_wait"
:
"2s"
,
"boot_command"
:
[
"<esc><wait><wait><wait><wait>"
,
"auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian10.cfg "
,
"debian-installer=en_US.UTF-8 locale=en_US keymap=fr "
,
"netcfg/get_hostname={{ .Name }} "
,
"netcfg/get_domain={{ user `domain`}} "
,
"fb=false debconf/frontend=noninteractive "
,
"passwd/user-fullname={{user `user`}} "
,
"passwd/user-password={{user `password`}} "
,
"passwd/user-password-again={{user `password`}} "
,
"passwd/username={{user `user`}} "
,
"<enter>"
]
],
"boot_wait"
:
"2s"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"format"
:
"qcow2"
,
"headless"
:
true
,
"http_directory"
:
"http"
,
"iso_checksum"
:
"md5:36de671429939e90f2a31ce3fbed0aaf"
,
"iso_url"
:
"https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.2.0-amd64-netinst.iso"
,
"name"
:
"debian10-{{ user `disk_size`}}G-{{ user `name`}}"
,
"shutdown_command"
:
"echo '{{user `password`}}'|sudo -S shutdown -h now"
,
"ssh_password"
:
"{{user `password`}}"
,
"ssh_timeout"
:
"1800s"
,
"ssh_username"
:
"{{user `user`}}"
,
"type"
:
"qemu"
}
],
"provisioners"
:
[
{
"type"
:
"shell"
,
"execute_command"
:
"echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"scripts"
:
[
"scripts/update.sh"
,
...
...
@@ -60,8 +39,17 @@
"scripts/network-debian.sh"
,
"scripts/cleanup.sh"
,
"{{ user `custom_script` }}"
]
],
"type"
:
"shell"
}
]
],
"variables"
:
{
"custom_script"
:
"scripts/empty.sh"
,
"disk_size"
:
"100"
,
"domain"
:
""
,
"name"
:
"image"
,
"password"
:
"slapos"
,
"user"
:
"slapos"
}
}
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