Skip to content

Instantly share code, notes, and snippets.

View autoscale-ansible
#
# 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
View juju-baremetal-openstack
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
View juju baremetal
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 Jun 13, 2017
selection of a web app install - OpenStack
View selection of a web app install.yaml
#
# 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 Jun 13, 2017
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.
View Ansible - to install apache
---
- 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 Jun 13, 2017
sample kickstart (anaconda) template
View 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 Jun 13, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.