Author Archives: Roopendra - Page 10
Writing custom module in ansible
While Writing custom module in ansible in ansible you need to setup ansible ; If you are not aware from it you can follow step by step instruction in my…
Elasticsearch Features
Distributed and Highly Available Search Engine. Each index is fully sharded with a configurable number of shards. Each shard can have one or more replicas. Read / Search operations performed…
Getting started with Elasticsearch
What is Elasticsearch? Elasticsearch is a search server based on Lucene. It provides a distributed, multitenant-capable full-text search engine with a RESTful web interface and schema-free JSON documents. Elasticsearch is…
Index mysql table into elasticsearch
Index MySQL Data into Elasticsearch This article will demonstrate step by step guideline to index MySQL data into Elasticsearch. Until the Elasticsearch version we have different river was there to…
Variable of variable in ansible playbook
While developing Ansible playbook for my on project I have some one usecase regarding use variable of variable in ansible playbook. So I found some workaround as I described in…
Getting Started with Ansible
What is Ansible? Ansible is Simple IT automation tools that managing your server infrastructure, Including Code Deploys, Handling services on your remote server, Installations and configurations server. Here are some…
Count matching occurrences in php array
You can Count matching occurrences in php array using php array function array_count_values() Syntax: array array_count_values ( array $array ) array_count_values() returns an array using the values of array as keys…
Validate URL in PHP
You can validate URL in PHP using regular expression or using validate filters Validate URL in PHP using regular expression: Example:- <?php // Write you regular expression pattern to match…
Changes in PHP Ternary Operator since PHP 5.3
Changes in PHP ternary operator since PHP Till PHP $varName = ($cond) ? $cond : 'false'; From PHP $varName = ($cond) ? : 'false'; No need to write condition for…
Post JSON data via PHP cURL
Post JSON data via PHP cURL We can Post JSON data via PHP curl by using header Content-Type: application/json in CURLOPT_HTTPHEADER. Below is working code demonstration of PHP curl with…