File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
hieradata/environments/production/roles Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ profile::certbot::certificates:
6
6
- podcast.jquery.com
7
7
- demos.jquerymobile.com
8
8
- themeroller.jquerymobile.com
9
+ profile::notifier::tls_key_name : miscweb
9
10
profile::miscweb::default_certificate : miscweb
10
11
11
12
profile::miscweb::sites :
@@ -19,6 +20,7 @@ profile::miscweb::sites:
19
20
name : jquery/podcast.jquery.com
20
21
branch : main
21
22
webroot : /build_production
23
+ notifier : true
22
24
extra_config : |
23
25
# Compatibility with http://feeds.feedburner.com/jQueryPodcastShowNotes
24
26
rewrite ^/feed/?$ /feed/jQueryPodcastShowNotes.xml permanent;
Original file line number Diff line number Diff line change 49
49
path => " /srv/www/${fqdn} " ,
50
50
remote => " https://github.com/${site['repository']['name']}" ,
51
51
branch => $site [' repository' ][' branch' ],
52
- owner => ' root' ,
53
- group => ' root' ,
52
+ owner => ' www-data' ,
53
+ group => ' www-data' ,
54
+ }
55
+
56
+ if $site [' notifier' ] {
57
+ notifier::git_update { $fqdn:
58
+ github_repository => $site [' repository' ][' name' ],
59
+ listen_for => [{ branch => $site [' repository' ][' branch' ] }],
60
+ local_path => " /srv/www/${fqdn} " ,
61
+ local_user => ' www-data' ,
62
+ require => Git::Clone[$fqdn ],
63
+ }
54
64
}
55
65
56
66
nginx::site { $fqdn:
Original file line number Diff line number Diff line change 5
5
}],
6
6
webroot => Optional[String[1]],
7
7
extra_config => Optional[String[1]],
8
+ notifier => Optional[Boolean],
8
9
allow_php => Optional[Boolean],
9
10
php_env => Optional[Hash[String[1], String]],
10
11
certificate => Optional[String[1]],
Original file line number Diff line number Diff line change 2
2
class role::miscweb {
3
3
include profile::base
4
4
include profile::certbot
5
+ include profile::notifier
5
6
6
7
include profile::miscweb
7
8
}
You can’t perform that action at this time.
0 commit comments