Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Bug 1394481 - allow bacula to mdc1 puppet master. r=dividehex
Browse files Browse the repository at this point in the history
  • Loading branch information
davehouse committed Sep 14, 2017
1 parent 4bf7b74 commit 522b647
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifests/moco-nodes.pp
Expand Up @@ -245,7 +245,7 @@
node 'releng-puppet2.srv.releng.mdc1.mozilla.com' {
$aspects = [ 'maximum-security' ]
$only_user_ssh = true
include fw::profiles::puppetmasters
include fw::profiles::distinguished_puppetmaster
include toplevel::server::puppetmaster
class {
'bacula_client':
Expand Down
26 changes: 21 additions & 5 deletions modules/fw/manifests/profiles/distinguished_puppetmaster.pp
Expand Up @@ -4,9 +4,25 @@

class fw::profiles::distinguished_puppetmaster {

include ::fw::roles::puppetmaster_from_all_releng
include ::fw::roles::puppetmaster_sync_from_all_releng
include ::fw::roles::bacula_from_scl3_bacula_host
include ::fw::roles::ssh_from_anywhere
include ::fw::roles::nrpe_from_nagios
case $::fqdn {
/.*\.mdc1\.mozilla\.com/: {
include ::fw::roles::bacula_from_mdc1_bacula_host

include ::fw::roles::puppetmaster_from_all_releng
include ::fw::roles::puppetmaster_sync_from_all_releng
include ::fw::roles::ssh_from_anywhere
include ::fw::roles::nrpe_from_nagios
}
/.*\.scl3\.mozilla\.com/: {
include ::fw::roles::bacula_from_scl3_bacula_host

include ::fw::roles::puppetmaster_from_all_releng
include ::fw::roles::puppetmaster_sync_from_all_releng
include ::fw::roles::ssh_from_anywhere
include ::fw::roles::nrpe_from_nagios
}
default: {
# Silently skip other DCs
}
}
}

0 comments on commit 522b647

Please sign in to comment.