Multi-OS Version
This commit is contained in:
parent
15630ec66a
commit
b353f4410b
19 changed files with 3077 additions and 49 deletions
|
@ -10,11 +10,14 @@
|
|||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
|
||||
class rhizo_base::apt {
|
||||
include "rhizo_base::apt::$operatingsystem"
|
||||
}
|
||||
|
||||
class rhizo_base::apt::common {
|
||||
|
||||
class { '::apt': }
|
||||
apt::ppa { 'ppa:keithw/mosh': }
|
||||
apt::ppa { 'ppa:ondrej/php': }
|
||||
apt::ppa { 'ppa:ondrej/apache2': }
|
||||
|
||||
file { '/etc/apt/apt.conf.d/90unsigned':
|
||||
ensure => present,
|
||||
|
@ -34,6 +37,15 @@ class rhizo_base::apt {
|
|||
include_src => false,
|
||||
require => File['/etc/apt/apt.conf.d/90unsigned'],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class rhizo_base::apt::ubuntu inherits rhizo_base::apt::common {
|
||||
|
||||
apt::ppa { 'ppa:keithw/mosh': }
|
||||
apt::ppa { 'ppa:ondrej/php': }
|
||||
apt::ppa { 'ppa:ondrej/apache2': }
|
||||
|
||||
apt::source { 'icinga':
|
||||
location => 'https://packages.icinga.org/ubuntu',
|
||||
release => 'icinga-precise',
|
||||
|
@ -41,10 +53,29 @@ class rhizo_base::apt {
|
|||
key_source => 'https://packages.icinga.org/icinga.key',
|
||||
include_src => false,
|
||||
}
|
||||
|
||||
apt::source { 'nodesource':
|
||||
location => 'https://deb.nodesource.com/node_0.10',
|
||||
release => 'precise',
|
||||
repos => 'main',
|
||||
key_source => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class rhizo_base::apt::debian inherits rhizo_base::apt::common {
|
||||
|
||||
apt::source { 'freeswitch':
|
||||
location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/',
|
||||
release => 'jessie',
|
||||
repos => 'main',
|
||||
include_src => false,
|
||||
key_source => 'http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub'
|
||||
}
|
||||
|
||||
apt::source { 'nodesource':
|
||||
location => 'https://deb.nodesource.com/node_0.10',
|
||||
release => 'jessie',
|
||||
repos => 'main',
|
||||
key_source => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue