Author: Josh
-
Retrieve Windows 8 Product Key
Easy way to retrieve the Windows 8, 8.1, and possibly 10 Windows Product Key using powershell: (Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey Seems to work well.
-
SSH in a for loop is a solution…
I just read an article by Jay Valentine on LinkedIn where he talks about Puppet and how they were not profitable, and also noted that Chef is not, and has never been, profitable. That got me to thinking, why are IT professionals investing in these technologies (time, knowledge, effort…). As an IT pro, it’s tempting…
-
Standalone puppet with hiera 5 error…
With puppet moving more and more away from supporting a standalone model, it’s somewhat difficult to get puppet standalone working. I recently got bit by a hiera update that caused my puppet standalone deployments to stop interacting with hiera the way that I had deployed it. Affected versions: puppet 4.10.10 hiera 3.4.3 The error that…
-
Adding Global Environment Variables to Jenkins via puppet…
When using Jenkins in any environment, it’s useful to have variables related to that environment available to Jenkins jobs. I recently worked on a project where I used puppet to deploy global environment variables to Jenkins for use with AWS commands — typically to execute the awscli, one must have knowledge of the region, account,…
-
Basic .screenrc
For new system setup, it’s good to publish a .screenrc: defscrollback 15000 hardstatus alwayslastline hardstatus string ‘%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]’ # Default screens screen -t aux0 0 screen -t aux1 1 screen -t aux2 2 startup_message off
-
Retrieving puppet facts from AWS System Manager
AWS System Manager makes it easy to store and retrieve parameters for use across servers, services, and applications in AWS. One great benefit is storing secrets for use, as needed. I recently needed to retrieve some parameters to place in a configuration file via puppet and wrote a short script to retrieve these values as…
-
Puppet Pipelines
I just watched the presentation that Brian McGehee gave at the Puppet Conf 2017 on Puppet Pipelines and it was interesting. The idea behind it is that you can use this SaaS to build your entire CI/CD pipeline with a great looking UI and lots of visual feedback along the way. Enter your source repository,…
-
Jenkins: Migrating credentials…
Thanks to CloudBees for providing a great guide on how to migrate Jenkins credentials – makes it dead simple. 1. Stop Jenkins on new server. new-server # /etc/init.d/jenkins stop 2. Remove the identity.key.enc file on new server: new-server # rm identity.key.enc 3. Copy secret* and credentials.xml to new server. current-server # cd /var/lib/jenkins current-server #…
-
SQL Injection Attempt
I just noticed an interesting SQL injection attempt on a site I maintain: ==> /var/log/httpd/access_log
-
Tableau Server Administration – turn it off and back on again.
I’ve been working with Tableau Server quite a bit lately (on Windows) and the one universal truth is this: if something is broken, verify that you have a good backup, uninstall, re-install, and restore the backup. It’s solved many problems and is the recommended (by Tableau support) action.