Skip to content

Instantly share code, notes, and snippets.

:shipit:

sky-joker sky-joker

:shipit:
Block or report user

Report or block sky-joker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pyvmomi_connect_template.py
#!/usr/bin/env python
from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vim, vmodl
import ssl
import atexit
host = ''
username = ''
password = ''
mob = vim.VirtualMachine
@sky-joker
sky-joker / vmware_get_console_url.py
Last active Aug 18, 2019
VMwareのHTML Console SDKで使用するWebSocketのURLを生成するツール
View vmware_get_console_url.py
#!/usr/bin/env python
from __future__ import absolute_import, division, print_function
from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vim
from getpass import getpass
import ssl
import atexit
import argparse
import sys
@sky-joker
sky-joker / Dockerfile
Last active Aug 15, 2019
owncloudを動かすコンテナのDockerfile
View Dockerfile
FROM centos:7
MAINTAINER sky-joker
RUN yum -y install gcc \
gcc-c++ \
mariadb \
mariadb-devel \
httpd httpd-devel \
libxml2-devel \
@sky-joker
sky-joker / awx_6.0.0_to_6.1.0.diff
Created Jul 22, 2019
diff of awx 6.0.0 to 6.1.0
View awx_6.0.0_to_6.1.0.diff
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 Jul 2, 2019
diff of awx 4.0.0 to 6.0.0
View awx_4.0.0_to_6.0.0.diff
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 Jun 24, 2019
zabbix server3.0から4.2のコンテナを起動するPlaybook
View zabbix_servers_compose.yml
---
- 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
Zabbix 3.4から4.2のdocker-composeファイルとlocale設定スクリプトと起動確認Playbook
View docker-compose.yml
---
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
AWX(Ansible Tower)のARM64でイメージを作り直した時の差分
View diff.patch
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 Mar 22, 2019
ESXi single clone vm sample playbook(ref: http://ur2.link/vIFg)
View clone_vm.yml
---
- 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
View example.cib.xml
<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>
You can’t perform that action at this time.