This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UEFI and Ubuntu 14.04 support for chef-bach
- First attempt at updating shell scripts for Ubuntu 14.04 - Make cobbler recipe pass rubocop - Remove hardcoded paths from gem installation recipes. - Update bcpc::ufw recipe for 14.04 and rubocop compliance - Update bcpc::apache-mirror for 14.04 - Update dependencies in metadata.rb and Berksfile to match shell scripts - Add .chef_found* to chefignore - Use upstream packages and cobbler 2.6 - Use os_version 'trusty' for ubuntu 14.04 image import - Update enroll_cobbler.sh for cobbler 2.6 - Use Xenial HWE kernel for EFI installs; reorganize cobbler templates. - Add 14.04 preseed, remove 12.04 preseed - Correct whitespace on bcpc default attributes - Fix vbox_create.sh for VM builds with EFI (again) - Don't write empty strings to environment if no proxy specified - automated_install.sh: Don't overwrite host's cluster dir in VM builds - Override data disks in the stub environment for VM builds - Move serial console kopts from enroll_cobbler.sh into bcpc::cobbler - Use the -56 percona metapackage instead of the versionless one - Updated quorum status check not to use mysql cli - Fix disk handling for EFI VM builds - Move percona repo to bcpc::mysql_client recipe - Delete a couple of bogus methods from bcpc::hadoop utils.rb - Fix mysql logging - Improve rubocop compliance on mysql.rb - Rubocop-ize bcpc-hadoop::oozie - Move oozie recipes from shell scripts to database cookbook providers - Move mysql connection info into helpers - Don't create ipxe hardlink until cobbler sync runs. - Straighten out tftp paths on bcpc::cobbler - Delete (duplicate) defaults from Test-Laptop demo environment - Grant global privileges to root@'%' in bcpc::mysql - Correct root@'%' priveleges; memoize passwords in connection info
- Loading branch information
Showing
62 changed files
with
1,563 additions
and
871 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
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
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
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.git | ||
.kitchen | ||
.vagrant | ||
bins | ||
chef | ||
cookbooks | ||
core | ||
|
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
Binary file not shown.
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 |
---|---|---|
@@ -1,11 +1,29 @@ | ||
# enumerate available disks and how they will be used | ||
avail_disks = node[:block_device].keys.select{ |d| d =~ /sd[b-z]/ } | ||
default[:bcpc][:hadoop][:disks] = { | ||
:available_disks => avail_disks, | ||
# keep at least that many disks for the :disk_reserve_roles | ||
:role_min_disk => 2, | ||
# we are reserving disks for the following | ||
:reservation_requests => ["graphite_disk"], | ||
# reservations will be saved here | ||
:disk_reserve_roles => ["BCPC-Hadoop-Head"] | ||
} | ||
# Enumerate available disks and how they will be used | ||
default[:bcpc][:hadoop][:disks].tap do |disks| | ||
# | ||
# What disks will bcpc and bcpc-hadoop feel free to blank? | ||
# By default, all sd* devices, excluding sda. | ||
# | ||
# On our EFI-based VM builds, it's very important to omit sdb, as | ||
# that is the 32 MB image containing iPXE. (It's relatively | ||
# harmless to overwrite it, but it will cause graphite to fail when | ||
# /disk/0 fills up.) | ||
# | ||
# We have to check DMI because Ohai doesn't understand VBox EFI. | ||
# | ||
disks[:available_disks] = | ||
if node[:dmi][:system][:product_name] == 'VirtualBox' | ||
node[:block_device].keys.select{ |d| d =~ /sd[a-i]?[b-z]/ } - ['sdb'] | ||
else | ||
node[:block_device].keys.select{ |d| d =~ /sd[a-i]?[b-z]/ } | ||
end | ||
|
||
# Keep at least this many disks for the :disk_reserve_roles | ||
disks[:role_min_disk] = 2 | ||
|
||
# We are reserving disks for the following | ||
disks[:reservation_requests] = ['graphite_disk'] | ||
|
||
# Reservations will be saved here | ||
disks[:disk_reserve_roles] = ['BCPC-Hadoop-Head'] | ||
end |
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
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
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
Oops, something went wrong.