Skip to content

Instantly share code, notes, and snippets.

@kejau
kejau / MongoDB.ps1
Created January 19, 2019 01:12 — forked from RichardSlater/MongoDB.ps1
Desired State Configuration to Install MongoDB on Windows Server 2013
configuration MongoDB {
param (
[string[]]$ComputerName = $env:ComputerName
)
node $ComputerName {
File SetupFolder {
Type = 'Directory'
DestinationPath = "C:\setup"
Ensure = 'Present'
}
@kejau
kejau / Download and Install MongoDB as Windows Service PowerShell Script A nice powershell that dowloads mongodb and installs it as windows service... this script is good for development machines.
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9"
if ((Test-Path -path $mongoDbPath) -eq $True)
{
@kejau
kejau / gist:47d6d39adc49da10b6f8f9a4dfeef2b2
Created February 6, 2018 23:55 — forked from mstump/gist:69aa507a08ad33aafad205a25dadc357
cassandra-reaper statefulset with postgres
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra-reaper
name: cassandra-reaper
spec:
type: LoadBalancer
ports:
- port: 8080