This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Default ports | |
ENZI_RETHINKDB_PORT=28015 | |
ENZI_CLUSTER_PORT=29015 | |
MSR_RETHINKDB_PORT=28016 | |
MSR_CLUSTER_PORT=29016 | |
SCRIPT_NAME=$(basename "$0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Script to assign team's permissions to organizational repositories in MSR registry. | |
.PARAMETER MkeUrl | |
The URL of the MKE server. | |
.PARAMETER MkrCred | |
The credentials for the MKE server. | |
.PARAMETER MsrRegistryHost | |
The MSR Registry hostname. | |
.PARAMETER MsrAccessToken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Script to populate each MSR org with one or more repositories | |
.DESCRIPTION | |
This script will take a list of local images and push them to the MSR registry for each MKE organization. | |
It will create a new repository for each image in the MSR registry and push the image to that repository. | |
.PARAMETER MkeUrl | |
The URL of the MKE server. | |
.PARAMETER MkrCred | |
The credentials for the MKE server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Script to connect AD resources with MKE | |
.PARAMETER ParentOu | |
The distinguished name of the parent organizational unit where all AD resources to be sync'd reside. | |
.PARAMETER MkeUrl | |
The URL of the MKE server. | |
.PARAMETER MkeCred | |
The credentials for the MKE server. | |
.PARAMETER LdapServerUrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"mkeReleaseVersion": "v4.0.1-alpha.2", | |
"blueprintOperatorVersion": "v1.0.18", | |
"mkeOperatorVersion": "v1.2.1", | |
"k0sVersion": "v1.31.1+k0s.1", | |
"isLatest": true, | |
"minimumMkectlVersion": "" | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function trman { | |
<# | |
.SYNOPSIS | |
Runs (containerized) TestRail Manager CLI using credentials defined by env vars | |
.DESCRIPTION | |
This tool interacts with both the TestRail Server and the Jenkins Server to faciliate quickly creating | |
test runs (TestRail) which are categorized under a milestone and job templates (Jenkins) which with | |
only some minor edits in the UI can then be executed. The tool accepts credentials via environment variables | |
for TestRail (TESTRAIL_USER, TESTRAIL_PASSWORD) and Jenkins (JENKINS_USER, JENKINS_PASSWORD). | |
.NOTES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
# | |
# This script is meant for quick & easy install on Windows via an elevated command prompt: | |
# | |
# PS>Invoke-WebRequest -Uri get.mirantis.com/install.ps1 | |
# PS>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
# PS>.\install.ps1 | |
# | |
# To obtain explicit versions of the script, append version number after replacing | |
# '.' and '-' characters in version with '_': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Courtesy Dmitrii in a Slack channel | |
NAME=admin | |
NEW_PASSWORD=mke4mke4mke4 | |
export HASHED=$(htpasswd -nbBC 10 '' "$NEW_PASSWORD" | tr -d ':\n' | base64) | |
alias km="kubectl -n mke --kubeconfig ~/.mke/mke.kubeconf" | |
km get password $(km get password -o jsonpath="{.items[?(@.email=='$NAME')].metadata.name}") -oyaml | yq '.hash = strenv(HASHED)' | km -n mke apply -f - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function verboseLog { | |
Write-Verbose "$args" | |
} | |
function getContainerdVer { | |
if (Get-Command "ctr.exe" -ErrorAction SilentlyContinue) | |
{ | |
$tmp = ctr -v|Out-String | |
if ($LASTEXITCODE -eq 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[ValidateScript({Test-Path -Path $_ -PathType Leaf})] | |
[string] | |
$ReportPath, | |
[Parameter(Mandatory=$false)] | |
[int] | |
$EntryCount = 10 |
NewerOlder