Templates
These templates are created by the default.rb
recipe to configure zram. In all of my templates I attempt to put in a comment that lets you know where the template came from for trouble shooting purposes.
# File dropped off by Chef for <%= node.name %> via <%= cookbook_name %>::<%= recipe_name %>.
zram
# File dropped off by Chef for <%= node.name %> via <%= cookbook_name %>::<%= recipe_name %>.
options zram num_devices=<%= node[org]['zram']['num_devices'] %>
# File dropped off by Chef for <%= node.name %> via <%= cookbook_name %>::<%= recipe_name %>.
<% node[org]['zram']['disk_size'].each do |key,value| %>
KERNEL=="<%= key %>", ATTR{disksize}="<%= value %>M",TAG+="systemd"
<% end -%>