Commit 9bfd3af9 authored by Peter Palfrader's avatar Peter Palfrader

split out onionmaster into its own role

parent c8ec38cb
classes:
- roles::dsa_wiki_buildhost
- roles::static_master
- roles::onion_master
# onion.debian.org website build
#
class roles::onion_master {
file { '/srv/puppet.debian.org':
ensure => directory
}
file { '/srv/puppet.debian.org/puppet-facts':
ensure => directory
}
concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
notify => Exec['rebuild-onion-website'],
}
Concat::Fragment <<| tag == 'onionbalance-services.yaml' |>>
exec { 'rebuild-onion-website':
command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',
refreshonly => true,
}
}
......@@ -35,23 +35,4 @@ class roles::static_master {
owner => 'staticsync',
group => 'staticsync',
}
# export some information for the onion.debian.org build
if $::hostname in [dillon] {
file { '/srv/puppet.debian.org':
ensure => directory
}
file { '/srv/puppet.debian.org/puppet-facts':
ensure => directory
}
concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
notify => Exec['rebuild-onion-website'],
}
Concat::Fragment <<| tag == 'onionbalance-services.yaml' |>>
exec { 'rebuild-onion-website':
command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',
refreshonly => true,
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment