- Overview
- Module Description
- Usage - Configuration options and additional functionality
- Reference
- Limitations
- Development
- Copyright
This module installs, configures, and manages ksplice for rebootless kernel upgrades.
The ksplice module installs, configures, and manages ksplice to update your kernel without needing to reboot.
A license/access key from ksplice is required for rebootless upgrades to work.
The module will install the ksplice repository, install the uptrack package, and manage the ksplice configuration file.
This module follows semantic versioning.
If you have a license key and want to check for kernel updates every 30 minutes and automatically install them. This is what the normal manual installation of ksplice will do.
class { '::ksplice':
config_accesskey => 'YOUR_LICENSE_KEY',
}
By default uptrack runs every 30 minutes unless you give it a custom cron time.
class { '::ksplice':
config_accesskey => 'YOUR_LICENSE_KEY',
config_proxy => 'https://your.proxy.server:port',
cron_minute => '13',
cron_hour => '03',
cron_month => '*',
cron_monthday => '*',
cron_weekday => '*',
}
- ksplice::repo: Installs the package repository on the server
- ksplice::install: Installs the uptrack package on the server
- ksplice::config: Manages the configuration for uptrack
- ksplice::cron: Manages the cron job for uptrack
Specify a custom template to use. Default value: 'ksplice/uptrack.conf.erb'
Specify your accesskey. Default value: 'INSERT_ACCESS_KEY'
Specify your proxyserver. Default value: 'None'
Automatically install updates at boot time. If this is set, on reboot into the same kernel, uptrack will re-install the same set of updates that were present before the reboot. Default value: 'true'
Automatically install all available updates at boot time, even if rebooted into a different kernel. Default value: 'true'
Uptrack runs in a cron job to check for and download new updates. You can can configure this cron job to automatically install new updates as they become available. Default value: 'true'
Specify if you want the module to install the ksplice cron job. Default value: true
Specify a custom cron_minute. Default value: [fqdn_rand(30) , fqdn_rand(30) + 30]
Specify a custom cron_hour. Default value: '*'
Specify a custom cron_month. Default value: '*'
Specify a custom cron_monthday. Default value: '*'
Specify a custom cron_weekday. Default value: '*'
Specify if you want the module to install the ksplice repo. Default value: 'true'
Specify a custom name for the yum and apt repo. Default value: 'ksplice'
Specify a custom description for the yum repo. Default value: 'ksplice'
Specify a baseurl_prefix for the yum repo. It isn't documented anywhere but you can mirror the uptrack packages from ksplice.com using rsync. Default value: 'http://www.ksplice.com/yum/uptrack/'
Specify a baseurl_prefix for the yum repo. It isn't documented anywhere but you can mirror the uptrack packages from ksplice.com using rsync. Default value: 'http://www.ksplice.com/apt/'
Specify the enable value for the yum and apt repo. Default value: true
Specify the gpgcheck value for the yum repo. Default value: true
Specify a custom url or path for the GPG key for the packages in the yum repo. Default value: 'https://www.ksplice.com/yum/RPM-GPG-KEY-ksplice'
Specify a custom key id for the apt repo. Default value: '5DE2D4F255E23055D3C40F2CF7CA6265B6D4038E'
Specify a custom url for the apt key. Default value: 'https://www.ksplice.com/apt/ksplice-archive.asc'
Specify a version of status for the uptrack package. Default value: 'present'
uptrack-uname
will print out the effective version of kernel after patching. It accepts uname(1) command-line options and produces compatible output. There are facts, using uptrack-uname, corresponding to the kernel facts that already come with facter.
- ksplice_kernelrelease: effective kernel release
- ksplice_kernelversion: effective kernel version
- ksplice_kernelmajversion: effective kernel major version
- ksplice_kernel_package_version: effective version of the distribution's kernel package
Install necessary gems:
bundle install --path vendor/bundle
Check syntax of all puppet manifests, erb templates, and ruby files:
bundle exec rake validate
Run puppetlint on all puppet files:
bundle exec rake lint
Run spec tests in a clean fixtures directory
bundle exec rake spec
Run acceptance tests with a ksplice license:
KSPLICE_LICENSE=abc123 PUPPET_INSTALL_TYPE=agent BEAKER_set=centos-7-x64 bundle exec rake acceptance
Run acceptance tests on docker without a ksplice license (faster):
PUPPET_INSTALL_TYPE=agent BEAKER_set=docker/centos-7-x64 bundle exec rake acceptance
Copyright 2015 Nexcess
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.