Copy the Ini file into your home folder and execute this from CLI
Input:
ansible-playbook -i inv mapper.yml -v --extra-vars "pattern=port"
Output:
Using /etc/ansible/ansible.cfg as config file
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Dummy Vagrantfile | |
| VAGRANTFILE_API_VERSION = "2" | |
| BOX_MEM = ENV['BOX_MEM'] || "1024" | |
| BOX_CORE = ENV['BOX_CORE'] || "1" | |
| BOX_NAME = ENV['BOX_NAME'] || "nrel/CentOS-6.5-x86_64" |
| from multiprocessing import Pool | |
| def f(x): | |
| # Put any cpu (only) consuming operation here. I have given 1 below - | |
| while True: | |
| x * x | |
| # decide how many cpus you need to load with. | |
| no_of_cpu_to_be_consumed = 1 |
| #!/bin/bash | |
| # | |
| # backup Startup script for the workshop | |
| # | |
| # chkconfig: 24 86 15 | |
| # description: awakes a workshop script | |
| # processname: backup | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: backup |
| require 'find' | |
| require 'fileutils' | |
| module Puppet::Parser::Functions | |
| newfunction(:copy_config_files) do |args| | |
| function_notice(["Using copy_config_files script..."]) | |
| ## Get all files with extension as follows | |
| config_files = [] | |
| Find.find(args[1]) do |path| | |
| config_files << path if path =~ /.*\.template$/ |
Copy the Ini file into your home folder and execute this from CLI
Input:
ansible-playbook -i inv mapper.yml -v --extra-vars "pattern=port"
Output:
Using /etc/ansible/ansible.cfg as config file
| #!/usr/bin/python | |
| import json | |
| import requests | |
| import argparse | |
| import ConfigParser | |
| import random | |
| import re | |
| from os.path import realpath | |
| from os.path import dirname | |
| import os |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| import -window root /tmp/screenshot.png | |
| convert /tmp/screenshot.png -spread 6 /tmp/screenshotblur.png | |
| rm /tmp/screenshot.png | |
| i3lock -i /tmp/screenshotblur.png |
| ➜ mongodb-apb git:(master) oc logs -f apb-run-provision-mongodb-apb6ncsp -n mongodb-01 | |
| + [[ provision --extra-vars {"MONGODB_ADMIN_PASSWORD": "admin", "MONGODB_DATA_STORAGE_SIZE": 1, "MONGODB_VERSION": "3.4", "MONGODB_MEMORY_LIMIT": "512Mi", "_apb_plan_id": "ephemeral", "namespace": "mongodb-01", "MONGODB_PASSWORD": "password", "MONGODB_USER": "username", "MONGODB_IMAGE_TAG": "latest", "MONGODB_DATABASE": "sampledb", "USE_UPSTREAM_IMAGES": false} == *\s\2\i\/\a\s\s\e\m\b\l\e* ]] | |
| + ACTION=provision | |
| + shift | |
| + playbooks=/opt/apb/actions | |
| + CREDS=/var/tmp/bind-creds | |
| + TEST_RESULT=/var/tmp/test-result | |
| + whoami | |
| + '[' -w /etc/passwd ']' | |
| ++ id -u |