code_sample's Introduction
Hello, As requested, I have written a short chef recipe that will allow you to do the following: 1. Install nginx. 2. Serve requests to nginx on port 8000. 3. Serve the content found here: https://github.com/puppetlabs/exercise-webpage 4. Remove the nginx "default" site symlink. All other nginx configuration has been left as the default as requested. If you wish to use this on more systems, the procedure is the following: 1. Clone this repo to your workstation. 2. Spin up new server running debian 8. 3. This server should have the "deploy" user created, and the public key on your workstation added to the deploy user's authorized_keys file. I would be happy to explain this procedure if desired. 4. Be sure to disable root login for ssh, and disable ssh password based login for security reasons. 5. Run visudo on your new server and add the following line to allow the deploy user to sudo without a password: deploy ALL=(ALL:ALL) NOPASSWD:ALL 6. Run ./deploy.sh deploy@<hostname> Please note that running this will restart nginx. (normally I would do a reload, but looks like there is a problem with systemd where this is not working) If you would like this script to work for red hat based systems, please let me know as it would only take a small amount of modification to our scripts to get that working as well. You should be all set! Please let me know if you have any questions here.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.