move apt repos from ff_gw::apt to ff_gw::sysadmin

This commit is contained in:
Martin Schütte 2014-05-19 20:08:15 +02:00
parent 9714d1ef05
commit 8102574b11
2 changed files with 23 additions and 23 deletions

View file

@ -1,6 +1,4 @@
class ff_gw($ff_net, $ff_mesh_net, $ff_as, $mesh_mac, $gw_ipv4, $gw_ipv6, $secret_key, $vpn_ca_crt, $vpn_usr_crt, $vpn_usr_key, $dhcprange_start, $dhcprange_end, $gw_do_ic_peering = false) { class ff_gw($ff_net, $ff_mesh_net, $ff_as, $mesh_mac, $gw_ipv4, $gw_ipv6, $secret_key, $vpn_ca_crt, $vpn_usr_crt, $vpn_usr_key, $dhcprange_start, $dhcprange_end, $gw_do_ic_peering = false) {
class { 'ff_gw::apt': }
->
class { 'ff_gw::software': } class { 'ff_gw::software': }
-> ->
class { 'ff_gw::fastd': class { 'ff_gw::fastd':
@ -40,26 +38,6 @@ class ff_gw($ff_net, $ff_mesh_net, $ff_as, $mesh_mac, $gw_ipv4, $gw_ipv6, $secre
} }
} }
class ff_gw::apt() {
class { '::apt':
always_apt_update => true
}
# batman repo
apt::source { 'universe-factory':
location => 'http://repo.universe-factory.net/debian/',
release => 'sid',
repos => 'main',
key => '16EF3F64CB201D9C',
key_server => 'pool.sks-keyservers.net',
}
# bird repo
apt::source { 'bird-network':
location => 'http://bird.network.cz/debian/',
release => 'wheezy',
repos => 'main',
}
}
class ff_gw::software { class ff_gw::software {
package { package {
'batctl': 'batctl':

View file

@ -1,5 +1,7 @@
# kitchen sink class for various small settings # kitchen sink class for various small settings
class ff_gw::sysadmin($zabbixserver = '127.0.0.1', $muninserver = '127.0.0.1', $sethostname = false, $setip = false, $accounts = {}) { class ff_gw::sysadmin($zabbixserver = '127.0.0.1', $muninserver = '127.0.0.1', $sethostname = false, $setip = false, $accounts = {}) {
# first of all: fix my hostname
if $sethostname and $setip { if $sethostname and $setip {
# set system hostname # set system hostname
class { 'ff_gw::sysadmin::hostname': class { 'ff_gw::sysadmin::hostname':
@ -8,13 +10,33 @@ class ff_gw::sysadmin($zabbixserver = '127.0.0.1', $muninserver = '127.0.0.1', $
} }
} }
# next important thing: set up apt repositories
#
class { '::apt':
always_apt_update => true
}
# use backports repo # use backports repo
apt::source { 'wheezy-backports': apt::source { 'wheezy-backports':
location => 'http://ftp.de.debian.org/debian/', location => 'http://ftp.de.debian.org/debian/',
release => 'wheezy-backports', release => 'wheezy-backports',
repos => 'main', repos => 'main',
} }
# some more packages # batman repo
apt::source { 'universe-factory':
location => 'http://repo.universe-factory.net/debian/',
release => 'sid',
repos => 'main',
key => '16EF3F64CB201D9C',
key_server => 'pool.sks-keyservers.net',
}
# bird repo // TODO: no PGP key
apt::source { 'bird-network':
location => 'http://bird.network.cz/debian/',
release => 'wheezy',
repos => 'main',
}
# then install some basic packages
package { package {
['vim-nox', 'git', 'etckeeper', 'pv', 'curl', 'atop', ['vim-nox', 'git', 'etckeeper', 'pv', 'curl', 'atop',
'screen', 'tcpdump', 'rsync', 'file']: 'screen', 'tcpdump', 'rsync', 'file']: