File tree 8 files changed +57
-10
lines changed
8 files changed +57
-10
lines changed Original file line number Diff line number Diff line change @@ -123,4 +123,15 @@ Vagrant.configure("2") do |config|
123
123
provider . vm . box_url = CENTOS_9_BOX_URL
124
124
end
125
125
end
126
+
127
+ config . vm . define "repo-deb" do |override |
128
+ override . vm . hostname = "repo-deb"
129
+ override . vm . box = "centos/stream9"
130
+
131
+ override . vm . provider "libvirt" do |libvirt , provider |
132
+ libvirt . memory = "2048"
133
+ libvirt . machine_virtual_size = 40
134
+ provider . vm . box_url = CENTOS_9_BOX_URL
135
+ end
136
+ end
126
137
end
Original file line number Diff line number Diff line change 1
1
---
2
2
stable_release : ' 3.11'
3
3
profiles::web::stable : ' %{alias("stable_release")}'
4
+ profiles::repo::deb::stable : ' %{alias("stable_release")}'
4
5
5
6
backup_servicename : ' backups.theforeman.org'
6
7
backup_username : ' backup-%{facts.networking.hostname}'
Original file line number Diff line number Diff line change @@ -22,4 +22,6 @@ profiles::jenkins::node::swap_size_mb: 0
22
22
23
23
profiles::web::https : false
24
24
25
+ profiles::repo::deb::https : false
26
+
25
27
redmine::https : false
Original file line number Diff line number Diff line change 41
41
include profiles::base
42
42
include profiles::web
43
43
}
44
+
45
+ node /^repo-deb\d+\.[a-z]+\.theforeman\.org$/ {
46
+ include profiles::base
47
+ include profiles::repo::deb
48
+ }
Original file line number Diff line number Diff line change 1
1
# @summary install freight
2
2
class freight {
3
- if $facts [' os' ][' family' ] == ' Debian' {
4
- apt::source { 'freight' :
5
- location => ' http://build.openvpn.net/debian/freight_team' ,
6
- repos => ' main' ,
7
- key => {
8
- id => ' 30EBF4E73CCE63EEE124DD278E6DA8B4E158C569' ,
9
- source => ' https://swupdate.openvpn.net/repos/repo-public.gpg' ,
10
- },
11
- before => Package[' freight' ],
12
- }
3
+ if $facts [' os' ][' family' ] == ' RedHat' {
4
+ include epel
5
+ Class[' Epel' ] -> Package[' freight' ]
13
6
}
14
7
15
8
package { 'freight' :
Original file line number Diff line number Diff line change 64
64
if $facts [' os' ][' family' ] != ' RedHat' or $facts [' os' ][' release' ][' major' ] != ' 7' {
65
65
include apache::mod::expires
66
66
}
67
+ include apache::mod::alias
68
+ include apache::mod::autoindex
69
+ include apache::mod::dir
70
+ include apache::mod::mime
67
71
68
72
web::vhost { $vhost:
69
73
docroot => $webdir ,
Original file line number Diff line number Diff line change
1
+ # @summary A profile for the debian repo machines
2
+ #
3
+ # @param stable
4
+ # Latest release that users expect
5
+ #
6
+ # @param https
7
+ # Whether to enable HTTPS. This is typically wanted but can only be enabled
8
+ # in a 2 pass setup. First Apache needs to run for Letsencrypt to function.
9
+ # Then Letsencrypt can be enabled. Also useful to turn off in test setups.
10
+ class profiles::repo::deb (
11
+ String[1] $stable,
12
+ Boolean $https = true ,
13
+ ) {
14
+ class { 'web' :
15
+ https => $https ,
16
+ }
17
+ contain web
18
+
19
+ contain web::vhost::archivedeb
20
+
21
+ class { 'web::vhost::deb' :
22
+ stable => $stable ,
23
+ }
24
+ contain web::vhost::deb
25
+
26
+ contain web::vhost::stagingdeb
27
+ }
Original file line number Diff line number Diff line change 25
25
node /^discourse.*/ {
26
26
include profiles::discourse
27
27
}
28
+
29
+ node /^repo-deb.*/ {
30
+ include profiles::repo::deb
31
+ }
You can’t perform that action at this time.
0 commit comments