``profile::nomachine::license``
===============================

This is a sub-class for ``profile::nomachine``.

Installs and configures NoMachine server and node licenses to a specific directory (default ``/etc/NX``). 
When licenses are updated, it triggers the activation of the new NoMachine licenses and it deploys them in ``/usr/NX/etc``.

Dependencies
------------

This is part of the ``profile::nomachine``.

Parameters
----------

=========================== ========== ================================================================================================
**Name**                    **Type**   **Default**
--------------------------- ---------- ------------------------------------------------------------------------------------------------
$nomachine_license_location String     ``hiera('nomachine::license::location', '/etc/NX')``. Defaults to ``/etc/NX``
$nomachine_license_server   String     ``hiera("nomachine::license::server::$hostname")``. Must be defined and encrypyed with ``eyaml``
$nomachine_license_node     String     ``hiera("nomachine::license::node::$hostname")``. Must be defined and encrypyed with ``eyaml``
=========================== ========== ================================================================================================

``nomachine_license_location``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Defaults to ``/etc/NX``. Will be a temporary location for ``node.lic`` and ``server.lic``. **You must avoid to setup ``/usr/NX/etc``** 
as the ``nomachine_license_location``. Can be defined in Hiera as ``nomachine::license::location``.

``nomachine_license_server``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``eyaml`` encrypted ``server.lic``. Must be defined in hiera as ``nomachine::license::server::$hostname``, where ``$hostname`` is the 
host shortname of the NoMachine server (equivalent to run ``hostname -s`` from command line).

For more information about encryption with ``eyaml``, please refer to http://linux-infra.gitpages.psi.ch/admin-guide/puppet/hiera.html#secret-values

``nomachine_license_node``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``eyaml`` encrypted ``node.lic``. Must be defined in hiera as ``nomachine::license::node::$hostname``, where ``$hostname`` is the 
host shortname of the NoMachine server (equivalent to run ``hostname -s`` from command line).

For more information about encryption with ``eyaml``, please refer to http://linux-infra.gitpages.psi.ch/admin-guide/puppet/hiera.html#secret-values
