Code Monkey home page Code Monkey logo

ansible_terraform_azure's Introduction

Don't forget to smile - πŸ˜€ πŸ˜ƒ πŸ˜„ 😁 πŸ˜† 😊 πŸ˜‡ 😌 😍 😎 🀩

Node.js Weight TrackerπŸ₯³

This sample application demonstrates the following technologies.

  • hapi - a wonderful Node.js application framework
  • PostgreSQL - a popular relational database
  • Postgres - a new PostgreSQL client for Node.js
  • Vue.js - a popular front-end library
  • Bulma - a great CSS framework based on Flexbox
  • EJS - a great template library for server-side HTML templates

Requirements: πŸ‚ 🍁

Install and ConfigurationπŸŽ‹ πŸƒ

  1. Clone or download source files
  2. Run npm install to install dependencies
  3. If you don't already have PostgreSQL, set up using Docker
  4. Create a free Okta developer account and add a web application for this app
  5. Copy .env.sample to .env and change the OKTA_* values to your application
  6. Initialize the PostgreSQL database by running npm run initdb
  7. Run npm run dev to start Node.js

The associated blog post goes into more detail on how to set up PostgreSQL with Docker and how to configure your Okta account.


Ansible 🎍 πŸͺ΄

instalation ansible inside the conroler-ansible 🌻 πŸ€

  • $ sudo apt update
  • $ sudo apt install software-properties-common
  • $ sudo add-apt-repository --yes --update ppa:ansible/ansible
  • $ sudo apt install ansible
  • $ sudo nano /etc/ansible/hosts
    • add the webservers with their ip privates
  • $ ansible-inventory --list -y
  • $ ssh-keygen
  • $ ssh-copy-id -i ~/.ssh/id_rsa.pub user@privateip
  • $ ansible all -m ping -u username

instalation ansible inside the conroler-ansible inside [windows] 🌻 πŸ€

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1"

(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)

powershell.exe -ExecutionPolicy ByPass -File $file

##-------------------

winrm enumerate winrm/config/Listener

##-------------------

pip install "pywinrm>=0.3.0"


My code that build the infrastructure in azure using terraform 🌸

The Topology regarding the two environments: πŸ₯€

Staging 🌼

Screen Shot 2021-10-24 at 0 45 41

Production 🌷

  • The deferent between the staging and the production ... I've resize the VM (bigger).

Screen Shot 2021-10-24 at 0 48 46

Poc πŸƒ

Screen Shot 2021-10-24 at 3 47 02

Postgres 🌹

Screen Shot 2021-10-24 at 3 50 37

The results:🌷

Using terraform to build the infrastructure πŸ’

Using asible to the run the configuration 🌾

Screen Shot 2021-10-23 at 17 23 06

Screen Shot 2021-10-23 at 17 23 51

Production 🌴

Screen Shot 2021-10-23 at 16 45 22

Screen Shot 2021-10-23 at 16 46 49

Screen Shot 2021-10-23 at 16 47 55

Staging πŸ„

Screen Shot 2021-10-23 at 16 56 20

Screen Shot 2021-10-23 at 16 57 25

Screen Shot 2021-10-23 at 16 55 05

Poc πŸͺ΄

Screen Shot 2021-10-24 at 6 10 35

Thank you for your time πŸ’š !

ansible_terraform_azure's People

Contributors

shadibdair avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.