Skip to content

Instantly share code, notes, and snippets.

@davoult
davoult / tuned.conf
Created February 6, 2020 13:12 — forked from kofemann/tuned.conf
Tuned profile for PostgreSQL server on CENTOS-7
#
# tuned configuration for PostgresSQL servers
# /usr/lib/tuned/postgres-db-server/tuned.conf
#
[cpu]
force_latency=1
governor=performance
energy_perf_bias=performance
min_perf_pct=100
@davoult
davoult / create-existing-folder-permissions.sh
Last active December 8, 2023 20:28 — forked from jcpowermac/create-existing-folder-permissions.sh
openshift vsphere permissions with govc
#!/bin/bash
set -e
set -x
declare -A roles
VCENTER="Cns.Searchable InventoryService.Tagging.AttachTag InventoryService.Tagging.CreateCategory InventoryService.Tagging.CreateTag InventoryService.Tagging.DeleteCategory InventoryService.Tagging.DeleteTag InventoryService.Tagging.EditCategory InventoryService.Tagging.EditTag Sessions.ValidateSession StorageProfile.View"
VCENTER_ROLE_NAME="openshift-vcenter-level"
@davoult
davoult / etcd-backup-cron.yaml
Last active March 2, 2022 10:59 — forked from dmc5179/etcd-backup-cron.yaml
OpenShift Cron job to backup etcd database
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: etcd-backup
namespace: openshift-etcd
spec:
schedule: '@daily'
jobTemplate:
spec: