howto/static-mirroring: add onion service
[mirror/dsa-wiki.git] / input / howto / static-mirroring.creole
index 6bfeac5..b2c9dc0 100644 (file)
@@ -22,7 +22,7 @@ Using already configured source and master hosts.
 
 * Give sudo to run the right {{{static-update-component}}} to the appropriate group:
 {{{
-       /usr/sbin/visudo -f dsa-puppet/modules/sudo/files/sudoer
+       /usr/sbin/visudo -f dsa-puppet/modules/sudo/files/sudoers
 }}}
 and add something like
 {{{
@@ -35,6 +35,10 @@ and add
 <pre>
   vhost(lines, "debaday.debian.net"            , :ssl => true
 </pre>
+and
+<pre>
+  onion::service { 'debaday.debian.net'            : ensure => 'ifstatic', port => 80, target_port => 80, target_address => $onion_addr }
+</pre>
 ** In {{{dsa-puppet/modules/roles/manifests/static_mirror_web.pp}}}, add:
 {{{
        ssl::service { 'debaday.debian.net'            : ensure => 'ifstatic', notify  => Exec['service apache2 reload'], key => true, }