system-config/modules/asterisk/manifests/init.pp
Russell Bryant b0dee2a61e Ensure asterisknow-version is installed before asterisk
Change-Id: Ied523d40c9ec670f6ca1d0ca30adaa59b489e784
2013-07-18 14:44:51 -04:00

60 lines
1.6 KiB
Puppet

# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Class to configure asterisk on a CentOS node.
#
# == Class: asterisk
class asterisk (
) {
yumrepo { 'asteriskcurrent':
baseurl => 'http://packages.asterisk.org/centos/$releasever/current/$basearch/',
descr => 'Asterisk supporting packages produced by Digium',
enabled => 1,
gpgcheck => 0,
}
yumrepo { 'asterisk11':
baseurl => 'http://packages.asterisk.org/centos/$releasever/asterisk-11/$basearch/',
descr => 'Asterisk packages produced by Digium',
enabled => 1,
gpgcheck => 0,
require => Yumrepo['asteriskcurrent'],
}
package { 'asterisknow-version' :
ensure => present,
require => [
Yumrepo['asteriskcurrent'],
],
}
package { 'asterisk' :
ensure => present,
require => [
Yumrepo['asterisk11'],
Package['asterisknow-version'],
],
}
package { 'asterisk-sounds-moh-opsound-ulaw' :
ensure => present,
require => Yumrepo['asteriskcurrent'],
}
package { 'asterisk-sounds-core-en-ulaw' :
ensure => present,
require => Yumrepo['asteriskcurrent'],
}
}