Skip to content

Instantly share code, notes, and snippets.

View fenar's full-sized avatar
💭
I may be slow to respond.

Fatih Nar fenar

💭
I may be slow to respond.
  • Texas
View GitHub Profile
@fenar
fenar / install_jenkins_plugin.sh
Last active June 9, 2017 16:51 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@fenar
fenar / jenkins-plugins-batch-install.md
Created June 19, 2017 20:19 — forked from hgomez/jenkins-plugins-batch-install.md
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :

@fenar
fenar / lvg.yaml
Last active August 11, 2023 02:28
# lvscan
# lvremove /dev/vol_grp/log_grp1
# vgscan
# vgremove vol_grp
---
#Requirements:
1x RHACM HUB
2x+ Managed Clusters
#Join clusters
Go ahead and make sure that all your ManagedClusters joined the RHACM Hub and are in ready state.
#ManagedClusters must have labels that will be used for app placement together with the LatencyCheck operator. For example, if we plan to use the label `ddosify` as the one used by the operator when creating the PlacementRule, that label should have the following values:
- If using locationMatchingStrategy set to city: NA.US.TX.SA
Here's an example of a liveness probe that checks if Apache is able to handle incoming web traffic on an OpenShift container:
---
apiVersion: v1
kind: Pod
metadata:
name: my-apache-pod
spec:
containers:
- name: apache
image: httpd:2.4
@fenar
fenar / AnsibleClusterClaim
Created March 31, 2023 15:29
Ansible playbook that can be used to claim a hibernated clusters from RH-ACM
Here is an example Ansible playbook that can be used to claim a hibernated cluster over Red Hat Advanced Cluster Manager (ACM):
---
---
- name: Claim a hibernated cluster on Red Hat ACM
hosts: localhost
gather_facts: no
vars:
acm_username: "acm-admin"
acm_password: "mypassword"
@fenar
fenar / gist:58ab59311bae109f8fe80beceea5178a
Last active July 31, 2023 15:17
OCP-SNO Bootstrap Fails due to pending CSRs
Error: kubelet_node_status "unable to register node with api server" err="nodes is forbidden: user \"system:anonymous\" cannot create resource \"nodes\" in api group \"\" at the cluster scope"
<br>
$ oc get csr
<br>
'''
NAME AGE SIGNERNAME REQUESTOR REQUESTEDDURATION CONDITION
csr-7vmxb 33m kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-machine-config-operator:node-bootstrapper <none> Pending
csr-c2hc8 8m5s kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-machine-config-operator:node-bootstrapper <none> Pending
csr-nd65q 23m kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-mach
@fenar
fenar / dell-server-etc.md
Last active August 11, 2023 14:51
100GBps-Dell-Intel-Mikrotik

---Incase You Have a Messed-Up Bios---- Start
(A) Clear all pending jobs via iDRAC WebUI: Maintenance -> Job Queue

(B) Revert back to initial BIOS
ssh to iDRAC terminal
% ssh root@
racadm>>racadm recover BIOS.Setup.1-1
---Incase You Have a Messed-Up Bios---- End

Enabling Dell-Intel-E810 on Server Side

@fenar
fenar / gist:52094e0d36ed8a18a882de4ee9fdcd2e
Created August 25, 2023 13:00
5Gcore-GrafanaDashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@fenar
fenar / 5gcore-cnf-metrics.json
Created October 30, 2023 17:34
3gpp 5g cnf grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,