{"id":18022866,"url":"https://github.com/adambirds/hubot-dsc-resource","last_synced_at":"2025-04-04T18:17:05.471Z","repository":{"id":57670384,"uuid":"357720033","full_name":"adambirds/Hubot-DSC-Resource","owner":"adambirds","description":"Powershell DSC Resource to Install Hubot on Windows","archived":false,"fork":false,"pushed_at":"2021-04-14T00:00:52.000Z","size":162,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T18:17:01.581Z","etag":null,"topics":["dsc-configuration","dsc-resources","hubot","powershell","ps1"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adambirds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-13T23:58:17.000Z","updated_at":"2022-12-15T01:42:26.000Z","dependencies_parsed_at":"2022-09-26T20:41:00.191Z","dependency_job_id":null,"html_url":"https://github.com/adambirds/Hubot-DSC-Resource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adambirds%2FHubot-DSC-Resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adambirds%2FHubot-DSC-Resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adambirds%2FHubot-DSC-Resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adambirds%2FHubot-DSC-Resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adambirds","download_url":"https://codeload.github.com/adambirds/Hubot-DSC-Resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226191,"owners_count":20904467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dsc-configuration","dsc-resources","hubot","powershell","ps1"],"created_at":"2024-10-30T07:05:59.215Z","updated_at":"2025-04-04T18:17:05.454Z","avatar_url":"https://github.com/adambirds.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hubot (DSC Resource)\n\n![Hubot](http://i.imgur.com/NhTqeZ2.png)\n\n[![Build status](https://ci.appveyor.com/api/projects/status/yj30jkt66cy2ihix/branch/master?svg=true)](https://ci.appveyor.com/project/adambirds/hubot-dsc-resource/branch/master)\n\nThe **InstallHubot** module contains the `HubotPrerequisites`, `HubotInstall` and `HubotInstallService`\nDSC Resources to install Hubot on Windows with Slack as the adapter.\n\nThis resource installs and runs Hubot as a service on Windows using NSSM.\n\n## DSC Configuration\n\nYou can find the DSC Configuration here: [dsc_configuration.ps1](DSCConfigurations/dsc_configuration.ps1)\n\n## Installation\n\n1. To install the module, use:\n\n   `Install-Module -Name InstallHubot`\n\n2. You need to edit the below section of [dsc_configuration.ps1](DSCConfigurations/dsc_configuration.ps1) to your desired settings.\n\n    ``` powershell\n    $configData = @{\n    AllNodes = @(\n            @{\n                NodeName = 'localhost';\n                Role = 'Hubot'\n                SlackAPIKey = 'xoxb-XXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXX'\n                HubotAdapter = 'slack'\n                HubotBotName = 'bot' #This can not be Hubot\n                HubotBotPath = 'C:\\SCRIPTS\\myhubot'\n            }\n        )\n    }\n    ```\n\n3. To setup the DSC Configuartion, run the [dsc_configuration.ps1](DSCConfigurations/dsc_configuration.ps1) script.\n\n4. To create your MOF file run the below commands, editing the variables to what you need:\n\n   ``` powershell\n   cd \"C:\\SCRIPTS\" #Make this diretcory if not already existing\n   Hubot -ConfigurationData $configData\n   ```\n\n5. To run the DSC Configuration run the following commands:\n\n   ```powershell\n   Start-DSCConfiguration -Path \"C:\\SCRIPTS\\Hubot\" -Wait\n   ```\n\n   The server will then ask for a reboot. Reboot the server and again run the below command:\n\n   ``` powershell\n   Start-DSCConfiguration -Path \"C:\\SCRIPTS\\Hubot\" -Wait\n   ```\n\n## Packaging\n\nThe DSC Resource Module is called `InstallHubot` and is available on the PowerShell Gallery:\n\n* Click [here](https://www.powershellgallery.com/packages/InstallHubot)\n\n## Developer Information\n\nDeveloped by [ADB Web Designs](https://adbwebdesigns.co.uk)\n\n## Versions\n\n### 2.0.57\n\n* Updated module dependencies so that it pulls down later versions of Git and NodeJs\n* Updated module dependences so that it installs `MSFT_xScriptResource` as part of `xPSDesiredStateConfiguration`\n* Updated DSC Configuration to fix several bugs.\n* Updated Documentation\n\n### 1.1.5\n\n* Updated module dependencies so it pulls down `xPSDesiredStateConfiguration` on install.\n\n### 1.1.4\n\n* Removing dependency on `cChoco` and `Chocolatey`. This requires the node to reboot after installing Node.js as part of the `HubotPrerequisites` resource unfortunately.\n\n### 1.1.3\n\n* Initial Release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadambirds%2Fhubot-dsc-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadambirds%2Fhubot-dsc-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadambirds%2Fhubot-dsc-resource/lists"}