You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spore-sync: use {{ instance.login_user }} instead of hardcoded ec2-user (needs spawn with #1225) #32
spore-sync hardcodes the login user in all three local sections of plugins/spore-sync/plugin.yaml: provision (line 50), and reconcile and deprovision (line 68).
That breaks on any AMI whose login user isn't ec2-user (Ubuntu's is ubuntu). It was hardcoded because spawn didn't give local steps {{ instance.login_user }}: the controller's template context had only id, name and ip (spore-host/spawn#1225).
spore-host/spawn#1333 fixes that. Local steps now get instance.login_user, set from the instance's spawn:local-username tag (else ec2-user), and it is kept in the local record that reconcile and deprovision replay from.
Once a spawn release with #1333 ships, switch spore-sync to {{ instance.login_user }}@{{ instance.ip }}:.... An older spawn renders a missing instance.login_user as an error ("instance.login_user not set") rather than as an empty string, so the switch needs a minimum spawn version. The plugin spec may already have a way to declare one; if not, note it in the plugin's changelog.
Note that a spore-sync installed before the switch keeps the hardcoded user in its local record, because the record stores the steps, so reconcile and deprovision of existing installs are unaffected.
Activity