Installs/Configures sol (Serial Over LAN)
Configures GRUB to redirect the serial port to ttyS1 (configurable). Intended for serial port logging via conserver or similar.
To prevent Yak shaving, only implemented our current requirements. Contributions welcome.
- Chef 12
- Ruby 2.1.0/2.2.0
- GRUB 2
Installs/Configures reboot-handler
Any of the attributes below can be overriden on a per manufacturer basis. See usage.
- default['sol']['dell-inc'] -
Hash
with Dell specific settings. - default['sol']['quanta'] -
Hash
with Quanta specific settings. - default['sol']['tty']['conf'] - Path to
node['sol']['tty']['name']
's getty config file. - default['sol']['tty']['dir'] - Getty's directory.
- default['sol']['tty']['name'] - Name of tty to use.
- default['sol']['serial']['bios_speed'] - Serial port mode setting. BIOS speed should match this value.
- default['sol']['serial']['speed'] - The speed of the serial link in bits per second.
- default['sol']['serial']['unit'] - The number of the serial port, counting from zero.
- default['sol']['serial']['word'] - The (byte or character) of data you send or receive.
- default['sol']['serial']['parity'] - The number of parity bits.
- default['sol']['serial']['stop'] - The number of stop bit-times.
Reference the wiki for tuning the following GRUB attributes.
- default['sol']['grub']['conf'] - Path to GRUB 2's default configuration.
- default['sol']['grub']['default']
- default['sol']['grub']['hidden_timeout']
- default['sol']['grub']['hidden_timeout_quiet']
- default['sol']['grub']['timeout']
"run_list": [
"recipe[curl]"
]
Configure a new manufacturer named "foo-bar". Overriding just the "bios_speed", and keeping the remaining defaults.
"sol": {
"foo-bar": {
"serial": {
"bios_speed": "2600"
}
}
}
Installs/Configures sol
This cookbook is using ChefSpec for testing. Should run the following before commiting. It will run your tests, and check for lint errors.
% ./run_tests.bash
Author:: John Dewey (john@dewey.ws)
Copyright 2012-2016, John Dewey
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.