Skip to content

Instantly share code, notes, and snippets.

@afscrome
Last active August 22, 2016 21:30
Show Gist options
  • Save afscrome/ab35e99791abbed1b9290424afed62c7 to your computer and use it in GitHub Desktop.
Save afscrome/ab35e99791abbed1b9290424afed62c7 to your computer and use it in GitHub Desktop.
<#
This is a begining of a script that will allow you to install a Telligent instance onto a clean vm.
Prequisites:
* Powershell 5 - https://www.microsoft.com/en-us/download/details.aspx?id=50395
* SQL 2016 - http://go.microsoft.com/fwlink/?LinkID=799009
SQL May be automatable, needs some more work. Powershell is not easily automatable as
installation of Powershell 5 will require a reboot, which will interupt script execution
#>
param(
[string]$InstallPath = 'C:\Telligent',
[Uri]$PackageUri = 'http://todo/'
)
#Install pre-requisites
install-package java -ProviderName chocolatey -Force
install-package tomcat7 -ProviderName chocolatey -Force
Install-WindowsFeature 'Web-Http-Errors', 'Web-Static-Content', 'Web-Http-Logging', 'Web-Request-Monitor', 'Web-Http-Tracing', 'Web-Stat-Compression', 'Web-Dyn-Compression', 'Web-Filtering', 'Web-Windows-Auth', 'Web-Net-Ext45', 'Web-Asp-Net45', 'Web-ISAPI-Ext', 'Web-ISAPI-Filter', 'Web-Mgmt-Service', 'NET-Framework-45-Core', 'NET-Framework-45-ASPNET'
#Install Telligent Instance Manager
Set-ExecutionPolicy RemoteSigned
Install-Module TelligentLocalInstance
Initalize-TelligentInstanceManager -Path $InstallPath
#Set up a community
Invoke-WebRequest $PackageUri -OutFile $InstallPath\Packages\
Get-TelligentVersion | Install-TelligentInstance MyDemo
#At this point, may need to do a few things to make a more production set up
#e.g. install job Server as a service (should be a command in the TelligentInstnace module to do this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment