Category: DevOps

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

▶ Salting your Django Stack

Salting your Django Stack Continuing on our previous post “Don’t Hesitate to Automate” I wanted to show you how we automated our server deployment with the help of SaltStack. This post is technical and long. All the code below is fetched from our Github repository django-salted, which allows you to deploy your own Django site,

▶ WebFrameworks – Python Wiki

Web Frameworks for Python A Web framework is a collection of packages or modules which allow developers to write Web applications (see WebApplications) or services without having to handle such low-level details as protocols, sockets or process/thread management. The majority of Web frameworks are exclusively server-side technology, although, with the increased prevalence of AJAX, some

▶ Learn Python The Hard Way, 3rd Edition

Learn Python The Hard Way, 3rd Edition Welcome to the 3rd Edition of Learn Python the Hard Way. You can visit the companion site to the book at http://learnpythonthehardway.org/ where you can purchase digital downloads and paper versions of the book. The free HTML version of the book is available at http://learnpythonthehardway.org/book/. via http://learnpythonthehardway.org/book/