Skip to content

Commit 9efd02e

Browse files
authored
Small enhancements (Parallels#40)
* Removing unnecessary logic * Ubuntu version in the template does not exist. Changed to the latest LTS release * Ubuntu version in the template does not exist. Changed to the latest LTS release * Vagrant instructions updated * Build instructions updated * Typo fixed * Update README.md Made instructions around vagrant clearer
1 parent d597075 commit 9efd02e

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

http/ubuntu/preseed.cfg.pkrtpl.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ d-i pkgsel/install-language-support boolean false
7979
d-i pkgsel/update-policy select none
8080
d-i pkgsel/upgrade select full-upgrade
8181

82-
# Disable polularity contest
82+
# Disable popularity contest
8383
popularity-contest popularity-contest/participate boolean false
8484

8585
# Select base install

scripts/ubuntu/base/vagrant.sh

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ else
1919
exit 1
2020
fi
2121

22-
wget --no-check-certificate "$pubkey_url" -O "$HOME_DIR"/authorized_keys
23-
2422
chown -R $USERNAME "$HOME_DIR"/.ssh
2523
chmod -R go-rwsx "$HOME_DIR"/.ssh

ubuntu/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ user = {
3434
password = "parallels",
3535
force_password_change = false,
3636
}
37-
version="23.04"
38-
machine_name="ubuntu_23.04_LTS"
39-
hostname="ubuntu-23.04"
37+
version="22.04.3"
38+
machine_name="ubuntu_22.04_LTS"
39+
hostname="ubuntu-22.04"
4040
machine_specs = {
4141
cpus = 2,
4242
memory = 2048,
@@ -60,7 +60,7 @@ create_vagrant_box = false
6060
* `addons` - A list of addons to install. The following addons are available:
6161
* `desktop` - Installs the Ubuntu desktop.
6262
* `vscode` - Installs Visual Studio code.
63-
* `create_vagrant_box` - If set to `true` a Vagrant box will be created. If set to `false` only a virtual machine will be created.
63+
* `create_vagrant_box` - If set to `true` a Vagrant box will be created. If set to `false` only a virtual machine will be created. If set to `true`, `force_password_change` will automatically be set to `false` since it would interfere with vagrant's initial setup.
6464

6565
### Packer
6666

@@ -91,7 +91,7 @@ The configuration is valid.
9191
To build the virtual machine, navigate to the directory containing the script and run the following command:
9292

9393
```bash
94-
packer build .
94+
packer build -var-file variables.pkrvars.hcl .
9595
```
9696

9797
This will create a new virtual machine based on the configuration in the Packer script in the out folder. if you set the `create_vagrant_box` variable to `true` a Vagrant box will be created in the `out` folder.

ubuntu/variables.TEMPLATE.pkrvars.hcl

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ user = {
44
password = "parallels",
55
force_password_change = true,
66
}
7-
version = "23.04"
8-
machine_name = "ubuntu_23.04_LTS"
9-
hostname = "ubuntu-23.04"
7+
version = "22.04.3"
8+
machine_name = "ubuntu_22.04_LTS"
9+
hostname = "ubuntu-22.04"
1010
machine_specs = {
1111
cpus = 2,
1212
memory = 2048,

0 commit comments

Comments
 (0)