File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
acceptance/suites/pre_suite/foss Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 10
10
on ( master , "rm -f #{ sitepp } " )
11
11
end
12
12
13
+ step 'Update Ubuntu 18 package repo' do
14
+ if master . platform =~ /ubuntu-18/
15
+ # bionic is EOL, so get postgresql from the archive
16
+ on master , 'echo "deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main" >> /etc/apt/sources.list'
17
+ on master , 'curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -'
18
+ on master , 'apt update'
19
+ end
20
+ end
21
+
13
22
step 'Install Puppet nightly repo' do
14
23
install_puppetlabs_release_repo_on ( master , 'puppet7-nightly' )
15
24
end
23
32
end
24
33
25
34
step 'Configure PuppetDB via site.pp' do
35
+ manage_package_repo = ! master . platform . match? ( /ubuntu-18/ )
26
36
create_remote_file ( master , sitepp , <<SITEPP )
27
37
node default {
28
38
class { 'puppetdb':
29
- manage_firewall => false,
39
+ manage_firewall => false,
40
+ manage_package_repo => #{ manage_package_repo } ,
30
41
}
31
42
32
43
class { 'puppetdb::master::config':
You can’t perform that action at this time.
0 commit comments