View main.yml
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
--- | |
- name: This playbook is an example of cloning a new VM with vmwre.vmware_res | |
hosts: localhost | |
gather_facts: false | |
vars: | |
vcenter_hostname: change me to vcenter host or ip | |
vcenter_username: administrator@vsphere.local | |
vcenter_password: change me to user password | |
folder: F0 | |
template_vm: test_vm1 |
View sample.yml
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
--- | |
- name: "example playbook" | |
hosts: localhost | |
gather_facts: no | |
vars: | |
netbox_url: http:/netbox ip or fqdn/api/ipam/prefixes/ | |
netbox_token: change me | |
target_prefix: "100.64.0.0/24" | |
module_defaults: | |
uri: |
View zabbix_api_template.py
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 | |
from zabbix_api import ZabbixAPI | |
if __name__ == "__main__": | |
url = "" | |
user = "" | |
passwd = "" | |
zapi = ZabbixAPI(server=url) | |
zapi.login(user, passwd) |
View ansible.cfg
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
[defaults] | |
host_key_checking=false |
View vmware_prepare.yml
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
--- | |
- name: Prepare CI environment for VMware infrastructure | |
hosts: localhost | |
gather_facts: no | |
vars: | |
# common params | |
vcenter_hostname: vcenter server | |
vcenter_username: administrator@vsphere.local | |
vcenter_password: password | |
datacenter: datacenter name |
View pr_test_66860_for_zabbix.yml
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
--- | |
- name: "PR test for #66860 (https://github.com/ansible/ansible/pull/66860)" | |
hosts: localhost | |
gather_facts: no | |
vars: | |
url: http://127.0.0.1/zabbix # specify zabbix 3.0.x url | |
user: admin | |
passwd: zabbix | |
tasks: | |
- name: delete host from zabbix server |
View zabbix_servers_compose.yml
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
--- | |
- name: zabbix containers provisione playbook | |
hosts: localhost | |
gather_facts: no | |
vars: | |
state: present | |
#state: absent | |
subnet: "192.168.100.0/24" | |
zabbix_version: | |
- "3.0.29" |
View pyvmomi_connect_template.py
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 | |
from pyVim.connect import SmartConnect, Disconnect | |
from pyVmomi import vim, vmodl | |
import ssl | |
import atexit | |
host = '' | |
username = '' | |
password = '' | |
mob = vim.VirtualMachine |
View vmware_get_console_url.py
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 | |
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 |
View Dockerfile
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
FROM centos:7 | |
MAINTAINER sky-joker | |
RUN yum -y install gcc \ | |
gcc-c++ \ | |
mariadb \ | |
mariadb-devel \ | |
httpd httpd-devel \ | |
libxml2-devel \ |
NewerOlder