Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

Commit

Permalink
Issue #1: Try to get vagrant user created, and use DVD iso for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Sep 25, 2019
1 parent 81059cc commit a5b5fc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions centos8.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"headless": false,
"http_directory": "http",
"iso_urls": [
"CentOS-8-x86_64-1905-boot.iso",
"http://mirrors.mit.edu/centos/8/isos/x86_64/CentOS-8-x86_64-1905-boot.iso"
"CentOS-8-x86_64-1905-dvd1.iso",
"http://mirrors.mit.edu/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso"
],
"iso_checksum_type": "sha256",
"iso_checksum": "a7993a0d4b7fef2433e0d4f53530b63c715d3aadbe91f152ee5c3621139a2cbc",
"iso_checksum": "ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
Expand All @@ -49,13 +49,13 @@
"modifyvm",
"{{.Name}}",
"--memory",
"512"
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
"1"
]
]
}
Expand Down
7 changes: 6 additions & 1 deletion http/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ auth --enableshadow --passalgo=sha512 --kickstart
firstboot --disabled
eula --agreed
services --enabled=NetworkManager,sshd
reboot
user --name=vagrant --plaintext --password vagrant --groups=vagrant,wheel
reboot

%packages --ignoremissing --excludedocs
@Base
Expand Down Expand Up @@ -72,6 +72,11 @@ yum update -y
# update root certs
wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem

# Add vagrant user (user directive isn't working for some reason).
/usr/sbin/useradd vagrant
/usr/bin/passwd -d vagrant
/usr/sbin/usermod -a -G wheel vagrant

# sudo
yum install -y sudo
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
Expand Down

0 comments on commit a5b5fc4

Please sign in to comment.