Closed Bug 1103272 Opened 10 years ago Closed 10 years ago

aws_stop_idle.py should use ssh keys for authenication

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

Details

Attachments

(3 files, 1 obsolete file)

      No description provided.
Attachment #8527382 - Flags: review?(dustin)
To be landed after the first one is live and when the corresponding cloud-tools changes are landed.
Attachment #8527384 - Flags: review?(dustin)
Comment on attachment 8527382 [details] [diff] [review]
stop_idle_ssh_key-puppet.diff

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

r+ otherwise

::: modules/toplevel/manifests/slave/releng.pp
@@ +28,5 @@
>          include packages::mapi_headers
>          include fw::windows_exceptions
>          include fw::windows_settings
>      }
> +    if ($::virtual =~ /xen/) {

Don't we have a better fact for this now?
Attachment #8527382 - Flags: review?(dustin) → review+
Attachment #8527384 - Flags: review?(dustin) → review+
I tried to use $::ec2_instance_id in http://hg.mozilla.org/build/puppet/rev/60703a9e891e#l4.12 and it didn't work (the condition was true in any case). Maybe I should have compared it with "", not with null...
https://docs.puppetlabs.com/learning/variables.html#aside-beware-of-the-fake-false says "all facts are strings", so the following should work:

if ($::ec2_instance_id != "") {
...
}

I'll test it before landing.
Comment on attachment 8527382 [details] [diff] [review]
stop_idle_ssh_key-puppet.diff

if ($::ec2_instance_id != "") worked fine

remote:   https://hg.mozilla.org/build/puppet/rev/e79c5d6f88b5
remote:   https://hg.mozilla.org/build/puppet/rev/dc9b0376d8b9
Attachment #8527382 - Flags: checked-in+
Attached patch rm-passwords.json.erb.diff (obsolete) — Splinter Review
This template can die now!

I'll delete the corresponding entries from hiera
Attachment #8528449 - Flags: review?(dustin)
moar clean up
Attachment #8528449 - Attachment is obsolete: true
Attachment #8528449 - Flags: review?(dustin)
Attachment #8528462 - Flags: review?(dustin)
Comment on attachment 8528462 [details] [diff] [review]
rm-passwords.json.erb.diff

*stab* *stab*
Attachment #8528462 - Flags: review?(dustin) → review+
Everything is deployed now.
Status: NEW → RESOLVED
Closed: 10 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: