Skip to content

Instantly share code, notes, and snippets.

@nshores
Last active July 15, 2019 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nshores/104f069570740ea645d67a8aeab19759 to your computer and use it in GitHub Desktop.
Save nshores/104f069570740ea645d67a8aeab19759 to your computer and use it in GitHub Desktop.
rubrik_bootstrap_request.ps1
#New-RubrikBootStrap Documentation
#Example Usage --
#IPV4 Locally Assigned Link Address (169.254.x.x)
#Can also use MDNS name - IE VRVW564D3A0BC.local
$server = '169.254.11.25'
$name = 'RubrikEdge'
#Must Be an array even if you only have 1 server
$management_dns = @(
'192.168.11.100',
'192.168.11.101'
)
#Must be an array with a hash table inside
$ntp = @(
@{
server = 'pool.ntp.org'
}
)
#Follow the below format to define additonal nodes
$node = @{
node1 = @{
managementIpConfig = @{
address = '192.168.1.100';
gateway = '192.168.1.1';
netmask = '255.255.255.0'
}
};
node2 = @{
managementIpConfig = @{
address = '192.168.1.101';
gateway = '192.168.1.1';
netmask = '255.255.255.0'
}
}
}
$enableSoftwareEncryption = $false
$adminuserinfo = @{
emailAddress = 'nick@shoresmedia.com'
id = 'admin'
password = 'P@SSw0rd!'
}
New-RubrikBootStrap -Server 169.254.9.29 `
-name $name `
-dnsNameservers $management_dns `
-ntpserverconfigs $ntp `
-adminUserInfo $adminuserinfo `
-nodeconfigs $node `
-enableSoftwareEncryptionAtRest $enableSoftwareEncryption
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment