Skip to content

tkuchiki/ohai-plugin-amazon-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ohai-plugin-amazon-linux

Ohai plugin for Amazon Linux

Usage

ohai command

# Amazon Linux 1
$ ohai -d /path/to/plugin/dir | jq .amazon_linux
{
  "major_version": 1,
  "version": "2017.09",
  "init_package": "init"
}

# Amazon Linux 2
$ ohai -d /path/to/plugin/dir | jq .amazon_linux
{
  "major_version": 2,
  "version": "2017.12",
  "init_package": "systemd"
}

chef

# (client|knife|solo).rb
Ohai::Config[:plugin_path] << '/path/to/plugins'
# in cookbook
node[:amazon_linux][:major_version]
node[:amazon_linux][:version]
node[:amazon_linux][:init_package]

Releases

No releases published

Packages

No packages published

Languages