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
Romain Courteaud
slapos.package
Commits
c7183d54
Commit
c7183d54
authored
Jul 23, 2020
by
Francois Le Corre
Committed by
Thomas Gambier
Jul 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubuntu 20.04 and ansible file cleanup
parent
0c62baab
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
121 deletions
+126
-121
packer/build-vm-bootstrap.yml
packer/build-vm-bootstrap.yml
+43
-121
packer/http/preseed-ubuntu20.04.cfg
packer/http/preseed-ubuntu20.04.cfg
+13
-0
packer/ubuntu-20.04-server-amd64.json
packer/ubuntu-20.04-server-amd64.json
+70
-0
No files found.
packer/build-vm-bootstrap.yml
View file @
c7183d54
This diff is collapsed.
Click to expand it.
packer/http/preseed-ubuntu20.04.cfg
0 → 100644
View file @
c7183d54
d-i preseed/include string ../preseed-ubuntu.cfg
d-i preseed/early_command string \
mkdir -p /usr/lib/post-base-installer.d && \
echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \
chmod +x /usr/lib/post-base-installer.d/90skip-tasksel
d-i preseed/late_command string \
echo 'Defaults:slapos !requiretty' > /target/etc/sudoers.d/slapos; \
echo 'slapos ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/slapos; \
chmod 440 /target/etc/sudoers.d/slapos ; \
ln -sf /dev/null /target/etc/systemd/network/99-default.link; \
in-target update-initramfs -u
packer/ubuntu-20.04-server-amd64.json
0 → 100644
View file @
c7183d54
{
"variables"
:
{
"user"
:
"slapos"
,
"password"
:
"slapos"
,
"domain"
:
""
,
"disk_size"
:
"20"
,
"name"
:
"image"
,
"custom_script"
:
"scripts/empty.sh"
},
"builders"
:
[
{
"name"
:
"ubuntu-20.04-server-{{ user `disk_size`}}G-{{ user `name`}}"
,
"type"
:
"qemu"
,
"format"
:
"qcow2"
,
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"headless"
:
true
,
"iso_checksum"
:
"9d2b54506f8f9fdad6b72e45aff0f0de"
,
"iso_url"
:
"http://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/ubuntu-20.04-legacy-server-amd64.iso"
,
"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 -P now"
,
"boot_wait"
:
"2s"
,
"boot_command"
:
[
"<esc><wait>"
,
"<esc><wait>"
,
"<enter><wait>"
,
"/install/vmlinuz "
,
"initrd=/install/initrd.gz "
,
"auto=true "
,
"debconf/priority=critical "
,
"keyboard-configuration/modelcode=pc105 keyboard-configuration/layout=FR "
,
"keyboard-configuration/variant=FR console-setup/ask_detect=false "
,
"net.ifnames=0 "
,
"hostname={{ .Name }} "
,
"passwd/user-fullname={{user `user`}} "
,
"passwd/user-password-again={{user `password`}} "
,
"passwd/user-password={{user `password`}} "
,
"passwd/username={{user `user`}} "
,
"noapic "
,
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu20.04.cfg "
,
"-- <enter>"
]
}
],
"provisioners"
:
[
{
"type"
:
"shell"
,
"execute_command"
:
"echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"scripts"
:
[
"scripts/update-ubuntu.sh"
,
"scripts/grub-ubuntu.sh"
,
"{{ user `custom_script` }}"
]
}
]
}
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