File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 121
121
}
122
122
}
123
123
case $webserver {
124
- httpd: {
124
+ nginx: {
125
+ Anchor[' puppet::master::begin' ] ->
126
+ class {'puppet::unicorn' :} ->
127
+ Anchor[' puppet::master::end' ]
128
+ }
129
+ default: {
125
130
Anchor[' puppet::master::begin' ] ->
126
131
class {'puppet::passenger' :
127
132
puppet_passenger_port => $puppet_passenger_port ,
135
140
} ->
136
141
Anchor[' puppet::master::end' ]
137
142
}
138
- nginx: {
139
- Anchor[' puppet::master::begin' ] ->
140
- class {'puppet::unicorn' :} ->
141
- Anchor[' puppet::master::end' ]
142
- }
143
+
143
144
}
144
145
service { $puppet_master_service:
145
146
ensure => stopped,
Original file line number Diff line number Diff line change 24
24
}
25
25
exec {'systemd-reload' :
26
26
command => ' /usr/bin/systemctl daemon-reload' ,
27
- refreshonly => ' true' ,
27
+ refreshonly => true ,
28
28
notify => Service[' unicorn-puppetmaster' ],
29
29
}
30
30
unless defined (Service[' unicorn-puppetmaster' ]) {
39
39
content => template (' puppet/puppetmaster' ),
40
40
} ->
41
41
file {'enable-puppetmaster-vhost' :
42
- path => ' /etc/nginx/sites-enabled/puppetmaster' ,
43
42
ensure => ' link' ,
43
+ path => ' /etc/nginx/sites-enabled/puppetmaster' ,
44
44
target => ' /etc/nginx/sites-available/puppetmaster' ,
45
45
notify => Service[' nginx' ],
46
46
}
You can’t perform that action at this time.
0 commit comments