Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praveen1664/praveenchefserver
This is a complete repo for chef server, chef client, application server, data server, data bags, environments, roles, cookbooks etc.
https://github.com/praveen1664/praveenchefserver
chef chef-cookbook chef-server cookbooks devops nginx round-robin ruby ruby-gem ruby-on-rails
Last synced: 2 months ago
JSON representation
This is a complete repo for chef server, chef client, application server, data server, data bags, environments, roles, cookbooks etc.
- Host: GitHub
- URL: https://github.com/praveen1664/praveenchefserver
- Owner: praveen1664
- Created: 2019-05-25T10:22:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-25T10:27:06.000Z (over 5 years ago)
- Last Synced: 2024-04-16T05:03:55.931Z (9 months ago)
- Topics: chef, chef-cookbook, chef-server, cookbooks, devops, nginx, round-robin, ruby, ruby-gem, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 1.61 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chef server repo for web server and app servers
##Task
a) Launch 3 separate linux nodes using the tool/distro of your choice
2 x application nodes
1 x web node
b) Using a configuration management tool (contractors MUST use Chef)Deploy the sample application to the application nodes
Install Nginx on the web node and balance requests to the application nodes in a round-robin fashion
Demonstrate the round-robin mechanism is working correctly## Roles-
1. web-server
2. backend-server
## cookbooks -
1. apt
2. nginx
3. go
##As per architecture, we have 3 nodes – 1 Webserver (nginx) and two backend servers.Servers are attached with specific roles.
1. web-server role includes – apt and nginx cookbook
2. backend-server role includes – apt and go cookbookApt cookbook is used to run update on each node
nginix cookbook installs ingnx and loads configuration file i.e. nginx.conf from its default files and loads at /etc/nginx/ and restarts nginx server. As per nginx configuration round-robin mechanism has been a default and when we refresh webpage, it switches from one app server to other one by one.
go cookbook installs go in the node and loads executable go file i.e. new in default files and executes it in background.
executable file can be created using build tools or it can be done from chef as well, depending upon requirements