please use something like

    include_recipe "libreoffice::#{node['libreoffice']['install_method']}"