Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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.

modules-load_zram.conf.erb

# File dropped off by Chef for <%= node.name %> via <%= cookbook_name %>::<%= recipe_name %>. 
zram

modprobe_zram.conf.erb

# File dropped off by Chef for <%= node.name %> via <%= cookbook_name %>::<%= recipe_name %>. 
options zram num_devices=<%= node[org]['zram']['num_devices'] %>

99-zram.rules.erb

# 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  -%>