Rosh PR

Just blog

Ansible connection error: Failed to connect to the host via ssh

Ansible 2.3 error during ssh connection to host is one of the common error faced by most of the new users of ansible. The error looks like the below statement. infra_ci | UNREACHABLE! => { “changed”: false, “msg”: “Failed to… Continue Reading →

Supporting transactional semantics for RPC definitions in Yang

Yang is a standard based schema for NETCONF to define data model, remote procedure calls and notifications. Though Yang is intended for device management, it is a good fit to define data model, remote procedure calls and notifications for any… Continue Reading →

Terraform: Using user data in Launch configuration

User data is commonly used in launch configuration to run scripts during instance initialization. Launch configuration is usually used along with auto scaling groups to launch instances with similar instance settings. Userdata can be templatized in terraform. Templatizing helps in… Continue Reading →

Internal ELB creation for autoscaling groups using terraform

Terraform script for creation of internal ELB is a bit tricky compared to usual ELB. Internal ELB is used between private networks within a ELB. These are used mainly for load balancing services within a private VPC network. The most… Continue Reading →

Terraform : Best way to organize your project

Terraform provides simple & very easy way to manage your cloud usingĀ uniform & simple scripts across different clouds. Terraform can manage existing and popular service providers as well as custom in-house solutions. Key features of Terraform are Infrastructure as Code… Continue Reading →

Argparse: adding sub commands to your command line arguments

Use argparse to add support for command line arguments to your program. Argparse supports adding sub commands to a primary command. It also supports making your subcommands mandatory or optional. Let me jump into example & explain. import argparse, sys… Continue Reading →

AWS Auth failure

OneĀ of the issue most of the new AWS developers encounter is Auth failure. This is mostly because many of them use invalid Access keys or would have wrongly configured the Access key. The Access key should be configured using the… Continue Reading →

Python: Pass by reference

One of the most confusing aspect for Java programmers in understanding Python is Pass by Reference. I have consolidated some of the example below for easier understanding How do I pass a variable by reference? class PassByReference: def __init__(self): self.variable… Continue Reading →

Python : String as immutable type

Many of them moving from Java to Python get confused with the way Python string immutability work. I have put down a compilation of different example I found to help you understand the same. The variable a is pointing at… Continue Reading →

Debugging AWS ELB OutOfService

Your load balancer checks the health of its registered instances using either the default health check configuration provided by Elastic Load Balancing or a custom health check configuration that you specify. The health check configuration contains information such as the… Continue Reading →

« Older posts

© 2019 Rosh PR — Powered by WordPress

Theme by Anders NorenUp ↑