# Puppet Class: php::repo::suse

Defined in:
  manifests/repo/suse.pp

## Overview

Configure suse repo

=== Parameters

[reponame] Name of the Zypper repository

[baseurl] Base URL of the Zypper repository

Parameters:

- reponame (`Any`) (defaults to: `'mayflower-php56'`)
- baseurl (`Any`) (defaults to: `'http://download.opensuse.org/repositories/home:/mayflower:/php5.6_based/SLE_11_SP3/'`)

    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    # File 'manifests/repo/suse.pp', line 11

    class php::repo::suse (
      $reponame = 'mayflower-php56',
      $baseurl  = 'http://download.opensuse.org/repositories/home:/mayflower:/php5.6_based/SLE_11_SP3/',
    ) {
      zypprepo { $reponame:
        baseurl     => $baseurl,
        enabled     => 1,
        autorefresh => 1,
      }
      ~> exec { 'zypprepo-accept-key':
        command     => 'zypper --gpg-auto-import-keys update -y',
        path        => '/usr/bin:/bin',
        refreshonly => true,
      }
    }