Skip to content

Commit a3d7b5b

Browse files
committed
Homework dmitry-lyutenko#1: Create Vagrant box(4)
1 parent 335075a commit a3d7b5b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Describe VMs
22
MACHINES = {
33
# VM name "kernel update"
4-
:"kernel update" => {
4+
:"kernel-update" => {
55
# VM box
66
:box_name => "incertov/centos-7-5",
77
# VM CPU count

packer/centos.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"variables": {
3-
"artifact_description": "CentOS 7.7 with kernel 5.x",
4-
"artifact_version": "7.7.1908",
5-
"image_name": "centos-7.7"
3+
"artifact_description": "CentOS 7.8 with kernel 5.x",
4+
"artifact_version": "7.8.2003",
5+
"image_name": "centos-7.8"
66
},
77

88
"builders": [
@@ -16,8 +16,8 @@
1616
"guest_os_type": "RedHat_64",
1717
"http_directory": "http",
1818

19-
"iso_url": "http://mirror.yandex.ru/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso",
20-
"iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
19+
"iso_url": "https://mirror.yandex.ru/centos/7.8.2003/isos/x86_64/CentOS-7-x86_64-Minimal-2003.iso",
20+
"iso_checksum": "659691c28a0e672558b003d223f83938f254b39875ee7559d1a4a14c79173193",
2121
"iso_checksum_type": "sha256",
2222

2323
"boot_command": [

packer/scripts/stage-1-kernel-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Install elrepo
4-
yum install -y http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
4+
yum install -y http://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm
55
# Install new kernel
66
yum --enablerepo elrepo-kernel install kernel-ml -y
77
# Remove older kernels (Only for demo! Not Production!)

packer/scripts/stage-2-clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ rm -rf /run/log/journal/*
2727
dd if=/dev/zero of=/EMPTY bs=1M
2828
rm -f /EMPTY
2929
sync
30-
grub2-set-default 1
30+
grub2-set-default 0
3131
echo "### Hi from secone stage" >> /boot/grub2/grub.cfg

0 commit comments

Comments
 (0)