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 (String[1]) (defaults to: 'mayflower-php56')
  • baseurl (String[1]) (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 (
  String[1] $reponame = 'mayflower-php56',
  String[1] $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,
  }
}