I want to get distribution code name by using Itamae.
recipe.rb
require 'pp'
pp node[:platform] #=> ubuntu
pp node[:platform_version] #=> 14.04
pp node[:lsb] #=> nil
pp node[:codename] #=> nil
As you see I could get os name and version of it, but couldn't get code name like trusty
.
If I login the server and run a command lsb_release -cs
, then it return trusty
.
How can I get the code name from Itamae
?