Skip to content

Instantly share code, notes, and snippets.

View virtualhobbit's full-sized avatar
:octocat:
Building clouds

Mark Brookfield virtualhobbit

:octocat:
Building clouds
View GitHub Profile

Keybase proof

I hereby claim:

  • I am virtualhobbit on github.
  • I am virtualhobbit (https://keybase.io/virtualhobbit) on keybase.
  • I have a public key whose fingerprint is F565 3FDC C9D6 804B 73C1 B508 CB75 F690 4BB5 F35F

To claim this, I am signing this object:

stages:
- build
- deploy
image: alpine
before_script:
- git config --global http.sslVerify false
get_packer:
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller
{
"apiVersion": "v1",
"kind": "Namespace",
"metadata": {
"name": "gitlab-runner",
"labels": {
"name": "gitlab-runner"
}
}
}
## GitLab Runner Image
imagePullPolicy: IfNotPresent
gitlabUrl: https://<insert GitLab server name here>
runnerRegistrationToken: <insert registration token here>
unregisterRunners: true
terminationGracePeriodSeconds: 3600
certsSecretName: gitlab-domain-cert
concurrent: 10
checkInterval: 30
# Format the username
if ($userName -ne $null) {
$user = $userName + "@" + $userDomain
} else {
$user = $userName
};
# Add the user to the Gugent group
$group = "Gugent"
Add-LocalGroupMember -Group $group -Member $user
export cf_server="myServer"
export cf_username="myUser"
export cf_password="myPassword"
export cf_category="c1001"
for i in $(ls *.js);
do
j=$(echo $i | cut -f 1 -d '.');
jsdoc $i -d $j;
zip -r $j.zip $j/;
<edge>
<name>{attXmlConfigName}</name>
<appliances>
<applianceSize>compact</applianceSize>
<appliance>
<resourcePoolId>{attXmlConfigResourcePoolId}</resourcePoolId>
<datastoreId>{attXmlConfigDatastoreId}</datastoreId>
</appliance>
</appliances>
<vnics>
var xmlDetail = new Properties();
xmlDetail.put("{attXmlConfigName}",attXmlConfigName);
xmlDetail.put("{attXmlConfigResourcePoolId}",attXmlConfigResourcePoolId);
xmlDetail.put("{attXmlConfigDatastoreId}",attXmlConfigDatastoreId);
xmlDetail.put("{attXmlConfigNicName}",attXmlConfigNicName);
xmlDetail.put("{attXmlConfigPortgroupId}",attXmlConfigPortgroupId);
xmlDetail.put("{attXmlConfigPrimaryAddress}",attXmlConfigPrimaryAddress);
xmlDetail.put("{attXmlConfigSubnetMask}",attXmlConfigSubnetMask);
xmlDetail.put("{attXmlConfigUserName}",attXmlConfigUserName);
xmlDetail.put("{attXmlConfigPassword}",attXmlConfigPassword);
var inc = "1";
var newNum = parseInt(inNum, 10) + parseInt(inc, 10);
if ((newNum.toString()).length < 2){
newNum = "0" + newNum;
}
return newNum;