forked from jameswthorne/kickstart-profiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-server-14.04-lts-x86_64-vagrant-box.txt
72 lines (47 loc) · 1.22 KB
/
ubuntu-server-14.04-lts-x86_64-vagrant-box.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
install
text
cdrom
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
timezone --utc America/Chicago
zerombr
clearpart --all --initlabel
bootloader --location=mbr
part /boot --fstype=ext3 --size=256 --asprimary
part pv.01 --size=1024 --grow --asprimary
volgroup vg_root pv.01
logvol swap --fstype swap --name=lv_swap --vgname=vg_root --size=1024
logvol / --fstype=ext4 --name=lv_root --vgname=vg_root --size=1024 --grow
auth --enableshadow --enablemd5
# rootpw is vagrant
rootpw --iscrypted $1$dUDXSoA9$/bEOTiK9rmsVgccsYir8W0
user --disabled
firewall --disabled
skipx
reboot
%packages
ubuntu-minimal
openssh-server
openssh-client
wget
curl
git
man
vim
ntp
%post
apt-get update
apt-get upgrade -y linux-generic
update-grub
useradd -m -s /bin/bash vagrant
mkdir -m 0700 -p /home/vagrant/.ssh
curl https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub >> /home/vagrant/.ssh/authorized_keys
chmod 600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant:vagrant /home/vagrant/.ssh
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sed -i 's/^PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
apt-get clean
rm -rf /tmp/*
rm -f /var/log/wtmp /var/log/btmp
history -c