Giter Site home page Giter Site logo

netbanner-formula's Introduction

AppVeyor Build Status

netbanner-formula

This salt formula will install and configure Microsoft Netbanner. Local Group Policy Object (LGPO) files will be updated so that Netbanner can be managed from the Local Group Policy Editor (i.e. gpedit.msc).

IMPORTANT:

Microsoft does not distribute the Netbanner package. It is rather difficult to come by. Also, the Netbanner license prevents distribution, so we cannot provide it via Github or a CDN. The only known source is below, and it requires a government-provided Common Access Card (CAC) to gain access to the site.

Dependencies

  • Microsoft .NET 4 for Netbanner 2.x.
  • Microsoft .NET 2 for Netbanner 1.x.
  • Salt 2015.8.0 or greater (required for templating winrepo packages).
  • Properly configured salt winrepo package manager, in a master or masterless configuration.
  • Package definition for Netbanner must be available in the winrepo database. The installer can be obtained from the site(s) listed above.

Available States

netbanner

This state will install Microsoft Netbanner and update the Local Group Policy Editor configuration so that the Netbanner settings can be managed via LGPO.

netbanner.custom

This sls file will apply a Netbanner configuration to the system. Netbanner will be installed if it is not already, via an include statement. The Netbanner configuration is read from map.jinja, which supports customization via pillar. Configuration changes typically require logging out and back in to become effective (though sometimes force closing and restarting the Netbanner.exe process will also work).

Configuration

While the default settings allow the formula to work without any configuration, the Netbanner formula is customizable via pillar. A complete pillar configuration would look something like this:

netbanner:
  lookup:
    version: '2.1.161'
    admx_source: 'salt://netbanner/netbannerfiles/netbanner.admx'
    adml_source: 'salt://netbanner/netbannerfiles/netbanner.adml'

    network_label: 'purplenetwork'

    custom_network_labels:
    purplenetwork:
      CustomBackgroundColor: '8'
      CustomDisplayText: 'This is a purple network banner'
      CustomForeColor: '2'

netbanner:lookup:version

version must match a netbanner version available from winrepo. Known versions of Netbanner include:

  • 1.3.93
  • 2.1.161

netbanner:lookup:admx_source and netbanner:lookup:adml_source

admx_source and adml_source must be a location where the netbanner.admx and netbanner.adml files are available to the salt file system. These files are distributed with this formula, so it is expected that the default path will work for most use cases.

netbanner:lookup:network_label:

The next configuration setting is network_label. The network_label corresponds to a group of Netbanner settings that many systems may have in common. The network_label label and associated settings must be defined in custom_network_labels.

netbanner:lookup:custom_network_labels:

Additional network labels may be created with the custom_network_labels dictionary in the netbanner pillar. Custom labels will be merged with the default labels above. Custom labels are defined in a YAML dictionary and require three settings:

  • CustomBackgroundColor
  • CustomDisplayText
  • CustomForeColor

All of these settings correspond to registry entries read by the Netbanner process.

CustomBackgroundColor is a number (in string format) from 1-9. CustomDisplayText is the string to display in the banner. CustomForeColor is a number (in string format) from 1-3.

CustomBackgroundColor key:

  • Green = '1'
  • Blue = '2'
  • Red = '3'
  • Yellow = '4'
  • White = '5'
  • Black = '6'
  • SaddleBrown = '7'
  • Purple = '8'
  • Orange = '9'

CustomForeColor key:

  • Black = '1'
  • White = '2'
  • Red = '3'

netbanner-formula's People

Contributors

ewierschke avatar lorengordon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.