Skip to content

Instantly share code, notes, and snippets.

@satishdotpatel
satishdotpatel / openstack-ansible-designate-integration
Last active Jan 26, 2021
openstack-ansible-designate-integration
View openstack-ansible-designate-integration
************* Install bind9 DNS in designate container
yum install bind bind-utils
************* Configure bind9 DNS
$ cat /etc/rndc.key
key "designate" {
algorithm hmac-md5;
secret "O3P6S6Y2AmeDAIB98TLrNw==";
};
@koallen
koallen / mlnx_sriov.sh
Last active Apr 4, 2022
Script to enable SRIOV virtual functions on Mellanox cards (https://shawnliu.me/post/configuring-sr-iov-for-mellanox-adapters/)
View mlnx_sriov.sh
#!/bin/bash
# params
# - device name (e.g. mlx5_0)
# - number of virtual functions (e.g. 10)
configure_dev () {
local num_of_vfs="$2"
local devid=$(echo $1 | cut -d_ -f2)
local max_id="0"
local num_vfs_path="/sys/class/infiniband/$1/device/mlx5_num_vfs"