Obie  Rowe

Obie Rowe

1598640300

Hashicorp Vagrant 101

Vagrant is a tool for managing pre-configured Virtual Machines (VM). The emphasis is on management; Vagrant doesn’t build them, it just manages VMs created by existing hypervisors such as VirtualBox. It simplifies the process of downloading VM images and configuring them.

Vagrant also allows you to package your own box with your own environment variables, softwares, … and distribute it to the others. This way, you save a lot of time for people who need to have your own exact environment to replicate your work.

After booting up your VM box, you can configure other tools you need on your VM through several provisioners such as the shellTerraformChef and Ansible. In other words, Vagrant integrates Provisioner and VirtualBox to configure your desired environment.

Image for post

Source: https://www.softqubes.com/blog/introduction-of-vagrant-development/

Install VirtualBox first

$ sudo apt-get install vagrant

Install Vagrant

Although you can use your package manager to install vagrant, I recommend downloading the Debian package from Vagrant website (here) and installing it directly.

#virtual-machine #101 #vagrant

What is GEEK

Buddha Community

Hashicorp Vagrant 101
Obie  Rowe

Obie Rowe

1598640300

Hashicorp Vagrant 101

Vagrant is a tool for managing pre-configured Virtual Machines (VM). The emphasis is on management; Vagrant doesn’t build them, it just manages VMs created by existing hypervisors such as VirtualBox. It simplifies the process of downloading VM images and configuring them.

Vagrant also allows you to package your own box with your own environment variables, softwares, … and distribute it to the others. This way, you save a lot of time for people who need to have your own exact environment to replicate your work.

After booting up your VM box, you can configure other tools you need on your VM through several provisioners such as the shellTerraformChef and Ansible. In other words, Vagrant integrates Provisioner and VirtualBox to configure your desired environment.

Image for post

Source: https://www.softqubes.com/blog/introduction-of-vagrant-development/

Install VirtualBox first

$ sudo apt-get install vagrant

Install Vagrant

Although you can use your package manager to install vagrant, I recommend downloading the Debian package from Vagrant website (here) and installing it directly.

#virtual-machine #101 #vagrant

BCCMyrrixBundle: A Myrrix Bundle for Symfony 2

Myrrix bundle

Myrrix is a recommendation engine built on Apache Mahout libraries. If you don't know it already, you should have a look here Myrrix website.

This bundle helps you interface with the Rest API. It is build on top of Guzzle.

Installation and configuration

Get the Bundle via Composer

The best way to use the library is via Composer.

Do in the command line:

composer require bcc/myrrix-bundle

Or Manually add the library to your dependencies in the composer.json file:

{
    "require": {
        "bcc/myrrix-bundle": "*"
    }
}

Then install your dependencies:

composer install

Add the bundle to your kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new BCC\MyrrixBundle\BCCMyrrixBundle(),
        // ...
    );
}

Set the configuration

You will have to configure your Myrrix endpoint in your configuration:

# app/config/config.yml
bcc_myrrix:
    host: localhost # the myrrix host
    port: 8080      # the myrrix port
    username: test  # the myrrix username
    password: 1234  # the myrrix password

Start a Myrrix server instance

Before you start, don't forget to have an instance of the Myrrix server running. Simply download the .jar excecutable for the serving layer and run it:

java -jar myrrix-serving-x.y.jar --localInputDir /path/to/working/dir --port 8080

It will run a server on port 8080 and using the /path/to/working/dir directory as a backing storage. You can get more information about the server here.

Usage

You can now simply get an instance of MyrrixService:

$myrrix = $container->get('bcc_myrrix.service');

// Put a user/item assocation, here use #101 as an association of strength 0.5 with item #1000
$myrrix->setPreference(101, 1000, 0.5);

// Refresh the index
$myrrix->refresh();

// Get a recommendation for user #101
$recommendation = $myrrix->getRecommendation(101); // an array of itemId and strength (example: [[325,0.53],[98,0.499]])

More service functions

More functions include:

  • Recommendation to many users
  • Recommendation to anonymous
  • More similar items
  • Batch insertion of preferences
  • ...

You can get a full list of functions in the MyrrixService.php file.

Author: Michelsalib
Source Code: https://github.com/michelsalib/BCCMyrrixBundle 
License: 

#php #symfony 

Nella  Brown

Nella Brown

1620430920

What is Vagrant? Why Vagrant is important in DevOps World?

Hello All,

In this tutorial, we all will learn complete vagrant in three different parts.

Introduction of Vagrant -

A vagrant is a tool for building and managing virtual machine environments in a single workflow.

Vagrant is used to setting up one or more virtual machines by:

#coding #devops #vagrant

HashiCorp Introduces HashiCorp Cloud Platform

HashiCorp, the company behind the software tool Terraform, introduces a platform to run their products on AWS, Azure, and GCP as managed services. This will extend their enterprise offer with a focus on multi-cloud environments.

At the HashiConf Digital conference at the end of June, HashiCorp launched a private beta of HashiCorp Cloud Platform (HCP), a managed tool of their open-source products. Customers will rely on a single set of APIs to deploy TerraformVaultNomad and Consul on multi-cloud environments.

Terraform is today a popular tool for provisioning and configuring resources across multiple cloud providers and HCL, the HashiCorp configuration language, is one of the fastest growing languages on GitHub. Robert Genova, director for product marketing at HashiCorp, explains how HCP is different from running Terraform:

HashiCorp products deployed through HCP are pre-configured for best practices and fully managed by HashiCorp after they are deployed. With Terraform, a user will still need to prepare configuration files, build machine images, and handle upgrades, backups, and scaling.

The infrastructure automation startup is now moving into a managed operating model with a pay-as-you-go pricing approach. The new platform powers both HCP Consul and HashiCorp Consul Service (HCS) on Azure, a service that is generally available since the end of July. The founder of HashiCorp, Mitchell Hashimoto, tweeted:

This is extra exciting because it’s our first GA managed service and it’s built on top of the core of our Cloud Platform that will power more products on other providers.

But HCS is today a separate managed service, available in the Azure marketplace, and it is not an abstract layer on top of the Microsoft platform available through a HashiCorp console as HCP. And it will still take time to have access to Terraform, Vault and Nomad as managed services on the new HCP console. Today HCP supports only a private beta of HCP Consul for AWS, a single service on a single cloud provider. The company plans to make it publicly available by the end of the year, followed by HCP Vault with the support for Azure and Google Cloud following later on.

#hashicorp #azure #cloud #terraform #devops #architecture & design #development #news

Hashicorp Vault for secret management in Kubernetes Cluster

INTRODUCTION

Hashicorp Vault provides all of the power and security of Vault, without the complexity and overhead of managing it yourself. It also provides various authentication methods like AWS, Kubernetes, Tokens, OIDC, Azure Active Directory, etc. to provision and dynamically injects secrets in infrastructure like EC2 Machine, Kubernetes pods, etc.

HashiCorp Cloud Platform features a web user interface to deploy and manage resources, including HCP Vault deployments in AWS. However, If you prefer to automate HCP Vault deployment, one recommended approach is to use HashiCorp Terraform with the HCP provider.

What we will cover:

In this post we will cover the following:

  1. Vault installation with High availability configuration in Kubernetes cluster using terraform.
  2. Enabling Kubernetes authentication in Vault using terraform.
  3. Inject Secrets in running pod dynamically.

Pre-requisites

  1. Kubernetes cluster up and running
  2. kubectl, terraform, helm, vault CLI installed
  3. some basic knowledge of terraform, kubectl and vault commands. (I will provide a link in end for reference)

#hashicorp-consul #terraform #hashicorp-vault #automation #kubernetes