Skip to content

Instantly share code, notes, and snippets.

View 10-frontend.network
[Match]
MACAddress=00:50:56:82:ba:db
[Network]
[Address]
Address=10.247.247.247/24
[Route]
Gateway=10.247.247.1
@coulof
coulof / ciq_webhook.js
Last active Sep 23, 2020
CloudIQ to ServiceNow
View ciq_webhook.js
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var requestBody = request.body;
var requestData = requestBody.data; // variable holds JSON data
var eventType = request.getHeader('x-ciq-event');
// Answer 200 to CloudIQ Webhook test button
if (eventType === 'ping') {
response.setStatus(200);
} else if (eventType === 'health-score-change') {
var processedData = false;
@coulof
coulof / vxflexos-cni.if
Last active Jul 20, 2020
SElinux policy csi-vxflexos
View vxflexos-cni.if
## <summary></summary>
@coulof
coulof / configmap.yaml
Last active Jun 9, 2020
configmap and secrets
View configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: event-exporter-cfg
namespace: {{ .Release.Namespace }}
data:
config.yaml.erb: |
route:
match:
- receiver: "dump"
View pvc.yaml
{{ if eq .Values.tag "latest"}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: todosdb{{ .Values.tag }}
namespace: {{ .Values.ns }}
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
@coulof
coulof / isilon-ds.yaml
Created Jun 8, 2020
csi-isilon custom X_NODE_IP
View isilon-ds.yaml
spec:
template:
spec:
initContainers:
- name: config
image: "ruby:2.7"
command: ['sh', '-c', 'erb /tmpl/entrypoint.sh.erb > /custom/entrypoint.sh && chmod +x /custom/entrypoint.sh']
volumeMounts:
- name: cfgtmpl
mountPath: /tmpl