Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
7664dcd4
Unverified
Commit
7664dcd4
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
add missing steps for static component creation
parent
af435b17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/static-component.mdwn
+39
-0
39 additions, 0 deletions
tsa/howto/static-component.mdwn
with
39 additions
and
0 deletions
tsa/howto/static-component.mdwn
+
39
−
0
View file @
7664dcd4
...
...
@@ -24,3 +24,42 @@ Adding a new component
The latter is done with [[cumin]], see also [[puppet]] for a way
to do jobs on all hosts.
4. add an Apache virtual host, by adding a line like this in
[[puppet]] to
`modules/roles/templates/static-mirroring/vhost/static-vhosts.erb`:
vhost(lines, 'onionperf.torproject.org')
5. add an SSL service, by adding a line in [[puppet]] to
`modules/roles/manifests/static_mirror_web.pp`:
ssl::service { onionperf.torproject.org': ensure => 'ifstatic', notify => Exec['service apache2 reload'], key => true, }
6. add an onion service, by adding another `onion::service` line in
[[puppet]] to `modules/roles/manifests/static_mirror_onion.pp`:
onion::service {
[...]
'onionperf.torproject.org',
[...]
}
4. consider creating a new role and group for the component if none
match its purpose, see [[create-a-new-user]] for details:
ssh alberti.torproject.org ldapvi -ZZ --encoding=ASCII --ldap-conf -h db.torproject.org -D "uid=$USER,ou=users,dc=torproject,dc=org"
5. if you created a new group, you will probably need to modify the
`sudoers` file to grant a user access to the role/group, see
`modules/sudo/files/sudoers` in the `tor-puppet` repository (and
[[puppet]] to learn about how to make changes to
Puppet). `onionperf` is a good example of how to create a
`sudoers` file. edit the file with `visudo` so it checks the
syntax:
visudo -f modules/sudo/files/sudoers
This, for example, is the line that was added for `onionperf`:
%torwww,%metrics STATICMASTER=(mirroradm) NOPASSWD: /usr/local/bin/static-master-update-component onionperf.torproject.org, /usr/local/bin/static-update-component onionperf.torproject.org
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment