|
22 | 22 | # ['puppet_ssldir'] - Puppet sll directory
|
23 | 23 | # ['puppet_docroot'] - Doc root to be configured in apache vhost
|
24 | 24 | # ['puppet_vardir'] - Vardir used by puppet
|
25 |
| -# ['puppet_passenger_port'] - Port to configure passenger on default 8140 |
| 25 | +# ['puppet_proxy_port'] - Port to configure the proxy on - default 8140 |
26 | 26 | # ['puppet_master_package'] - Puppet master package
|
27 | 27 | # ['puppet_master_service'] - Puppet master service
|
28 | 28 | # ['version'] - Version of the puppet master package to install
|
|
32 | 32 | # ['puppetdb_startup_timeout'] - The timeout for puppetdb
|
33 | 33 | # ['dns_alt_names'] - Comma separated list of alternative DNS names
|
34 | 34 | # ['digest_algorithm'] - The algorithm to use for file digests.
|
35 |
| -# ['webserver'] - install 'nginx' (with unicorn) or 'httpd' (with passanger) |
| 35 | +# ['webserver'] - install 'nginx' (with unicorn) or 'httpd' (with passenger) - httpd is default |
| 36 | +# ['listen_address'] - IP for binding the webserver, defaults to * |
36 | 37 | #
|
37 | 38 | # Requires:
|
38 | 39 | #
|
|
73 | 74 | $puppet_ssldir = $::puppet::params::puppet_ssldir,
|
74 | 75 | $puppet_docroot = $::puppet::params::puppet_docroot,
|
75 | 76 | $puppet_vardir = $::puppet::params::puppet_vardir,
|
76 |
| - $puppet_passenger_port = $::puppet::params::puppet_passenger_port, |
| 77 | + $puppet_proxy_port = $::puppet::params::puppet_proy_port, |
77 | 78 | $puppet_master_package = $::puppet::params::puppet_master_package,
|
78 | 79 | $puppet_master_service = $::puppet::params::puppet_master_service,
|
79 | 80 | $version = 'present',
|
|
84 | 85 | $puppetdb_strict_validation = $::puppet::params::puppetdb_strict_validation,
|
85 | 86 | $dns_alt_names = ['puppet'],
|
86 | 87 | $digest_algorithm = $::puppet::params::digest_algorithm,
|
87 |
| -<<<<<<< HEAD |
88 |
| - $webserver = 'httpd', |
89 |
| - $manage_webserver = false, |
90 |
| -======= |
91 |
| - $manage_webserver = undef, |
92 |
| ->>>>>>> trying to remove service[http] deps |
| 88 | + $webserver = $::puppet::params::default_webserver, |
| 89 | + $listen_address = $::puppet::params::listen_address, |
93 | 90 | ) inherits puppet::params {
|
94 | 91 |
|
95 | 92 | anchor { 'puppet::master::begin': }
|
|
126 | 123 | }
|
127 | 124 | }
|
128 | 125 | case $webserver {
|
129 |
| - httpd: { |
| 126 | + nginx: { |
130 | 127 | Anchor['puppet::master::begin'] ->
|
131 |
| - class {'puppet::passenger': |
132 |
| - puppet_passenger_port => $puppet_passenger_port, |
133 |
| - puppet_docroot => $puppet_docroot, |
134 |
| - apache_serveradmin => $apache_serveradmin, |
135 |
| - puppet_conf => $::puppet::params::puppet_conf, |
136 |
| - puppet_ssldir => $puppet_ssldir, |
137 |
| - certname => $certname, |
138 |
| - conf_dir => $::puppet::params::confdir, |
139 |
| - dns_alt_names => join($dns_alt_names,','), |
| 128 | + class {'puppet::unicorn': |
| 129 | + listen_address => $listen_address, |
| 130 | + puppet_proxy_port => $puppet_proxy_port, |
140 | 131 | } ->
|
141 | 132 | Anchor['puppet::master::end']
|
142 | 133 | }
|
143 |
| - nginx: { |
| 134 | + default: { |
144 | 135 | Anchor['puppet::master::begin'] ->
|
145 |
| - class {'puppet::unicorn':} -> |
| 136 | + class {'puppet::passenger': |
| 137 | + puppet_proxy_port => $puppet_proxy_port, |
| 138 | + puppet_docroot => $puppet_docroot, |
| 139 | + apache_serveradmin => $apache_serveradmin, |
| 140 | + puppet_conf => $::puppet::params::puppet_conf, |
| 141 | + puppet_ssldir => $puppet_ssldir, |
| 142 | + certname => $certname, |
| 143 | + conf_dir => $::puppet::params::confdir, |
| 144 | + dns_alt_names => join($dns_alt_names,','), |
| 145 | + } -> |
146 | 146 | Anchor['puppet::master::end']
|
147 | 147 | }
|
| 148 | + |
148 | 149 | }
|
149 | 150 | service { $puppet_master_service:
|
150 | 151 | ensure => stopped,
|
|
0 commit comments