Category: DevOps

Vagrant: use Putty as ssh client

Usually with vagrant ssh <box> a connection to the box can be made via ssh. When putty is preferred as ssh client then this is possible, a vagrant plugin (vagrant-multi-putty) is available for this. just goto the command line and issue this command: vagrant plugin install vagrant-multi-putty Be sure that the putty binary can be

Install Vagrant, Virtualbox and Git to setup a development environment

Based on this below one can setup a virtual development enviroment with vagrant, virtualbox and git. http://www.tjmaher.com/2016/05/setting-up-virtual-dev-environment-with.html This page describes how to do that on a computer with Windows 10. A. Download software: 1. https://git-scm.com/downloads/guis 2. https://www.vagrantup.com/downloads.html 3. https://www.virtualbox.org/wiki/Downloads B. Install software: 1. Install Virtualbox 2. Install Vagrant (reboot is recommended after installation) 3. Install

Custom Facts in Puppet

  ================== CUSTOM FACT ================= puppet@testserver:/opt/puppetserver/conf/environments/test/modules/helloworld/lib/facter> cat dhcp_dnsdomain.rb     Facter.add(“dhcp_dnsdomain”) do       confine :operatingsystem => ‘SLES’       setcode do         Facter::Core::Execution.exec(‘/usr/sbin/dhcpcd-test eth0 | grep DNSDOMAIN | cut -d$”\'” -f 2 | rev | cut -d”.” -f 1,2 | rev’)       end     end ==================== PUPPET MANIFEST ============ puppet@testserver:/opt/puppetserver/conf/environments/test/modules> cat helloworld/manifests/init.pp class helloworld { notify {

▶ Introduction – Packer

INTRODUCTION TO PACKER Welcome to the world of Packer! This introduction guide will show you what Packer is, explain why it exists, the benefits it has to offer, and how you can get started with it. If you’re already familiar with Packer, the documentation provides more of a reference for all available features. What Is

▶ tabnanny – Indentation validator (Python)

tabnanny – Indentation validator Purpose: Scan Python source code looking for suspicious indentation. Available In: 2.1.3 and later Consistent use of indentation is important in a langauge like Python, where white-space is significant. The tabnanny module provides a scanner to report on “ambiguous” use of indentation. Running from the Command Line The simplest way to