Skip to content

Instantly share code, notes, and snippets.

View sky-joker's full-sized avatar
:shipit:

sky-joker sky-joker

:shipit:
View GitHub Profile
@sky-joker
sky-joker / awx_6.0.0_to_6.1.0.diff
Created July 22, 2019 14:37
diff of awx 6.0.0 to 6.1.0
diff --git a/awx/ui/package.json b/awx/ui/package.json
index 5a1bbb8..54df8ad 100644
--- a/awx/ui/package.json
+++ b/awx/ui/package.json
@@ -44,7 +44,7 @@
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-env": "^1.6.0",
- "chromedriver": "^2.35.0",
+ "chromedriver": "^2.42.1",
@sky-joker
sky-joker / awx_4.0.0_to_6.0.0.diff
Created July 2, 2019 14:43
diff of awx 4.0.0 to 6.0.0
diff --git a/awx/ui/package.json b/awx/ui/package.json
index 5a1bbb8..54df8ad 100644
--- a/awx/ui/package.json
+++ b/awx/ui/package.json
@@ -44,7 +44,7 @@
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-env": "^1.6.0",
- "chromedriver": "^2.35.0",
+ "chromedriver": "^2.42.1",
@sky-joker
sky-joker / zabbix_servers_compose.yml
Created June 24, 2019 06:50
zabbix server3.0から4.2のコンテナを起動するPlaybook
---
- name: zabbix container servers playbook
hosts: localhost
gather_facts: no
vars:
state: present
#state: absent
tasks:
- name: zabbix container servers operation.
docker_compose:
@sky-joker
sky-joker / docker-compose.yml
Last active May 15, 2019 14:14
Zabbix 3.4から4.2のdocker-composeファイルとlocale設定スクリプトと起動確認Playbook
---
version: '3.7'
networks:
zabbix-nw:
name: zabbix-nw
ipam:
driver: default
config:
- subnet: "192.168.100.0/24"
services:
@sky-joker
sky-joker / diff.patch
Last active May 12, 2019 15:07
AWX(Ansible Tower)のARM64でイメージを作り直した時の差分
diff --git a/Makefile b/Makefile
index 22b3f89..1342f2c 100644
--- a/Makefile
+++ b/Makefile
@@ -174,9 +174,9 @@ requirements_ansible_dev:
# Install third-party requirements needed for AWX's environment.
requirements_awx: virtualenv_awx
if [[ "$(PIP_OPTIONS)" == *"--no-index"* ]]; then \
- cat requirements/requirements.txt requirements/requirements_local.txt | $(VENV_BASE)/awx/bin/pip install $(PIP_OPTIONS) --ignore-installed -r /dev/stdin ; \
+ cat requirements/requirements.txt requirements/requirements_local.txt | $(VENV_BASE)/awx/bin/pip install $(PIP_OPTIONS) -r /dev/stdin ; \
@sky-joker
sky-joker / clone_vm.yml
Last active October 24, 2021 21:56
ESXi single clone vm sample playbook(ref: http://ur2.link/vIFg)
---
- name: ESXi single clone vm demo
hosts: all
gather_facts: no
vars:
vm_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
(snip)
tasks:
- name: Get datastore infomation
<cib crm_feature_set="3.0.14" validate-with="pacemaker-2.10" epoch="13" num_updates="0" admin_epoch="0" cib-last-written="Sat Dec 8 23:22:16 2018" update-origin="drbd0" update-client="cibadmin" update-user="root" have-quorum="1">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-have-watchdog" name="have-watchdog" value="false"/>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.19-8.el7_6.1-c3c624ea3d"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
<nvpair id="cib-bootstrap-options-cluster-name" name="cluster-name" value="nfs_cluster"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</cluster_property_set>
@sky-joker
sky-joker / Dokerfile
Created November 11, 2018 14:01
asciinemaのコンテナをビルドするDokerfile
From centos:centos7
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG="ja_JP.UTF-8" \
LANGUAGE="ja_JP:ja" \
LC_ALL="ja_JP.UTF-8"
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN yum -y install epel-release
RUN yum -y install python36 && \
curl -L https://bootstrap.pypa.io/get-pip.py | python36 && \
pip3 install asciinema
@sky-joker
sky-joker / zabbix4.0のコンテナ環境手動構築手順メモ.md
Last active October 8, 2018 14:54
zabbix4.0のコンテナ環境手動構築手順メモ

こんなZabbix4.0環境をコンテナで作る

baseイメージ作成

[root@localhost common]# docker pull centos:centos7
[root@localhost common]# vi Dockerfile
From centos:centos7
@sky-joker
sky-joker / example.html
Created September 4, 2018 13:32
Bootstrapのテーブルサンプルにフィルタリングを実装したメモ ref: https://bootsnipp.com/snippets/featured/table-panel-with-pagination
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<script>
$(document).ready(function(){
$("#myInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#myTable tr").filter(function() {