Browsed by
Author: Ricky Adams

Using Python with Excel Spreadsheets with OpenPyXL

Using Python with Excel Spreadsheets with OpenPyXL

Working with Excel Spreadsheets Excel is a popular and powerful spreadsheet application for Windows. The openpyxl module allows your Python programs to read and modify Excel spreadsheet files. For example, you might have the boring task of copying certain data from one spreadsheet and pasting it into another one. Or you might have to go through thousands of rows and pick out just a handful of them to make small edits based on some criteria. Or you might have to…

Read More Read More

Configuring JIRA for Email Feeds

Configuring JIRA for Email Feeds

Configuring JIRA applications to receive email from a POP or IMAP mail server To enable JIRA to create comments and issues from email, you need to first configure JIRA to receive email from a POP or IMAP mail server as described below. Note: For all of the following procedures, you must be logged in as a user with the JIRA Administrators global permission. Add or edit a POP or IMAP mail server Choose > System. Select Mail > Incoming Mail to open the Incoming Mail page….

Read More Read More

How to setup cifs mounts in autofs using kerberos authentication on RedHat Linux

How to setup cifs mounts in autofs using kerberos authentication on RedHat Linux

How to setup cifs mounts in autofs using kerberos authentication Solution Verified – Updated March 6 2017 at 2:24 AM – English No translations currently exist. Environment Red Hat Enterprise Linux 6 Please Note: Kerberos support for CIFS mounts is considered Tech Preview in Red Hat Enterprise Linux 5. See 5.8 Technical Notes for more information. Issue How to setup cifs mounts in autofs using kerberos authentication? Configuration for authentication to cifs shares with a kerberos ticket. Resolution using sssd…

Read More Read More

Linux CIFS AutoFS (automount) using Kerberos Authentication and kinit

Linux CIFS AutoFS (automount) using Kerberos Authentication and kinit

Setup Linux CIFS AutoFS (automount) using kerberos authentication March 5, 2015 ~ tatroc2015 Written using CentOS 6, Windows 2012 Active Directory This guide was written assuming you already have Kerberos authentication working. In this post I will describe how to mount a Windows CIFS share from a Linux system using Kerberos authentication to a Windows Active Directory domain. In addition, the users credentials will be stored securely in a keytab file. Step 1. verify you can get a Kerberos ticket kinit…

Read More Read More

RedHat OpenStack Deployment and Management (RDO, TripleO, OOO)

RedHat OpenStack Deployment and Management (RDO, TripleO, OOO)

Virtual Environment Quickstart Further reading Presentations TripleO quickstart TripleO is an OpenStack Deployment & Management tool. It is developed upstream as the OpenStack TripleO project, but we have a special love for it in RDO-land. Virtual environment quickstart There is an Ansible-based project called tripleo-quickstart whose main goal is to quickly stand up TripleO environments using an image-based undercloud approach similar to the OPNFV Apex project. You will need a host machine (referred to as $VIRTHOST) with at least 16GB…

Read More Read More

Introduction: Deploying OpenStack on MAAS 1.9+ with Juju

Introduction: Deploying OpenStack on MAAS 1.9+ with Juju

Introduction: Deploying OpenStack on MAAS 1.9+ with Juju By Canonical on 21 January 2016 Share or save Facebook Twitter Google+ Email LinkedIn Add to Instapaper Add to Pocket In the past months our Juju Core Sapphire team has been working on the design, planning, and implementation of a set of extended networking features for Juju 1.25 and the upcoming (January 2016) 1.26 releases. The main focus is enabling users of Juju to have a finer-grained control over how their services…

Read More Read More

Deploying an OpenStack Cloud with Juju

Deploying an OpenStack Cloud with Juju

Scope The OpenStack platform is powerful and its uses diverse. This section of documentation is primarily concerned with deploying a “standard” running OpenStack system using, but not limited to, Canonical components such as MAAS, Juju and Ubuntu. Where appropriate other methods and software will be mentioned. Assumptions Use of MAAS – follow these intructions first. Use of Juju Local network configuration – This document assumes that you have an adequate local network configuration, including separate interfaces for access to the…

Read More Read More

Preparing MAAS for Juju and OpenStack using Simplestreams from Cononical

Preparing MAAS for Juju and OpenStack using Simplestreams from Cononical

Preparing MAAS for Juju and OpenStack using Simplestreams When Juju bootstraps a cloud, it needs two critical pieces of information: The uuid of the image to use when starting new compute instances. The URL from which to download the correct version of a tools tarball. This necessary information is stored in a json metadata format called “simplestreams”. For supported public cloud services such as Amazon Web Services, HP Cloud, Azure, etc, no action is required by the end user. However,…

Read More Read More

Using MaaS to Prepare for an OpenStack Installation

Using MaaS to Prepare for an OpenStack Installation

Scope This document provides instructions on how to install the Metal As A Service (MAAS) software. You have sufficient, appropriate node hardware You will be using Juju to assign workloads to MAAS You will be configuring the cluster network to be controlled entirely by MAAS (i.e. DNS and DHCP) If you have a compatible power-management system, any additional hardware required is also installed(e.g. IPMI network). Introducing MAAS Metal as a Service – MAAS – lets you treat physical servers like…

Read More Read More

Python Exceptions and Error Handling

Python Exceptions and Error Handling

Python provides two very important features to handle any unexpected error in your Python programs and to add debugging capabilities in them − Exception Handling: This would be covered in this tutorial. Here is a list standard Exceptions available in Python: Standard Exceptions. Assertions: This would be covered in Assertions in Python tutorial. List of Standard Exceptions − EXCEPTION NAME DESCRIPTION Exception Base class for all exceptions StopIteration Raised when the next() method of an iterator does not point to…

Read More Read More

Linux CHMOD File Permissions Decoded from the 1980s

Linux CHMOD File Permissions Decoded from the 1980s

Linux File Permissions In Ubuntu / Linux everything is a file, so everything will have permissions also. File permissions define which user or system accounts have permissions to read, write, and execute specific files. These read, write, and execute permissions are defined for: user the user that owns the file group users in the files group other every other user There are also three other components when it comes to file mode bits, namely the setuid bit, the setgid bit,…

Read More Read More

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04

Packer: In 10 minutes, from zero to bootable VirtualBox Ubuntu 12.04 Updated: June 21, 2016 Trying to build a simple VirtualBox Ubuntu image was not without digging around, even though the documentation at Packer would lead you to believe everything is quite straightforward. If you were looking for a concrete example of creating a VirtualBox Ubuntu 12.04 LTS image with Packer, this should be a straightforward guide to get you up and running fast. (Updated for packer v0.10.1) Packer is…

Read More Read More

vOneCloud – A Simple Poor Man’s vCloud

vOneCloud – A Simple Poor Man’s vCloud

SOURCE: http://vonecloud.today/ A Cloud on VMware vCenter vOneCloud is an OpenNebula distribution optimized to work on existing VMware vCenter deployments. It deploys an enterprise-ready OpenNebula cloud just in a few minutes where the infrastructure is managed by already familiar VMware tools, such as vSphere and vCenter Operations Manager, and the provisioning, elasticity and multi-tenancy cloud features are offered by OpenNebula Powerful Virtual data centers, self-service portal, datacenter federation, hybrid cloud on your VMware environment Cost Effective Free, there are no…

Read More Read More

Infrastructure-As-Code (IAC) – Terraform Versus The Others

Infrastructure-As-Code (IAC) – Terraform Versus The Others

SOURCE: https://blog.gruntwork.io/why-we-use-terraform-and-not-chef-puppet-ansible-saltstack-or-cloudformation-7989dad2865c#.gxz3kx827 Update: we took this blog post series, expanded it, and turned it into a book called Terraform: Up & Running! This is Part 1 of the Comprehensive Guide to Terraform series. In the intro to the series, we discussed why every company should be using infrastructure-as-code (IAC). In this post, we’re going to discuss why we picked Terraform as our IAC tool of choice. If you search the Internet for “infrastructure-as-code”, it’s pretty easy to come up with…

Read More Read More

Linux Script to Autostart a Background Process if not running

Linux Script to Autostart a Background Process if not running

# start a background process if it is not running, can also use in cron to check every hour or so #!/bin/sh if ! ps -elf | grep -v grep | grep processname ; then python processname.py >> /home/user/bin/spooler.log & ## #mailing program ## /home/user/bin/simplemail.php “Print spooler was not running… Restarted.” fi

Linux TarBall Create and Extract

Linux TarBall Create and Extract

Create a TarBall File tar -zcvf archive-name.tar.gz directory-name Where, -z : Compress archive using gzip program -c: Create archive -v: Verbose i.e display progress while creating archive -f: Archive File name For example, say you have a directory called /home/jerry/prog and you would like to compress this directory then you can type tar command as follows: $ tar -zcvf prog-1-jan-2005.tar.gz /home/jerry/prog Above command will create an archive file called prog-1-jan-2005.tar.gz in current directory. If you wish to restore your archive…

Read More Read More

KVM Installation on Linux

KVM Installation on Linux

KVM/Installation  Reference: https://help.ubuntu.com/community/KVM KVM Introduction   Ubuntu uses KVM as the back-end virtualization technology primarily for non-graphic servers and libvirt as its toolkit/API. Libvirt front ends for managing VMs include virt-manager (GUI) or virsh (CLI). Alternative management options include convirt (GUI) or convirt2 (WWW). Documentation   Installation – Installation and removal of KVM Networking – Network configuration; includes bridging Guest Creation – Creation of different kinds of guests Guest Management – Management of guests; command line or graphically Guest Console…

Read More Read More

Adding New OpenStack Roles to an Existing High Availability Cluster

Adding New OpenStack Roles to an Existing High Availability Cluster

Example: Adding New OpenStack or Contrail Roles to an Existing High Availability Cluster This section provides an example of adding new nodes or roles to an existing cluster with high availability enabled. It is organized in the following: Adding New OpenStack or Contrail Roles to an Existing High Availability Cluster Purging a Controller From an Existing Cluster Replacing a Node With a Node That Has the Same IP Address Known Limitations and Configuration Guidelines Understanding How the System Adds a…

Read More Read More

High-Availability Openstack on a shoestring budget: Deploying a Minimal 3-node Cluster

High-Availability Openstack on a shoestring budget: Deploying a Minimal 3-node Cluster

High-Availability Openstack on a shoestring budget: Deploying a Minimal 3-node Cluster Severalnines December 04, 2013 Posted in: Devops As OpenStack deployments mature from evaluation/development to production environments supporting apps and services, high-availability becomes a key requirement. In a previous post, we showed you how to cluster the database backend – which is central to the operation of OpenStack. In that setup, you would have two controllers, while placing a 3-node Galera cluster on separate hosts. Now, it can be quite a…

Read More Read More

Installing VMtools Linux Server with only a command line interface

Installing VMtools Linux Server with only a command line interface

Installing VMtools Linux (Ubuntu) Server with only a command line interface Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).Note: If you are running the light version of Fusion, or a version of Workstation without VMware Tools, or VMware Player, you are prompted to download the Tools before they can be installed. Click Download Now to begin the download. In the Ubuntu guest, run these commands: Run this command to create a directory to mount…

Read More Read More