-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from juliandunn/fedora-21
added Fedora 21 support
- Loading branch information
Showing
3 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "Fedora", | ||
"http_directory": "http", | ||
"iso_checksum": "85e50a8a938996522bf1605b3578a2d6680362c1aa963d0560d59c2e4fc795ef", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/i386/iso/Fedora-Server-DVD-i386-21.iso", | ||
"output_directory": "packer-fedora-21-i386-virtualbox", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"512" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"1" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "packer-fedora-21-i386" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"guest_os_type": "fedora", | ||
"http_directory": "http", | ||
"iso_checksum": "85e50a8a938996522bf1605b3578a2d6680362c1aa963d0560d59c2e4fc795ef", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/i386/iso/Fedora-Server-DVD-i386-21.iso", | ||
"output_directory": "packer-fedora-21-i386-vmware", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "packer-fedora-21-i386", | ||
"vmx_data": { | ||
"cpuid.coresPerSocket": "1", | ||
"memsize": "512", | ||
"numvcpus": "1" | ||
} | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"parallels_tools_flavor": "lin", | ||
"guest_os_type": "fedora-core", | ||
"http_directory": "http", | ||
"iso_checksum": "85e50a8a938996522bf1605b3578a2d6680362c1aa963d0560d59c2e4fc795ef", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/i386/iso/Fedora-Server-DVD-i386-21.iso", | ||
"output_directory": "packer-fedora-21-i386-parallels", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"prlctl": [ | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--memsize", | ||
"512" | ||
], | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--cpus", | ||
"1" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"vm_name": "packer-fedora-21-i386" | ||
} | ||
|
||
], | ||
"post-processors": [ | ||
{ | ||
"output": "../builds/{{.Provider}}/opscode_fedora-21-i386_chef-{{user `chef_version`}}.box", | ||
"type": "vagrant" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"environment_vars": [ | ||
"CHEF_VERSION={{user `chef_version`}}" | ||
], | ||
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", | ||
"scripts": [ | ||
"scripts/fedora/fix-slow-dns.sh", | ||
"scripts/common/sshd.sh", | ||
"scripts/common/vmtools.sh", | ||
"scripts/common/chef.sh", | ||
"scripts/common/vagrant.sh", | ||
"scripts/fedora/cleanup.sh", | ||
"scripts/common/minimize.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"chef_version": "provisionerless", | ||
"mirror": "http://download.fedoraproject.org/pub/fedora/linux" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "Fedora_64", | ||
"http_directory": "http", | ||
"iso_checksum": "a6a2e83bb409d6b8ee3072ad07faac0a54d79c9ecbe3a40af91b773e2d843d8e", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/x86_64/iso/Fedora-Server-DVD-x86_64-21.iso", | ||
"output_directory": "packer-fedora-21-x86_64-virtualbox", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"512" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"1" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "packer-fedora-21-x86_64" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"guest_os_type": "fedora-64", | ||
"http_directory": "http", | ||
"iso_checksum": "a6a2e83bb409d6b8ee3072ad07faac0a54d79c9ecbe3a40af91b773e2d843d8e", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/x86_64/iso/Fedora-Server-DVD-x86_64-21.iso", | ||
"output_directory": "packer-fedora-21-x86_64-vmware", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "packer-fedora-21-x86_64", | ||
"vmx_data": { | ||
"cpuid.coresPerSocket": "1", | ||
"memsize": "512", | ||
"numvcpus": "1" | ||
} | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-21/ks.cfg<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": 40960, | ||
"parallels_tools_flavor": "lin", | ||
"guest_os_type": "fedora-core", | ||
"http_directory": "http", | ||
"iso_checksum": "a6a2e83bb409d6b8ee3072ad07faac0a54d79c9ecbe3a40af91b773e2d843d8e", | ||
"iso_checksum_type": "sha256", | ||
"iso_url": "{{user `mirror`}}/releases/21/Server/x86_64/iso/Fedora-Server-DVD-x86_64-21.iso", | ||
"output_directory": "packer-fedora-21-x86_64-parallels", | ||
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"prlctl": [ | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--memsize", | ||
"512" | ||
], | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--cpus", | ||
"1" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"vm_name": "packer-fedora-21-x86_64" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"output": "../builds/{{.Provider}}/opscode_fedora-21_chef-{{user `chef_version`}}.box", | ||
"type": "vagrant" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"environment_vars": [ | ||
"CHEF_VERSION={{user `chef_version`}}" | ||
], | ||
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'", | ||
"scripts": [ | ||
"scripts/fedora/fix-slow-dns.sh", | ||
"scripts/common/sshd.sh", | ||
"scripts/common/vmtools.sh", | ||
"scripts/common/chef.sh", | ||
"scripts/common/vagrant.sh", | ||
"scripts/fedora/cleanup.sh", | ||
"scripts/common/minimize.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"chef_version": "provisionerless", | ||
"mirror": "http://download.fedoraproject.org/pub/fedora/linux" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
install | ||
cdrom | ||
lang en_US.UTF-8 | ||
keyboard us | ||
network --bootproto=dhcp | ||
rootpw vagrant | ||
firewall --disabled | ||
authconfig --enableshadow --passalgo=sha512 | ||
selinux --permissive | ||
timezone UTC | ||
bootloader --location=mbr | ||
text | ||
skipx | ||
zerombr | ||
clearpart --all --initlabel | ||
part /boot --fstype=ext4 --size=500 | ||
part pv.2 --grow --size=500 | ||
volgroup vg_vagrant --pesize=32768 pv.2 | ||
logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow | ||
logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056 | ||
bootloader --location=mbr --append="norhgb biosdevname=0" | ||
auth --useshadow --enablemd5 | ||
firstboot --disabled | ||
reboot | ||
user --name=vagrant --plaintext --password vagrant | ||
|
||
%packages --nobase --ignoremissing --excludedocs | ||
bzip2 | ||
gcc | ||
kernel-devel | ||
kernel-headers | ||
tar | ||
wget | ||
nfs-utils | ||
net-tools | ||
-linux-firmware | ||
-plymouth | ||
-plymouth-core-libs | ||
%end | ||
|
||
%post | ||
# update root certs | ||
wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem | ||
# 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 |