terraform-provider-system icon indicating copy to clipboard operation
terraform-provider-system copied to clipboard

Please consider unlimit the service unit type in system_service_systemd

Open fsdrw08 opened this issue 1 year ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.

Description

New or Affected Resource(s)

  • system_service_systemd

For now, the resource system_service_systemd only able to manage the systemd unit type of .service, there are many other type of systemd unit might able to be manged by this resources, e.g. systemd unit type of .mount, .path, I think this resource should also able to manage them.

Please consider include these kinds of the unit type in system_service_systemd, or just remove the hard code of .service in the following code of fmt.Sprintf in this file internal/client/service_systemd.go

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# Consider multiple alternatives for a discussion
# We may not use it verbatim, but it's helpful in understanding your intent.

References

  • #0000

fsdrw08 avatar Jan 19 '24 14:01 fsdrw08