Skip to content
PowerShell DSC Resource to install Hubot on Windows
Branch: master
Clone or download
Pull request Compare This branch is 87 commits ahead of MattHodge:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DSCConfigurations
InstallHubot
Tests
.gitignore
InstallHubot.2.0.57.nupkg
InstallHubot.2.0.58.nupkg
InstallHubot.2.0.59.nupkg
InstallHubot.zip
LICENSE
README.md
appveyor.yml
build.ps1
deploy.psdeploy.ps1
psakeBuild.ps1

README.md

Hubot (DSC Resource)

Hubot

Build status

The InstallHubot module contains the HubotPrerequisites, HubotInstall and HubotInstallService DSC Resources to install Hubot on Windows with Slack as the adapter.

This resource installs and runs Hubot as a service on Windows using NSSM.

DSC Configuration

You can find the DSC Configuration here: dsc_configuration.ps1

Installation

  1. To install the module, use:

    Install-Module -Name InstallHubot

  2. You need to edit the below section of dsc_configuration.ps1 to your desired settings.

    $configData = @{
    AllNodes = @(
            @{
                NodeName = 'localhost';
                Role = 'Hubot'
                SlackAPIKey = 'xoxb-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX'
                HubotAdapter = 'slack'
                HubotBotName = 'bot' #This can not be Hubot
                HubotBotPath = 'C:\SCRIPTS\myhubot'
            }
        )
    }
  3. To setup the DSC Configuartion, run the dsc_configuration.ps1 script.

  4. To create your MOF file run the below commands, editing the variables to what you need:

    cd "C:\SCRIPTS" #Make this diretcory if not already existing
    Hubot -ConfigurationData $configData
  5. To run the DSC Configuration run the following commands:

    Start-DSCConfiguration -Path "C:\SCRIPTS\Hubot" -Wait

    The server will then ask for a reboot. Reboot the server and again run the below command:

    Start-DSCConfiguration -Path "C:\SCRIPTS\Hubot" -Wait

Packaging

The DSC Resource Module is called InstallHubot and is available on the PowerShell Gallery:

Versions

2.0.57

  • Updated module dependencies so that it pulls down later versions of Git and NodeJs
  • Updated module dependences so that it installs MSFT_xScriptResource as part of xPSDesiredStateConfiguration
  • Updated DSC Configuration to fix several bugs.
  • Updated Documentation

1.1.5

  • Updated module dependencies so it pulls down xPSDesiredStateConfiguration on install.

1.1.4

  • Removing dependency on cChoco and Chocolatey. This requires the node to reboot after installing Node.js as part of the HubotPrerequisites resource unfortunately.

1.1.3

  • Initial Release
You can’t perform that action at this time.