Auto deploy Puppet Agent


Continue with my previous Puppet and Puppet dashboard installation, now I start to deploy the agent to all my Ubuntu desktops. I wrote a script to do the dirty work. Pre-requisite package: expect (no need if use passwordless ssh, but you need to change the script slightly). How to use: 1) Create the following 4 scripts … Continue reading Auto deploy Puppet Agent

Auto Configure Proxy in Ubuntu


It is painful to turn the proxy on and off in my Ubuntu laptop between office and home.  As a lazy guy, I would like to make it automatic. Easy life now 🙂 1) Create 3 scripts named proxy_on, proxy_off and check_proxy under /usr/local/bin. #!/bin/bash #proxy_on gsettings set org.gnome.system.proxy.socks host 'proxy.company.local' gsettings set org.gnome.system.proxy.socks port … Continue reading Auto Configure Proxy in Ubuntu

PowerCLI: Check ESXi Scratch Location and Syslog Server Settings


As part of the ESXi health check, we need to ensure the scratch location and syslog server has been configured correctly. Here is my script to check the settings: $VMHost = Get-Content C:\powercli\Servers.txt Foreach ($_ in $VMHost) {$Scratch = Get-VMHostAdvancedConfiguration -VMHost $_ -Name ScratchConfig.ConfiguredScratchLocation $SyslogServer = Get-VMHostAdvancedConfiguration -VMHost $_ -Name syslog.global.loghost$SyslogDir = Get-VMHostAdvancedConfiguration -VMHost $_ … Continue reading PowerCLI: Check ESXi Scratch Location and Syslog Server Settings