File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,19 @@ def build_url(platform)
64
64
on host , 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
65
65
end
66
66
# install_puppet
67
- if host [ 'platform' ] =~ %r{el-(5|6|7)}
67
+ if host [ 'platform' ] =~ %r{el-(5|6|7|8 )}
68
68
relver = Regexp . last_match ( 1 )
69
69
on host , "rpm -ivh #{ build_url ( 'el' ) } #{ relver } .noarch.rpm"
70
70
on host , 'yum install -y puppetserver'
71
71
on host , '/opt/puppetlabs/bin/puppetserver ca setup'
72
+
73
+ # TODO: we should probably be using the relatively new postgresql
74
+ # module settings manage_dnf_module on el8 when we are managing the postgresql
75
+ # database
76
+ if relver == "8"
77
+ on host , "dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
78
+ on host , "dnf -qy module disable postgresql"
79
+ end
72
80
elsif host [ 'platform' ] =~ %r{fedora-(\d +)}
73
81
relver = Regexp . last_match ( 1 )
74
82
on host , "rpm -ivh #{ build_url ( 'fedora' ) } #{ relver } .noarch.rpm"
You can’t perform that action at this time.
0 commit comments