This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# tasks file for flbonAWS | |
- name: "Installing haproxy" | |
package: | |
name: "haproxy" | |
state: present | |
- name: "Copying Template of Config file from the Controller System" | |
template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
gather_facts: no | |
vars_files: | |
- credential.yml | |
tasks: | |
- name: "boto3 installation" | |
pip: | |
name: "boto3" | |
state: present |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importing libraries | |
import pandas as pd | |
import numpy as np | |
from sklearn.linear_model import LinearRegression | |
import joblib as jb | |
data = pd.read_csv("Salary_Data.csv") | |
#data_head and data information | |
data.head() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
print `/usr/sbin/ifconfig`; | |
?> | |
</pre> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------------------------------- | |
# Example configuration for a possible web application. See the | |
# full configuration options online. | |
# | |
# https://www.haproxy.org/download/1.8/doc/configuration.txt | |
# | |
#--------------------------------------------------------------------- | |
#--------------------------------------------------------------------- | |
# Global settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lbport: 8080 | |
webserverport: 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: loadbalancer | |
vars_files: | |
- haproxyVars.yml | |
tasks: | |
- name: "Installing Package of HAProxy" | |
package: | |
name: "haproxy" | |
state: present | |
- name: "Copying Template of Config file from the Controller System" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: 192.168.56.104 | |
tasks: | |
- name: "Installing HTTPD Package" | |
package: | |
name: "httpd" | |
state: present | |
- name: "Creating an index file" | |
copy: | |
content: "<b>This is Static Regular HTTPD Automation</b>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: 192.168.56.105 | |
vars_files: | |
- slave_vars.yml | |
tasks: | |
- name: "Creating a directory" | |
file: | |
state: directory | |
path: "{{ directory_path }}" | |
- name: "Copying hdfs-site.xml" |
NewerOlder