This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export OCF_ROOT=/usr/lib/ocf | |
export OCF_RESKEY_ip=192.168.100.251 | |
export OCF_RESKEY_netmask=24 | |
export OCF_RESKEY_nic=eth0 | |
LOGDIR=/tmp/netdev | |
LOG=$LOGDIR/ipaddr2.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# quick test script for resource-agents PR1109 | |
# https://github.com/ClusterLabs/resource-agents/pull/1109 | |
# specify RA path for testing | |
#RA=./IPaddr2.org | |
#RA=./IPaddr2.PR1109 | |
RA=./IPaddr2.iproute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import os | |
import signal | |
import sys | |
import win32serviceutil | |
logging.basicConfig( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# invoke as: | |
# powershell -NoProfile -ExecutionPolicy Unrestricted -NonInteractive .\findif.ps1 | |
# | |
Param( | |
[Parameter(Mandatory=$True,Position=1)][string]$IPAddress, | |
[Parameter(Mandatory=$True,Position=2)][string]$InterfaceAddress | |
) | |
# check if the ipaddr is already assigned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: 127.0.0.1 | |
connection: local | |
become: true | |
max_fail_percentage: 0 | |
tasks: | |
- name: debug | |
debug: | |
var: ansible_facts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IPaddr2-ipv6-sanitize | |
# | |
# usage: | |
# ocft make -d . IPaddr2-ipv6-sanitize | |
# ocft test -v -X IPaddr2-ipv6-sanitize | |
# | |
# inspect log files: | |
# /var/lib/resource-agents/ocft/cases/logs/IPaddr2-ipv6-sanitize.log | |
# /var/lib/heartbeat/trace_ra/IPaddr2/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -L -O https://www.linbit.com/downloads/drbd/utils/drbd-utils-9.10.0.tar.gz | |
$ tar xfvz drbd-utils-9.10.0.tar.gz | |
$ cd drbd-utils-9.10.0/ | |
$ ./configure | |
$ make rpm RPMOPT="--without sbinsymlinks" | |
# rpm -ivh drbd-utils-9.10.0-1.el7.x86_64.rpm | |
準備しています... ################################# [100%] | |
更新中 / インストール中... | |
1:drbd-utils-9.10.0-1.el7 ################################# [100%] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Trac Wiki to Markdown converter | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# git spec-import | |
# a git extention to import patches from the RPM spec file to a git branch | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Trac Wiki to Markdown converter | |
# | |
# Copyright(c) 2019 Keisuke MORI ([email protected]) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. |
OlderNewer