pubsub:
- rainier.debian.org
- rapoport.debian.org
- puppetmaster:
- - handel.debian.org
qamaster:
- quantz.debian.org
rtmaster:
--- /dev/null
+classes:
+ - roles::puppetmaster
pluginsync=true
<%- end -%>
-<% if scope.function_has_role(['puppetmaster']) %>
+<% if classes.include?('puppetmaster') -%>
[master]
environmentpath=/srv/puppet.debian.org/stages
cadir = /var/lib/puppet/ssl/ca
ssh4allowed << %w{$HOST_DEBIAN_V4}
ssh6allowed << %w{$HOST_DEBIAN_V6}
end
- if scope.function_has_role(['puppetmaster']) then
+ if classes.include?('roles::puppetmaster') then
ssh4allowed << "82.195.75.75" # adayevskaya
ssh6allowed << "2001:41b8:202:deb:1b1b::75" # adayevskaya
end
# include roles
#
class roles {
-
- if has_role('puppetmaster') {
- include puppetmaster
- }
-
if has_role('muninmaster') {
include munin::master
}
--- /dev/null
+# our puppet master role
+class roles::puppetmaster {
+ include puppetmaster
+
+ ssh::authorized_key_collect { 'dsa_wiki_buildhost':
+ target_user => 'dsa',
+ collect_tag => 'puppetmaster',
+ }
+}
<% if scope.function_has_role(['muninmaster']) -%>
file=/etc/munin/munin.conf
<% end -%>
-<% if scope.function_has_role(['puppetmaster']) -%>
+<% if classes.include?('roles::puppetmaster') -%>
dir=8/etc/puppet
<% end -%>
<% if classes.include?('named::geodns') -%>
file=/etc/rsyncd/debian.secrets
-<% if scope.function_has_role(['puppetmaster']) %>
+<% if classes.include?('roles::puppetmaster') -%>
# Damn you rails apps and your shoddy packaging
file=/usr/share/puppet-dashboard/public/stylesheets