File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Class: puppet::unicorn
2
2
#
3
3
# Parameters:
4
- # none
4
+ # - listen_address - IP for binding the nginx
5
5
#
6
6
# Actions:
7
7
# - Configures nginx and unicorn for puppet master use. Tested only on CentOS 7
10
10
# - nginx
11
11
#
12
12
# Sample Usage:
13
- # class {'puppet::unicorn':}
13
+ # class {'puppet::unicorn':
14
+ # listen_address => '10.250.250.1',
15
+ # }
14
16
#
15
17
# written by Tim 'bastelfreak' Meusel
16
18
# with big help from Rob 'rnelson0' Nelson
17
19
18
- class puppet::unicorn () {
20
+ class puppet::unicorn (
21
+ $listen_address = ' *' ,
22
+ ){
19
23
include nginx
20
24
# install unicorn
21
25
unless defined (Package[' ruby-devel' ]) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ server {
20
20
proxy_set_header X-Client-DN $ssl_client_s_dn;
21
21
proxy_set_header X-SSL-Subject $ssl_client_s_dn;
22
22
proxy_set_header X-SSL-Issuer $ssl_client_i_dn;
23
- listen * :8140 ssl;
23
+ listen <%= @listen_address %> :8140 ssl;
24
24
root /var/empty;
25
25
location / {
26
26
proxy_pass http://puppetmaster_unicorn;
You can’t perform that action at this time.
0 commit comments