Forge Home

servicenow_midserver

Installs and configures a ServiceNow MID Server

5,906 downloads

5,748 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released May 16th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'fiveshotsofespresso-servicenow_midserver', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add fiveshotsofespresso-servicenow_midserver
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install fiveshotsofespresso-servicenow_midserver --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

fiveshotsofespresso/servicenow_midserver — version 0.1.1 May 16th 2018

servicenow_midserver

Table of Contents

  1. Description
  2. Setup - The basics of getting started with servicenow_midserver
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.

Description

This Puppet module configures and installs a ServiceNow MID Server on Windows 2012 R2 and Windows 2016 servers

Setup

Setup Requirements

The servicenow_midserver module requires the ianoberst-xml_fragment module (version 1.0.2)

Beginning with servicenow_midserver

class { 'servicenow_midserver':
  midserver_source    => 'https://install.service-now.com/glide/distribution/builds/package/mid/2018/03/19/mid.istanbul-09-23-2016__patch11a-03-13-2018_03-19-2018_0958.windows.x86-64.zip',
  midserver_name      => 'Discovery_MID1',
  root_drive          => 'D:',
  servicenow_username => 'foo',
  servicenow_password => 'bar',
  servicenow_url      => 'https://myinstance.service-now.com/'
}

Usage

Specify java heap max or max threads

class { 'servicenow_midserver':
  midserver_source        => 'https://install.service-now.com/glide/distribution/builds/package/mid/2018/03/19/mid.istanbul-09-23-2016__patch11a-03-13-2018_03-19-2018_0958.windows.x86-64.zip',
  midserver_name          => 'Discovery_MID1',
  root_drive              => 'D:',
  servicenow_username     => 'foo',
  servicenow_password     => 'bar',
  servicenow_url          => 'https://myinstance.service-now.com/',
  midserver_java_heap_max => 4096,
  midserver_max_threads   => 200,
}

Reference

Classes

Public classes

  • servicenow_midserver: Main class, includes all other classes.

Private classes

  • servicenow_midserver::download: Handles downloading the MID Server ZIP and extracting it to the right location.
  • servicenow_midserver::config: Handles the MID Server configuration file.
  • servicenow_midserver::service: Handles the MID Server service.

Parameters

The following parameters are available in the servicenow_midserver class:

midserver_source

Required.

Data type: String.

Specifies a URL that a MID Server ZIP file can be downloaded from

midserver_name

Required.

Data type: String

Specifies the desired MID Server name

root_drive

Required.

Data type: String

Specifies the root drive to install the MID Server on

servicenow_url

Required.

Data type: String

Specifies the URL of your ServiceNow instance

servicenow_username

Required.

Data type: String.

Specifies a username (assigned the mid_server role in ServiceNow)

servicenow_username

Required.

Data type: String.

Specifies the password associated with the user defined in servicenow_username

midserver_java_heap_max

Optional.

Data type: Integer.

Specifies the maximum size the heap of the JVM process running your MID Server can grow to (in MB)

Default: 1024

midserver_max_threads

Optional.

Data type: Integer

Specifies a maximum number of threads your MID Server can handle at once

Default: 25

Limitations

Compatible with Windows Server 2012 R2 and Windows Server 2016.

Only handles one MID Server per node.

Password must be left unencrypted on the MID Server itself, or it will constantly be trying to overwrite the encrypted value. Password may, of course, still be encrypted through EYAML and unencrypted through a Hiera lookup in your manifest.

The lifecycle of a ServiceNow MID Server is largely handled by ServiceNow once initially installed. Upgrades are orchestrated by ServiceNow and changes to the configuration file (like changing the maximum number of threads will stay in place).

Future

  • Add parameters and configuration for when MID Server sits behind proxy
  • Create defined type rather than a class so that multiple MID Servers can exist on one node
  • Figure out a way to allow encryption of the password on the MID Server itself