Closed Bug 1169259 Opened 9 years ago Closed 9 years ago

Puppetize signing workers

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch signingworker-puppet.diff (obsolete) — Splinter Review
Not tested yet (the inventory is closed for new entries until Wed 6:00)
Attachment #8613661 - Flags: feedback?(dustin)
Comment on attachment 8613661 [details] [diff] [review]
signingworker-puppet.diff

Review of attachment 8613661 [details] [diff] [review]:
-----------------------------------------------------------------

::: manifests/moco-nodes.pp
@@ +938,5 @@
> +# Signing workers
> +node /signingworker-.*\.srv\.releng\..*\.mozilla\.com/ {
> +    # TODO: remove temp pin
> +    $pin_puppet_server = "releng-puppet2.srv.releng.scl3.mozilla.com"
> +    $pin_puppet_env = "raliiev"

Don't forget :)

::: modules/signingworker/templates/passwords.json.erb
@@ +1,2 @@
> +{
> +    "signig:cert:nightly-signing": [

typo

@@ +7,5 @@
> +        ["mac-signing3.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmg"]],
> +        ["mac-v2-signing1.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> +        ["mac-v2-signing2.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> +        ["mac-v2-signing3.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> +        ["mac-v2-signing4.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]]

It'd be better to generate these with a loop in the template over a list of signing servers.  Then that list can go in moco-config.pp.
Attachment #8613661 - Flags: feedback?(dustin) → feedback+
(In reply to Dustin J. Mitchell [:dustin] from comment #2)
> Comment on attachment 8613661 [details] [diff] [review]
> signingworker-puppet.diff
> 
> Review of attachment 8613661 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: manifests/moco-nodes.pp
> @@ +938,5 @@
> > +# Signing workers
> > +node /signingworker-.*\.srv\.releng\..*\.mozilla\.com/ {
> > +    # TODO: remove temp pin
> > +    $pin_puppet_server = "releng-puppet2.srv.releng.scl3.mozilla.com"
> > +    $pin_puppet_env = "raliiev"
> 
> Don't forget :)

Deleted.

> ::: modules/signingworker/templates/passwords.json.erb
> @@ +1,2 @@
> > +{
> > +    "signig:cert:nightly-signing": [
> 
> typo

Oops. Fixed.
 
> @@ +7,5 @@
> > +        ["mac-signing3.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmg"]],
> > +        ["mac-v2-signing1.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> > +        ["mac-v2-signing2.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> > +        ["mac-v2-signing3.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]],
> > +        ["mac-v2-signing4.srv.releng.scl3.mozilla.com:9100", "<%= scope.function_secret[["signing_server_username"]] %>", "<%= scope.function_secret[["signing_server_nightly_password"]] %>", ["dmgv2"]]
> 
> It'd be better to generate these with a loop in the template over a list of
> signing servers.  Then that list can go in moco-config.pp.

I'm going to file a separate bug to address this and assign it to myself, so I'm not blocked by yaks. :)

This version has nothing new, just 2 syntax fixes and proper command line for the worker script. See interdiff: https://gist.github.com/rail/bc7ac827ba67cbde34ec (need.to.use.mozreview.)

Tested and worked fine.
Attachment #8613661 - Attachment is obsolete: true
Attachment #8615045 - Flags: review?(dustin)
Attachment #8615045 - Flags: review?(dustin) → review+
Blocks: 1171428
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: