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
$global:restart = 1 | |
function getSsh { | |
$lines = (c:\cygwin64\bin\bash.exe -l -c "/bin/ps | grep ssh") | out-string | |
foreach ($line in $lines -split '[\r\n]') { | |
if ($line.Contains("ssh")) { | |
$global:restart = 0 | |
} | |
} |
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
$esx_hostname = '172.28.4.4' | |
if ($esx_hostname != undef) and ($force_restart == 'true') { | |
transport { 'vcenter' : | |
username => 'root', | |
password => 'password', | |
server => $esx_hostname, | |
options => { | |
'insucure' => 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
#!ipxe | |
echo +------- STATIC (embedded2) ---------------- | |
ifopen net0 | |
set net0/ip 172.18.4.142 | |
set net0/netmask 255.255.0.0 | |
set net0/gateway 172.18.0.1 | |
set net0/dns 172.20.0.8 | |
set net0/domain aidev.com |
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
I, [2015-10-27T11:44:39.698000 #11767] INFO -- : Updating inventory for bladeserver-fv7qqv1 | |
...getting inventory | |
...getting facts | |
...getting device config | |
...getting network config | |
Could not dump resource bladeserver-fv7qqv1: ASM::WsMan::Error: Connection failed, Couldn't connect to server. Please check IP address credentials for iDrac at 172.17.4.216.: #<Hashie::Mash exit_status=1 | |
pid=13878 stderr="Connection failed. response code = 0\nFailure when receiving data from the peer\n" stdout=""> | |
/root/dell-asm-util/lib/asm/wsman.rb:79:in `invoke' | |
/root/dell-asm-util/lib/asm/wsman.rb:72:in `invoke' | |
/root/dell-asm-util/lib/asm/wsman.rb:72:in `invoke' |
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
[5] pry(main)> SERVERS.first.configure_networking! | |
D, [2015-10-27T19:11:14.095648 #52408] DEBUG -- : Checking if provider switch/force10 supports a resource of provider server/server | |
D, [2015-10-27T19:11:14.097423 #52408] DEBUG -- : Calling ASM::Provider::Server::Server provider configure_hook to complete configuration | |
D, [2015-10-27T19:11:14.100211 #52408] DEBUG -- : Configured ASM::Provider::Server::Server provider with resource bladeserver-2l4v5y1 for asm::server | |
D, [2015-10-27T19:11:14.100471 #52408] DEBUG -- : server.rb:167:in `block in configure_networking!' calling delegated method configure_server on #<ASM::Provider::Switch::Force10 uuid: type: force10 certname: dell_iom-172.17.4.234> | |
D, [2015-10-27T19:11:14.100531 #52408] DEBUG -- : Configuring dell_iom-172.17.4.234 using asm/provider/switch/force10/blade_mxl | |
I, [2015-10-27T19:11:14.102972 #52408] INFO -- : Configuring NIC bladeserver-2l4v5y1 / NIC.Integrated.1-1-1 connected on dell_iom-172.17.4.234 port Te 0/8 | |
D, [2015-10-27T19:11:14.103274 #52408 |
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
🔷 bundle exec rake deployment:inspect DEPLOYMENT=~/Desktop/rack/out/deployment.json | |
Deployment file /Users/Logan/Desktop/rack/out/deployment.json | |
Deployment Name: rackyo | |
ID: ff80808150a8bf460150b0d1d74d03f8 | |
Teardown: false | |
Retry: false | |
Migration: false | |
Components: |
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
2.1.5 :004 > puts p["remote_device_info"] | |
[{"interface":"Te 0/2","location":"00:0a:f7:6c:ac:d2","remote_mac":"00:0a:f7:6c:ac:d2","remote_system_name":"-"},{"interface":"Te 0/4","location":"24:b6:fd:f6:5a:76","remote_mac":"24:b6:fd:f6:5a:76","remote_system_name":"-"},{"interface":"Te 0/8","location":"e0:db:55:25:54:4e","remote_mac":"e0:db:55:25:54:4e","remote_system_name":"-"},{"interface":"Te 0/9","location":"24:b6:fd:f4:6b:c0","remote_mac":"24:b6:fd:f4:6b:c0","remote_system_name":"-"},{"interface":"Te 0/11","location":"74:86:7a:eb:4e:ce","remote_mac":"74:86:7a:eb:4e:ce","remote_system_name":"-"},{"interface":"Te 0/14","location":"00:0a:f7:15:64:82","remote_mac":"00:0a:f7:15:64:82","remote_system_name":"-"},{"interface":"Te 0/15","location":"54:9f:35:17:99:0e","remote_mac":"54:9f:35:17:99:0e","remote_system_name":"-"},{"interface":"Te 0/18","location":"00:0a:f7:6c:ac:d6","remote_mac":"00:0a:f7:6c:ac:d6","remote_system_name":"-"},{"interface":"Te 0/30","location":"00:0a:f7:15:64:86","remote_mac":"00:0a:f7:15:6 |
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
# /etc/puppetlabs/puppet/node_data/agent-haproxy.yaml | |
--- | |
agent-haproxy: | |
classes: | |
linux_postinstall: | |
install_packages: tree | |
upload_recursive: 'false' | |
haproxy: | |
require: Class[linux_postinstall] |
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
#Docker for Windows: | |
Invoke-Webrequest -UseBasicparsing -Outfile "$env:TEMP\DockerForWindows.exe" "https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe" | |
Start-Process -FilePath "$env:TEMP\DockerForWindows.exe" -ArgumentList "install","--quiet" -Wait | |
New-NetFirewallRule -DisplayName "vpnkit" -Direction Inbound -Program "C:\Program Files\docker\docker\resources\vpnkit.exe" -Profile Public -Action Block -Protocol UDP | |
New-NetFirewallRule -DisplayName "vpnkit" -Direction Inbound -Program "C:\Program Files\docker\docker\resources\vpnkit.exe" -Profile Public -Action Block -Protocol TCP | |
New-NetFirewallRule -DisplayName "vpnkit" -Direction Inbound -Program "C:\Program Files\docker\docker\resources\vpnkit.exe" -Profile Private -Action Allow -Protocol UDP | |
New-NetFirewallRule -DisplayName "vpnkit" -Direction Inbound -Program "C:\Program Files\docker\docker\resources\vpnkit.exe" -Profile Private -Action Allow -Protocol TCP |
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
--- | |
version: '3.1' | |
services: | |
drupal: | |
image: drupal:8-apache | |
ports: | |
- 8080:80 | |
restart: always |
OlderNewer