<%inherit file="//layout/admin_lite_dialog.html"/> <%namespace name="lib" file="//lib.html" /> <%namespace name="formset" file="//formset.html" /> <%! isLite = (cherrypy.config['product_type'] == 'lite' or cherrypy.config['product_type'] == 'lite_free') if isLite: page_text = _('Change license') page_desc = _('Please update the license or switch to Light Free License.') else: page_text = _('Change license group') page_desc = _('The type of license group determines what sorts of licenses can be used in the pools on this license server.') %> <%def name="title()">${page_text} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [ [_('Manager'), ['manager']], [_('Licensing'), ['manager','system','licensing']], [_(page_text), None] ] %> <% ## in the following: ## Pos 0 describes the specific license group ## Pos 1 is the string used as the header ## Pos 2 is the string used if the license error occurs ## Pos 3 is the string used to describe the group if not isLite: descriptions = [ [ 'Enterprise', _('Enterprise license'), _('Enterprise licenses'), _('This license adds support for multi-user and distributed deployments, alerting, role-based security, single sign-on, scheduled PDF delivery, and unlimited data volumes.') ], [ 'Forwarder', _('Forwarder license'), _('Forwarder licenses'), _('Use this group when configuring Splunk as a forwarder.') + ('' % generateSelfHelpLink('licensing.forwarderlicense')) + _("Learn more") + '' ], [ 'Free', _('Free license'), _('Free licenses'), _('Use this group when you are running Splunk Free. This license has a 500MB/day daily indexing volume. ') + ('' % generateSelfHelpLink('licensing.freelicense')) + _("Learn more") + '' ], [ 'Trial', _('Enterprise Trial license'), _('Enterprise Trial licenses'), _('This is your included download trial. IMPORTANT: If you switch to another license, you cannot return to the Trial. You must install an Enterprise license or switch to Splunk Free.') ] ] else: descriptions = [ [ 'Enterprise', _('Add license'), _('licenses'), _('Use this option to either update your existing Splunk Light license with either additional capacity or longer term, or add a Splunk Enterprise license to convert your instance to Splunk Enterprise.') + ('' % generateSelfHelpLink('licensing.light.license')) + _("Learn more about Splunk Light license") + '
' + ('' % generateSelfHelpLink('licensing.enterprise.license')) + _("Learn more about Splunk Enterprise license") + '' ], [ 'Lite_Free', _('Light Free license'), _('Light Free licenses'), _('Use this option when running Splunk Light Free. This license has a limit of 500MB/day and is restricted to one admin account.') + ('' % generateSelfHelpLink('licensing.lightfreelicense')) + _("Learn more") + '' ] ] endif ## try to get current friendly title current_title = license_group for i, row in enumerate(descriptions): if row[0] == license_group: current_title = row[1] break %> % if controller_exception:
<%lib:render_exception e="${controller_exception}" />
% endif % if is_success:
${_('Change successful')}

${_('The licensing group has been set to %s. You must restart Splunk in order for changes to take effect.') % h(current_title)}

% else:

${page_text}

${_(page_desc)} ${_('Learn more')}

% for i, row in enumerate(descriptions): % if row[0] in available_groups: % endif % endfor

${row[3]}

% if len(license_map[row[0]]) == 0:

${_('There are no valid Splunk %s installed. You will be prompted to install a license if you choose this option.') % h(row[2])}

% endif
% endif ## ## buttons ## <%def name="gutter()">
% if is_success: <% qs = {'auto_restart':'1'} %> ${formset.button(_('Restart later'), href=return_to)} ${formset.button(_('Restart now'), is_primary=True, href=make_url(['manager','search','control'], _qs=qs) )} % else: ${formset.button(_('Cancel'), href=return_to)} ${formset.button(_('Save'), is_primary=True, is_submit=True)} % endif