Skip to content

Instantly share code, notes, and snippets.

#
# Ansible playbook definition for APP layer deployment.
# It deploys 4-to-6 APP servers, in different AZ
# All needed variables in "vars" section
# Reynaldo R. Martinez P.
# E-Mail tigerlinux at gmail dot com
#
#
---
- name: Create APP layer
juju status
Model Controller Cloud/Region Version
default oscontroller01 oscloud01/casitalab01 2.0.1.1
App Version Status Scale Charm Store Rev OS Notes
mysql unknown 1 mysql jujucharms 55 ubuntu
wordpress unknown 1 wordpress jujucharms 4 ubuntu exposed
Unit Workload Agent Machine Public address Ports Message
juju status
Model Controller Cloud/Region Version
default cloud-manual-01 manual 2.0.0
App Version Status Scale Charm Store Rev OS Notes
mysql unknown 1 mysql jujucharms 55 ubuntu
wordpress unknown 1 wordpress jujucharms 4 ubuntu exposed
Unit Workload Agent Machine Public address Ports Message
mysql/0* unknown idle 1 192.168.56.66 3306/tcp
@dvirperetz
dvirperetz / selection of a web app install.yaml
Created June 13, 2017 15:32
selection of a web app install - OpenStack
#
# This is a hello world HOT template with app install selection
#
heat_template_version: 2015-04-30
description: >
Hello world HOT template that just defines a single server.
Contains just base features to verify base HOT support.
parameters:
@dvirperetz
dvirperetz / Ansible - to install apache
Created June 13, 2017 15:30
This Ansible playbook will detect if the server is running a Red Hat or Debian based distribution, and then take the proper steps in order to install apache on the server.
---
- hosts: webservers
user: ansible
become: yes
become_method: sudo
tasks:
- name: Install apache, in a yum-based machine
yum:
name: httpd
state: installed
@dvirperetz
dvirperetz / sample kickstart (anaconda) template
Created June 13, 2017 15:29
sample kickstart (anaconda) template
################################################################################
# BASE INSTALLATION PARAMETERS
################################################################################
install
url --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=$infra
repo --name localupdates --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=$infra
lang en_US.UTF-8
keyboard us
# keyboard es
@dvirperetz
dvirperetz / 0_reuse_code.js
Created June 13, 2017 15:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console