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
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: snap | |
namespace: kube-system | |
spec: | |
template: | |
metadata: | |
name: snap | |
labels: |
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
import unittest | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
class PythonOrgSearch(unittest.TestCase): | |
def setUp(self): | |
self.driver = driver = webdriver.Remote( | |
command_executor='http://172.24.249.167:10000/wd/hub', |
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
import unittest | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
class PythonOrgSearch(unittest.TestCase): | |
def setUp(self): | |
self.driver = driver = webdriver.Remote( | |
command_executor='http://172.24.249.167:10000/wd/hub', |
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
{ | |
"volumes": null, | |
"id": "/calico-install-framework", | |
"cmd": null, | |
"args": null, | |
"user": null, | |
"env": { | |
"ETCD_BINARY_URL": "https://github.com/coreos/etcd/releases/download/v2.3.1/etcd-v2.3.1-linux-amd64.tar.gz", | |
"MESOS_CNI_PLUGINS_DIR": "/opt/mesosphere/active/cni/", | |
"CALICO_ALLOW_DOCKER_UPDATE": "true", |
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
provider "vsphere" { | |
user = "xxxxx" | |
password = "xxxxx" | |
vsphere_server = "xxxxx" | |
} | |
resource "vsphere_virtual_machine" "default" { | |
name = "newvm-1" | |
domain = "foo" | |
datacenter = "location" |
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: Set Hipchat MSG | |
set_fact: | |
REPORTMSG: "LIVE UPDATE + ERRATA SYNC {{ timestamp.stdout }} - CENTOS Update" | |
COLORMSG: "green" | |
- name: Send notification to HipChat | |
include: hipchat-notification.yml | |
tags: notify | |
- name: Ensure git |
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
# | |
# ansible-playbook -i hosts download_errata.yml --vault-password-file=/etc/.ipassword -s -U root | |
# | |
--- | |
- name: Update ERRATAS if any new package | |
hosts: pulpservers | |
sudo: yes | |
gather_facts: yes | |
vars_files: | |
- pass.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
{ | |
"template" : "uac_*", | |
"mappings" : { | |
"tomcat" : { | |
"properties" : { | |
"@log_name" : { | |
"type" : "string" | |
}, | |
"@timestamp" : { | |
"type" : "date", |
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
# | |
# Dockerfile | |
# | |
FROM fedora:23 | |
RUN dnf -y update && dnf install -y git ruby mysql-devel ruby-devel gcc make redhat-rpm-config tar patch unzip | |
RUN dnf -y install -y openssh-clients krb5-workstation bind-utils | |
RUN dnf -y install java-1.8.0-openjdk | |
RUN gem install bundler | |
RUN gem install pry | |
RUN gem install pry-doc |
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
# | |
# https://gist.githubusercontent.com/samdoran/ | |
# https://forge.puppetlabs.com/elasticsearch/elasticsearch - cluster split prod/dev/stg/... by cluster name <project>-<cluster_name>-.... | |
# | |
--- | |
- name: Elasticsearch rolling upgrade | |
hosts: elk | |
serial: 1 | |
sudo: yes | |
gather_facts: true |