Infrastructure at your Service. Setup Oracle Infrastructure with Vagrant & Ansible

Similar documents
Automate Patching for Oracle Database in your Private Cloud

FMW Automatic install using cloning

Deploying MySQL HA. with Ansible and Vagrant (101) Daniel Guzman Burgos (Percona) Robert Barabas (Percona)

Ansible. For Oracle DBAs. Alexander Hofstetter Trivadis GmbH

Cloud and Devops - Time to Change!!! PRESENTED BY: Vijay

Red Hat Ansible Workshop. Lai Kok Foong, Kelvin

Ansible Bootcamp. Bruce Becker: Coordinator, Africa-Arabia ROC

Splunk and Ansible. Joining forces to increase implementation power. Rodrigo Santos Silva Head of Professional Services, Tempest Security Intelligence

Introduction to Ansible

Contents. Prerequisites 1. Linux 1. Installation 1. What is Ansible? 1. Basic Ansible Commands 1. Ansible Core Components 2. Plays and Playbooks 8

(Almost) Instant monitoring

Zabbix Ansible Module. Patrik Uytterhoeven

Study Guide. Expertise in Ansible Automation

Infoblox and Ansible Integration

Ansible. Go directly to project site 1 / 36

IN DEPTH INTRODUCTION ARCHITECTURE, AGENTS, AND SECURITY

Ansible and Firebird

Automation: Making the Best Choice for Your Organization

Setting up Craft with Vagrant

Henry Stamerjohann. Apfelwerk GmbH & Co. #macadmins

Ansible in Depth WHITEPAPER. ansible.com

Harnessing your cluster with Ansible

vagrant up for Network Engineers Do it like they do on the Developer Channel!

Automate DBA Tasks With Ansible

Getting started with Ansible and Oracle

J, K, L. Each command, 31. Fully qualified domain name (FQDN), 116

1 av :26

Ansible: Server and Network Device Automation

How to avoid boring work - Automation for DBAs

DevOPS, Ansible and Automation for the DBA. Tech Experience 18, Amsersfoot 7 th / 8 th June 2018

An introduction to ANSIBLE. Anand Buddhdev RIPE NCC

Ansible at Scale. David Melamed Senior Research Engineer, CTO Office, CloudLock

AUTOMATION ACROSS THE ENTERPRISE

Database Operations at Groupon using Ansible. Mani Subramanian Sr. Manager Global Database Services Groupon

Vagrant CookBook. A practical guide to Vagrant. Erika Heidi. This book is for sale at

Introduction to CLI Automation with Ansible

Rapid Deployment of Bare-Metal and In-Container HPC Clusters Using OpenHPC playbooks

Tools for the Vagabonding Samba Developer

Ansible Tower on the AWS Cloud

Get Automating with Infoblox DDI IPAM and Ansible

Splunk ConfiguraAon Management and Deployment with Ansible

Ansible F5 Workshop +

Ansible + Hadoop. Deploying Hortonworks Data Platform with Ansible. Michael Young Solutions Engineer February 23, 2017

Ansible Tower Quick Install

Ansible in Operation. Bruce Becker: Coordinator, SAGrid

Ansible Tower Quick Install

We are ready to serve Latest IT Trends, Are you ready to learn?? New Batches Info

Introduction to Ansible. yench

Housekeeping. Timing Breaks Takeaways

TACKLING BIG-IP BLUE-GREEN DEPLOYMENTS IN PRIVATE CLOUD USING F5 & VMWARE ANSIBLE MODULES

Infrastructure Configuration and Management with Ansible. Kaklamanos Georgios

Ansible Essentials 5 days Hands on

SELF-SERVICE IT WITH ANSIBLE TOWER & MICROSOFT AZURE. Chris Houseknecht Dave Johnson. June #redhat #rhsummit

Sanjay Shitole, Principle Solutions Engineer

ansible-workshop Documentation

Ansible for DevOps. Server and configuration management for humans. Jeff Geerling ISBN Jeff Geerling

Modern Provisioning and CI/CD with Terraform, Terratest & Jenkins. Duncan Hutty

GIVING POWER TO THE PEOPLE With General Mills

mastering ansible A622DFD780311BCF8921DE033F8C7977 Mastering Ansible 1 / 6

Provisioning MongoDB with Vagrant and Chef. Nathen Harvey Web Opera=ons, CustomInk

Zero Touch Provisioning of NIOS on Openstack using Ansible

ABOUT INTRODUCTION ANSIBLE END Ansible Basics Oleg Fiksel Security CSPI GmbH OpenRheinRuhr 2015

Ansible and Ansible Tower by Red Hat

Ansible - Automation for Everyone!

Ansible Tower Quick Setup Guide

The recommended way for deploying a OSS DC/OS cluster on GCE is using Terraform.

Ansible Hands-on Introduction

Infrastructure as Code CS398 - ACC

Choosing an orchestration tool: Ansible and Salt. Ken Wilson Opengear. Copyright 2017 Opengear, Inc. 1

ANSIBLE AUTOMATION AT TJX

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other

Ansible. -- Make it so

goodplay Documentation

HASHICORP TERRAFORM AND RED HAT ANSIBLE AUTOMATION Infrastructure as code automation

AUTOMATING THE ENTERPRISE WITH ANSIBLE. Dustin Boyd Solutions Architect September 12, 2017

MULTI CLOUD AS CODE WITH ANSIBLE & TOWER

Behind the scenes of a FOSS-powered HPC cluster at UCLouvain

Ansible Tower Quick Setup Guide

Be smart. Think open source.

Automation and configuration management across hybrid clouds with CloudForms, Satellite 6, Ansible Tower

Malaysian Open Source Conference (The) Multi Facets of the Open Source Tools. Muhammad Najmi Ahmad Zabidi

Enhancing Secrets Management in Ansible with CyberArk Application Identity Manager

Managing Microservices using Terraform, Docker, and the Cloud

AUTOMATION FOR EVERYONE Accelerating your journey to the Hybrid Cloud with Ansible Tower

Outernet L-band for Linux Documentation

Getting Started with Ansible for Linux on z David Gross

AGENTLESS ARCHITECTURE

ANSIBLE TOWER OVERVIEW AND ROADMAP. Bill Nottingham Senior Principal Product Manager

Unix for Software Developers

Webserver deployment on. Amazon Web Services using IAC tool Terraform

OPEN SOURCING ANSIBLE

Button Push Deployments With Integrated Red Hat Open Management

Dominating Your Systems Universe with Ansible Daniel Hanks Sr. System Administrator Adobe Systems Incorporated

Getting Started with Ansible - Introduction

INTRODUCTION CONTENTS BEGINNER S GUIDE: CONTROL WITH RED HAT ANSIBLE TOWER

MARCO MALAVOLTI

Infrastructure As Code. Managing BSD systems with Ansible. Overview. Introduction to Ansible

Building and Managing Clouds with CloudForms & Ansible. Götz Rieger Senior Solution Architect January 27, 2017

WHAT IS ANSIBLE AND HOW CAN IT HELP ME?

IAC on OpenStack (feat. ansible) 김용기부장 Sr. Solution Architect Red Hat

Transcription:

Infrastructure at your Service.

About me Infrastructure at your Service. Natascha Karfich Consultant +41 78 688 05 34 natascha.karfich@dbi-services.com Page 2

Who we are dbi services Experts At Your Service > Over 50 specialists in IT infrastructure > Certified, experienced, passionate Based In Switzerland > 100% self-financed Swiss company > Over CHF 8.4 mio. turnover Leading In Infrastructure Services > More than 150 customers in CH, D, & F > Over 50 SLAs dbi FlexService contracted Best Workplace in Switzerland 2017 Small Companies 20-49 employees Rank 7 dbi services is hiring (career@dbi-services.com) Page 3

Agenda 1. Our Example > vagrant up - that s all you have to do > What you ll get > What you need to prepare once > Start Demo 2. What is Vagrant > Vagrantfile configure Vagrant 3. What is Ansible > Ansible Playbook, Roles, Adhoc Commands 4. Dive into Demo Page 4

Our Example vagrant up - that s all you have to do > start using > Vagrant and Ansible > to get your Infrastructure up an running Page 5

Our Example What you ll get Ansible Mgmt. Node Inventory dbserver1 dbclient1 Playbook - name: Configure Oracle Linux 7 with Oracle Database 12 hosts: dbserver Virtual Servers CentOS 7.2 dbserver1 Oracle 12.1.0.2 DB CDB or non CDB Up and running dbclient1 Xserver, sqldeveloper Page 6

Our Example What you need to prepare once Linux host with > Oracle VM VirtualBox installed > Vagrant installed > Ansible installed > Network connection Your Binaries > Oracle binaries > dbi Management Kit (DMK) Download Example and try yourself https://github.com/nkadbi/oracle-db-12c-vagrant-ansible (slightly different example to install 2 DB'servers without dbi DMK Toolkit) Page 7

Our Example Start Demo start it now because it takes ~ 30 min vagrant up > Setup of two CentOS 7.2 Servers > Dbserver1: Configure Server for Oracle Installation ; create Oracle DB > Dbclient1 Install sqldeveloper on second server vagrant status # Wipe out everything: vagrant destroy Page 8

What is Vagrant? Vagrant > Open-source Tool > layer on top of some virtualization solution > automates reproducible creation of VMs > supports provisioning using scripts, Ansible, Puppet or Chef Install Vagrant, (and plugins) edit Vagrantfile -> choose your Virtual Box -> ready to start If you want to know more https://www.vagrantup.com/docs/getting-started/ https://en.wikipedia.org/wiki/vagrant_(software) Find existing boxes https://atlas.hashicorp.com/boxes/search Page 9

What is Ansible? Ansible https://www.ansible.com/how-ansible-works Ansible is a radically simple IT automation engine > Designed for multi-tier deployments since day one > uses SSH, with no agents or software installed on target systems. > Further Reading > Ansible: Up and Running, Lorin Hochstein > ISBN: 978-1-4919-1532-5 ; Ebook: 978-1-4919-1529-5 > Find Ansible code > on Ansible Galaxy https://galaxy.ansible.com/ > and GitHub https://github.com/ansible > Main repo, Core modules, Extra modules Page 10

What is Ansible? Complete Automation Page 11

What is Ansible Ansible Orchestration Ansible: Up and Running, Lorin Hochstein Page 12

Dive into Demo View log Vagrant configuration Ansible Configuration > Hostfile, groups > Look at playbook Check what we have got Discussion, Ideas, Questions Page 13

Configure Vagrant Vagrantfile > Choose BOX > Configure ssh connect to servers if you keep using the default insecure (!) key -> set to false. config.ssh.insert_key = false > Use plugin vagrant-hostmanager manages the hosts file on guest machines https://github.com/devopsgroup-io/vagrant-hostmanager config.hostmanager.enabled = true > Configure your VMs ( IP, Storage ) > Provisioning https://blog.dbi-services.com/part2-vagrant-up-get-your-oracleinfrastructure-up-an-running/ Oracle up and running using Vagrant and Ansible Page 14

Ansible playbook Playbooks are expressed in YAML format $ cat oracle-db.yml - name: Configure Oracle Linux 7 with Oracle Database 12c hosts: dbserver become: True vars_files: - secrets.yml roles: - role: disk_layout - role: linux_oracle - role: oracle_sw_install become_user: '{{ oracle_user }} - role: dbi_dmk become_user: '{{ oracle_user }}' - role: oracle_db_create become_user: '{{ oracle_user }}' Oracle up and running using Vagrant and Ansible Page 15

Ansible playbook looks like documented steps but also runs them : $ ansible-playbook oracle-db.yml --list-tasks playbook: oracle-db.yml play #1 (dbserver): Configure Oracle Linux 7 with Oracle Database 12c TAGS: [] tasks: linux-oracle : Install required packages TAGS: [] linux-oracle : Change kernel parameters TAGS: [] linux-oracle : Create groups TAGS: [] linux-oracle : Create user TAGS: [] linux-oracle : Create Oracle Base directory TAGS: [] oracle_sw_install : Copy and unzip Oracle Software files oracle_sw_install : Install Oracle Software TAGS: [] oracle_db_create : create database via dbca TAGS: [] Page 16

Ansible Commands #Gather Facts: ansible localhost m setup #Ansible adhoc commands ansible -m ping all ansible all -m command --args "uptime" ansible dbserver1 -a "systemctl status dbora.service" ansible dbserver1 -a "sudo systemctl stop dbora.service" ansible dbclient -m copy -a "src=hello dest=/tmp" ansible dbclient -a "cat /tmp/hello" # Ansible playbook ansible-playbook oracle-db.yml --list-hosts ansible-playbook oracle-db.yml --list-tasks # Documentation of modules ansible-doc service # use Ansible galaxy ansible-galaxy init newrole Page 17

Conclusion Pro & contra > Using Vagrant and Ansible you can easily automate the setup of your whole development infrastructure > there are already very good Ansible Playbooks also for Oracle DBs > https://github.com/cvezalis/oracledb-ansible (12c DB on Linux 7.1) > https://github.com/racattack/racattack-ansible-oracle > Use Ansible to gather facts, control services, change configuration, document your environment > There is still a lot of work left if you want to fully automate the setup of your productive environment > Depending on your needs there may be other possibilities which will better fit to your situation Page 18

Any questions? Please ask Infrastructure at your Service. Natascha Karfich Consultant +41 78 688 05 34 natascha.karfich@dbi-services.com We look forward to working with you! Page 19