This file contains hidden or 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
| #Use a CSV file with the list of VMs under the header name to feed VMs to the program | |
| #Used to clear swapped memory by powering down the VM, waiting, and Powering back on the VM. | |
| #A Reboot doesn't fully fix the VM swapping issue | |
| Add-PSSnapin VMware.VimAutomation.Core | |
| $credpath = "c:\scripts\MyCredential.xml | |
| $cred = import-clixml -path $credpath | |
| $vcenter="VCENTER_ADDRESS" | |
This file contains hidden or 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
| ############################################################ | |
| ## File: Zeroes.ps1 | |
| ## Date: 2017/1/5 | |
| ## Author: Pierce Fortin | |
| ## Description: This script will use multiple Powershell jobs to write | |
| ## zeroes over the empty space of a drive, being careful not to | |
| ## overwrite the last $safetyMargin of the drive so as not to | |
| ## disrupt production systems. Default $safetyMargin is 5 GB. | |
| ## Default simultaneous jobs is 2. Default file size to write is | |
| ## 10 GB. It will also automatically run this against every drive which is mounted with free space. |
This file contains hidden or 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
| # ======================== Elasticsearch Configuration ========================= | |
| # | |
| # NOTE: Elasticsearch comes with reasonable defaults for most settings. | |
| # Before you set out to tweak and tune the configuration, make sure you | |
| # understand what are you trying to accomplish and the consequences. | |
| # | |
| # The primary way of configuring a node is via this file. This template lists | |
| # the most important settings you may want to configure for a production cluster. | |
| # | |
| # Please see the documentation for further information on configuration options: |
This file contains hidden or 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
| ################################ | |
| # Elasticsearch | |
| ################################ | |
| # Elasticsearch home directory | |
| #ES_HOME=/usr/share/elasticsearch | |
| # Elasticsearch configuration directory | |
| #CONF_DIR=/etc/elasticsearch |
This file contains hidden or 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
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # | |
| # Use '/sbin/sysctl -a' to list all possible parameters. | |
| # Controls IPv4 Security | |
| net.ipv4.ip_forward=0 | |
| net.ipv4.conf.all.send_redirects=0 |
This file contains hidden or 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
| user nginx; | |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| load_module modules/ngx_stream_module.so; | |
| events { | |
| worker_connections 1024; |
This file contains hidden or 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
| ## VMWare Alert Setup Script | |
| ##Modified from https://fixingitpro.com/2012/07/09/powercli-script-to-automatically-setup-vcenter-alarm-email-notification/ | |
| ## For use with vCenter 6/ 6.5 | |
| ## Modifications by Pierce Fortin | |
| ## [email protected] | |
| $user="USERNAME" | |
| $pass="PASSWORD" | |
| $vCenterServer="vCenterIP" |
This file contains hidden or 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
| # SSL Smoke Tester | |
| # Displays SSL certificates for sites listed under $sites to ensure that SSL is configured with the proper certificate | |
| # Script does the following: | |
| # 1. Runs check with default DNS or existing host maps | |
| # 2. Modifies host file with sites pointed to new IP address | |
| # 3. Runs SSL check again | |
| # 4. Restores Hostfile to state before script was run | |
| # | |
| # | |
| #### INSTRUCTIONS |
This file contains hidden or 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
| --- | |
| - hosts: spacewalk_register | |
| tasks: | |
| - name: Install Spacewalk Client Repo | |
| yum: name=http://yum.spacewalkproject.org/2.5-client/RHEL/6/x86_64/spacewalk-client-repo-2.5-3.el6.noarch.rpm state=present | |
| ignore_errors: yes | |
| - name: Install rhn client tools | |
| yum: name=rhn-client-tools state=present | |
| ignore_errors: yes | |
| - name: Install rhn check |
This file contains hidden or 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
| --- | |
| - hosts: spacewalk_register | |
| tasks: | |
| - name: Install Spacewalk Client Repo | |
| yum: name=http://yum.spacewalkproject.org/2.5-client/RHEL/6/x86_64/spacewalk-client-repo-2.5-3.el6.noarch.rpm state=present | |
| ignore_errors: yes | |
| - name: Install rhn client tools | |
| yum: name=rhn-client-tools state=present | |
| ignore_errors: yes | |
| - name: Install rhn check |
OlderNewer