Code Monkey home page Code Monkey logo

ansible-playbook-generator-ui's Introduction

Ansible Playbook Generator Angular UI

Before starting, for details on Ansible Docs, refer to Ansible Docs

This project was generated with Angular CLI version 8.3.29.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Overview

The idea is to build a single production grade Angular UI with the following

  • Ability to generate Ansible Playbook instead of coding the YAML

Web App

Deployed Here on Google Cloud Platform - Kubernetes Cluster (Deprecated)

Video Sample

Watch the video

Motivation

To avoid the pain points of

  • Manually taking care of indentation or special characters.
  
  • Ease of interaction with UI technologies like Angular

Tech / Framework used

  --> Docker Image to host the Angular app. 
  			
  --> Angular 8

Dependencies

  1. Ansible Docs Boot
  2. Ansible Playbook JSON 2 YAML

Containerization CI (Continuous Integration)

CI Provider Status
Docker Docker
Docker Image CI Docker Image CI

Docker Image published to DockerHub here

Image is equipped with production ready Nginx

To pull the image :

docker pull zzzmahesh/ansible-playbook-generator-ui

Run Docker Compose

Clone the repository to your local.

git clone https://github.com/maheshyaddanapudi/ansible-playbook-generator-ui.git

Verify if tha git submodules ansible-docs-boot and ansible-playbook-json2yaml have corresponding Dockerfile inside the respective folders. If not, use the below command to link and checkout

git submodule add -b main -f https://github.com/maheshyaddanapudi/ansible-docs-boot
git submodule add -b main -f https://github.com/maheshyaddanapudi/ansible-playbook-json2yaml

To run the docker-compose : For ansible-docs-boot and ansible-playbook-json2yaml into different containters, using their corresponding docker images.

docker-compose build
docker-compose up or docker-compose up -d (For deamonizing the processes)

Once all containers are started successfully, the "docker ps" output should look something similar to below.

CONTAINER ID   IMAGE                                  COMMAND                  CREATED          STATUS          PORTS                                     NAMES
8898cad78b57   ansible-playbook-generator-ui:latest   "/docker-entrypoint.…"   13 minutes ago   Up 13 minutes   0.0.0.0:80->80/tcp                        ansible-playbook-generator-ui_ansible-playbook-generator-ui_1
6d11bf56c037   ansible-playbook-json2yaml             "/entrypoint.sh /sta…"   26 minutes ago   Up 13 minutes   80/tcp, 443/tcp, 0.0.0.0:5000->5000/tcp   ansible-playbook-generator-ui_ansible-playbook-json2yaml_1
1fdba166d095   ansible-docs-boot                      "/bin/bash /appln/sc…"   26 minutes ago   Up 13 minutes   0.0.0.0:8080->8080/tcp                    ansible-playbook-generator-ui_ansible-docs-boot_1

Access the UI --> http://localhost

Run Docker Compose - Pre-Built Images

 docker-compose -f docker-compose-suite.yml up -d

Once all containers are started successfully, the "docker ps" output should look something similar to below.

CONTAINER ID   IMAGE                                  COMMAND                  CREATED          STATUS          PORTS                                     NAMES
8898cad78b57   ansible-playbook-generator-ui:latest   "/docker-entrypoint.…"   13 minutes ago   Up 13 minutes   0.0.0.0:80->80/tcp                        ansible-playbook-generator-ui_ansible-playbook-generator-ui_1
6d11bf56c037   ansible-playbook-json2yaml             "/entrypoint.sh /sta…"   26 minutes ago   Up 13 minutes   80/tcp, 443/tcp, 0.0.0.0:5000->5000/tcp   ansible-playbook-generator-ui_ansible-playbook-json2yaml_1
1fdba166d095   ansible-docs-boot                      "/bin/bash /appln/sc…"   26 minutes ago   Up 13 minutes   0.0.0.0:8080->8080/tcp                    ansible-playbook-generator-ui_ansible-docs-boot_1

Access the UI --> http://localhost

Run : Angular

	cd <to project root folder>
	
Below command will start the application
	ng serve

Application URLs

	http://localhost:4200 - To access Home Page

Run ansible Boot : Docker

To run the container :

docker run --name ansible-playbook-generator-ui -p 80:80 -d zzzmahesh/ansible-playbook-generator-ui:latest

ansible-playbook-generator-ui's People

Contributors

maheshyaddanapudi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-playbook-generator-ui's Issues

Unable to run

It is getting the following error while running ( ng serve)
Your global Angular CLI version (15.0.4) is greater than your local version (8.3.29). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
10% building 4/4 modules 0 active(node:18256) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)
i 「wds」: Project is running at http://localhost:4200/webpack-dev-server/
i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html
10% building 4/5 modules 1 active ...ible-playbook-generator-ui-main\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-nodenode:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:412:16)
at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:444:10
at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:320:13
at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:203:19
at VirtualFileSystemDecorator.readFile (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules@ngtools\webpack\src\virtual_file_system_decorator.js:46:13)
at processResource (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
at iteratePitchingLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
at runLoaders (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
at NormalModule.doBuild (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:292:3)
at NormalModule.build (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\NormalModule.js:438:15)
at Compilation.buildModule (E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:702:10)
at E:\karthi\study\ansible-playbook-generator-ui-main\node_modules\webpack\lib\Compilation.js:944:14 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

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.