Posts

Showing posts from May, 2017

Openstack instance deployment using HOT {Heat Orchestration Template} Part-I

Image
HOT is a new template format meant to orchestrate the Openstack platform as its reliable and templates are defined in YAML and follow the structure outlined below: heat_template_version: 2015-10-15 description:   # a description of the template parameter_groups:   # a declaration of input parameter groups and order parameters:   # declaration of input parameters resources:   # declaration of template resources outputs:   # declaration of output parameters conditions:   # declaration of conditions Important keywords to write a HOT {Heat Orchestration Template} templates are as :   heat_template_version   description   parameter_groups   parameters   resources   outputs   conditions heat_template_version: This key with value 2015-10-15 (or a later date) indicates that the YAML document is a HOT template of the specified version. description: This optio...

VNC Configuration using Ansible in CentOS 7

1. Install epel repo on CentOS 7 system:   # yum install epel-release -y 2. Install ansible using yum:   # yum install ansible -y 3. Go to '/etc/ansible/roles/' directory and run the below command to create the skeleton directory structure:   # ansible-galaxy init vnc7 --offline   # tree vnc7          vnc7     ├── defaults     │   └── main.yml     ├── files     ├── handlers     │   └── main.yml     ├── meta     │   └── main.yml     ├── README.md     ├── tasks     │   └── main.yml     ├── tests     │   ├── inventory     │   └── test.yml     └── vars         └── main.yml 4. Create the service file to allow 'root' user to access the vncserver using port 5901.    In "/etc/ansible/roles/vnc7/files/" directory create a ...

LVM Configuration using Ansible in CentOS 7

1. Install epel repo on CentOS 7 system:   # yum install epel-release -y 2. Install ansible using yum:   # yum install ansible -y   3. Open '/etc/ansible/hosts' file and make a group called 'dbhosts' to add two hosts in it:   # vi  /etc/ansible/hosts   [dbhosts]    host1.example.com    host2.example.com  4. Configure passwordless ssh to both host1 & host2 from ansible server:   # ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ce:7d:fd:65:4e:61:4e:a9:09:61:90:d2:75:1b:d1:1d root@server.example.com The key's randomart image is: +--[ RSA 2048]----+ |        ..o. +oEo| |       . o. . o..| | ...