Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidwinter/puppet-nginx
nginx module for puppet
https://github.com/davidwinter/puppet-nginx
Last synced: 1 day ago
JSON representation
nginx module for puppet
- Host: GitHub
- URL: https://github.com/davidwinter/puppet-nginx
- Owner: davidwinter
- Created: 2012-04-08T18:16:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-28T11:33:17.000Z (over 11 years ago)
- Last Synced: 2024-05-01T13:39:27.043Z (7 months ago)
- Language: Puppet
- Homepage:
- Size: 129 KB
- Stars: 9
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puppet-nginx
This puppet module aims to be lightweight and help you get an `nginx` virtual host up and running quickly. It was developed with `vagrant` in mind so that I could get a web environment up and running in as few lines as possible.
If you're looking for `php-fpm` functionallity too, check out my other module, [phpfpm](https://github.com/davidwinter/puppet-phpfpm), which includes a resource for adding virtual hosts to nginx.
## Install
With librarian-puppet, add the following to your Puppetfile:
mod 'nginx',
:git => 'git://github.com/davidwinter/puppet-nginx.git'Then run `librarian-puppet install`.
## Usage
nginx::vhost { 'your.domain.com':
root => '/path/to/docroot',
}That's it! If you was expecting more, this module probably isn't for you. Though, there are a few options:
nginx::vhost { 'my site':
ensure => present,
root => '/var/www',
priority => '3',
file => 'my-site',
server_name => 'my.site.com',
index => 'index.html',
template => 'myconfig/mysite.conf.erb',
}The `nginx` class can also be configured:
class { 'nginx':
ensure => present,
default_vhost => false,
}## Author
David Winter
## Licence
MIT