Serial Over LAN Chef Cookbook
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 17 commits ahead, 57 commits behind retr0h:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
spec
templates/default
.foodcritic-rules
.gitignore
.gitreview
.travis.yml
Berksfile
Berksfile.lock
Gemfile
Gemfile.lock
LICENSE
README.md
metadata.rb

README.md

Build Status

Description

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.

Requirements

  • Chef 0.8+
  • GRUB 2

reboot-handler

Installs/Configures reboot-handler

Attributes

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']

Usage

"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"
        }
    }
}

default

Installs/Configures sol

Testing

See SilverLining documentation

License and Author

Author:: John Dewey (john@dewey.ws)

Copyright 2012-2014, 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.