Puppet Class: proxysql::repo

Defined in:
manifests/repo.pp

Summary

Setup the repository for proxysql

Overview



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/repo.pp', line 5

class proxysql::repo {

  case $facts['operatingsystem'] {
    'Debian', 'Ubuntu': {
      ensure_packages('lsb-release')

      include ::apt
      require ::apt::update
    }
    'CentOS', 'OracleLinux', 'RedHat', 'Scientific': {
      yumrepo { 'proxysql':
        baseurl  => 'http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/$releasever',
        descr    => 'ProxySQL YUM repository',
        enabled  => 1,
        gpgcheck => 1,
        gpgkey   => 'http://repo.proxysql.com/ProxySQL/repo_pub_key',
      }
    }
    default: {
      fail("${facts['operatingsystem']} is not supported.")
    }
  }

}