sudo yum -y --enablerepo=base --enablerepo=updates --enablerepo=extras --enablerepo=base --enablerepo=centosplus install epel-release
sudo yum -y --enablerepo=base --enablerepo=updates --enablerepo=extras --enablerepo=base --enablerepo=centosplus install autossh
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
# foreman-installer \ | |
> --enable-foreman-proxy \ | |
> --foreman-proxy-tftp=true \ | |
> --foreman-proxy-tftp-servername=199.116.255.106 \ | |
> --foreman-proxy-dhcp=true \ | |
> --foreman-proxy-dhcp-interface=eno1 \ | |
> --foreman-proxy-dhcp-gateway= \ | |
> --foreman-proxy-dhcp-nameservers="199.116.255.106" \ | |
> --foreman-proxy-dns=true \ | |
> --foreman-proxy-dns-interface=eno1 \ |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
# Written by Jonathan Kelley, March 7, 2018 | |
# March 12, Added config support from yaml.. | |
#pip2.7 install netmiko | |
#pip2.7 install --upgrade paramiko | |
#pip2.7 install cryptography | |
#pip2.7 uninstall gssapi | |
#pip2.7 install unidecode |
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
class JenkinsBuilder(object): | |
""" | |
helper class for triggering jenkins jobs with the proper parameters | |
""" | |
def __init__(self, logger, baseurl, user, user_token, job, job_token): | |
self.logger = logger | |
self.baseurl = baseurl | |
self.user = user |
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
access_by_lua ' | |
proto = "http://" | |
proto1 = "https://" | |
temporary = 302 | |
permanent = 301 | |
if ngx.var.host == "example.com" then | |
new_host = "new_example.com" | |
return ngx.redirect(proto ..new_host .. ngx.var.request_uri, temporary) | |
end |
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 | |
# python 2.6.6 compatible | |
# Goes through list of customizable varnish metrics and reports to newrelic | |
# requires config in /etc/newrelic/newrelic_varnish_agent.ini | |
# sample config: | |
# [varnish] | |
# instance: ___varish_instance_name___ | |
# metrics: sess_conn,client_req,backend_fail,cache_miss,threads,threads_created,threads_failed,threads_limited,sess_drop,n_lru_nuked,esi_errors,n_expired | |
# [newrelic] | |
# license_key: ___key___ |
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: experiment | |
hosts: box | |
tasks: | |
- debug: | |
msg: "before we run our role" | |
- name: Run a task from a role | |
include_role: | |
name: rolename |
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
$ diff -U0 <(ssh lproxy5 'ls /etc/hapee-1.7/ssl') <(ssh lproxy6 'ls /etc/hapee-1.7/ssl') | |
--- /dev/fd/63 2018-06-26 16:15:26.000000000 -0500 | |
+++ /dev/fd/62 2018-06-26 16:15:26.000000000 -0500 | |
@@ -2 +1,0 @@ | |
-bt-wild-haproxy.pem |
OlderNewer