[tor-bugs] #30020 [Internal Services/Tor Sysadmin Team]: switch from our custom YAML implementation to Hiera

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri May 31 03:21:55 UTC 2019


#30020: switch from our custom YAML implementation to Hiera
-------------------------------------------------+-------------------------
 Reporter:  anarcat                              |          Owner:  anarcat
     Type:  project                              |         Status:
                                                 |  assigned
 Priority:  Medium                               |      Milestone:
Component:  Internal Services/Tor Sysadmin Team  |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:                                       |  Actual Points:
Parent ID:  #29387                               |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by anarcat):

 down to 6 `has_role` (down from ~50) in the main `roles` class, thanks to
 the help of hiro who joined in the effort. there are also still 18 roles
 (down from 57) left in `local.yaml`, which i'll try to tackle next. there
 are some leftovers of the `static-*` roles there that I seem to have
 skipped over. they are bound to SSH key propagation and internal class
 parameters, so it was likely deliberate.

 but we have definitely cross the halfway point, and I'd say we're getting
 close to the finish line, at least with regards to the custom `has_role`
 stuff. there's naturally more stuff that could move to Hiera and other
 YAML files strewed around the codebase, but this is a huge chunk that will
 be done shortly.

 Those are the files I am currently aware of that would benefit to be
 transitioned into Hiera:

 {{{
 ./modules/torproject_org/misc/hoster.yaml
 ./modules/torproject_org/misc/local.yaml
 ./modules/ipsec/misc/config.yaml
 ./modules/roles/misc/static-components.yaml
 ./modules/roles/files/spec/spec-redirects.yaml
 }}}

 But I suspect many of those will be easier than the wide-ranging
 `has_role` transition, as each one of those file touches one or only a few
 module, as opposed to the `local.yaml` file which touched *everything*.

 So, good progress, even if slow.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30020#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list