Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BENTO-20] add fedora 18 support #17

Merged
merged 2 commits into from
Jul 5, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions definitions/.fedora/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -eux
yum -y erase gtk2 libX11 hicolor-icon-theme freetype
yum -y clean all
rm -rf VBoxGuestAdditions_*.iso VBoxGuestAdditions_*.iso.?
rm -f /tmp/chef*rpm
45 changes: 45 additions & 0 deletions definitions/.fedora/ks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
install
cdrom
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone UTC
bootloader --location=mbr
text
skipx
zerombr
clearpart --all --initlabel
autopart
auth --useshadow --enablemd5
firstboot --disabled
reboot

%packages
@Core
bzip2
gcc
kernel-devel
kernel-headers
openssl-devel
readline-devel
tar
wget
zlib-devel
%end

%post
# update root certs
wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem
# vagrant
groupadd vagrant
useradd vagrant -g vagrant -G wheel -u 900
echo "vagrant" | passwd --stdin vagrant
# sudo
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
chmod 440 /etc/sudoers.d/vagrant
%end
13 changes: 13 additions & 0 deletions definitions/.fedora/session.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require File.dirname(__FILE__) + "/../.common/session.rb"

FEDORA_SESSION =
COMMON_SESSION.merge({ :boot_cmd_sequence =>
[ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
:kickstart_file => "ks.cfg",
:os_type_id => 'Fedora_64',
:memory_size=> "512",
:postinstall_files => [ "chef-client.sh",
"vagrant.sh",
"cleanup.sh",
"minimize.sh" ],
:shutdown_cmd => "/sbin/halt -h -p" })
1 change: 1 addition & 0 deletions definitions/fedora-18/chef-client.sh
1 change: 1 addition & 0 deletions definitions/fedora-18/cleanup.sh
11 changes: 11 additions & 0 deletions definitions/fedora-18/definition.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require File.dirname(__FILE__) + "/../.fedora/session.rb"

iso = "Fedora-18-x86_64-DVD.iso"

session =
FEDORA_SESSION.merge( :iso_file => iso,
:iso_md5 => "17d5c860bf9dc83e035882a7b33ffc77",
:iso_src => "http://mirrors.kernel.org/fedora/releases/18/Fedora/x86_64/iso/#{iso}"
)

Veewee::Session.declare session
1 change: 1 addition & 0 deletions definitions/fedora-18/ks.cfg
1 change: 1 addition & 0 deletions definitions/fedora-18/minimize.sh
1 change: 1 addition & 0 deletions definitions/fedora-18/vagrant.sh