-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd.unit.create: Add Environment and EnvironmentFile options (HMS-3814) #567
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really like adding new panic() calls, but I suppose it's unavoidable. Looks ok otherwise.
I agree, panic calls should be for things that are plainly "illegal" programming-wise, especially now that this is a library. I'd like to do a full sweep of all the panics at some point but for now I'm keeping it consistent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
...aaaand it has conflicts. :( |
See osbuild/osbuild#1684 Signed-off-by: Achilleas Koutsou <[email protected]>
The Environment option in osbuild is now either a string or an array of key-value pairs. Let's just implement the array of key-value pairs here. It supports multiple instances and we don't need to make things complicated here by supporting both. This change modifies all RHEL EC2 and Azure images, but there is no functional change. See osbuild/osbuild#1684 Signed-off-by: Achilleas Koutsou <[email protected]>
Signed-off-by: Achilleas Koutsou <[email protected]>
Signed-off-by: Achilleas Koutsou <[email protected]>
fc1816a
to
af8a5d6
Compare
af8a5d6
to
0a50f5a
Compare
The previous osbuild commit I used didn't have a CI build (even though it was the |
Signed-off-by: Achilleas Koutsou <[email protected]>
0a50f5a
to
cd9a4ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!
osbuild: new Environment options for systemd.unit.create
See osbuild/osbuild#1684
Signed-off-by: Achilleas Koutsou [email protected]
osbuild: new Environment options for systemd.unit
The Environment option in osbuild is now either a string or an array of
key-value pairs. Let's just implement the array of key-value pairs
here. It supports multiple instances and we don't need to make things
complicated here by supporting both.
This change modifies all RHEL EC2 and Azure images, but there is no
functional change.
See osbuild/osbuild#1684
Signed-off-by: Achilleas Koutsou [email protected]
osbuild: validate env var name in systemd.unit.create
Signed-off-by: Achilleas Koutsou [email protected]
osbuild: validate env var name in systemd.unit
Signed-off-by: Achilleas Koutsou [email protected]