Code Monkey home page Code Monkey logo

neuspaces / terraform-provider-system Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 6.0 356 KB

Terraform provider for managing operating system level resources (e.g. files, directories, users, groups, packages, services) on remote servers agent-less via SSH.

Home Page: https://registry.terraform.io/providers/neuspaces/system/latest

License: Mozilla Public License 2.0

Go 93.93% Dockerfile 1.13% Shell 4.94%
configuration-management linux-server ssh terraform-provider

terraform-provider-system's People

Contributors

dominik-lekse avatar l-with avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

terraform-provider-system's Issues

import files should diff existing file

When importing a file the plan do not show a diff of the file but only what will be pushed

To ease starting usage of the module, import should show a diff.
To get around it, I'm copying the actual file, applying the plan and run diff on the 2 files to make sure I did not broke something.

Support override resource unconditionally

When declaring a resource that already exists, the provider fail with Error: file resource: file exists
It could be nice to have a way to make provider's resources override existing resources unconditionally since the provider can be considered as owner of those resource.

In the same manner, when a resource handle by the provider is deleted by something else, the terraform plan is failing because the resource is not found instead of planning to re-write the resource.

Please support systemd timer

It seems that service and timer are almost the same. Currently I'm using ansible provider to manage timers, but ansible is not capable of displaying changes only when there is a change to make.

Support changing file content without delete/create

Changing a file content make it delete/creating the resource. To me this should be done with an update of the resource.

I think it can even be harmful depending on what is using the file in the system to see it disappearing,

I already had one case that is harmful: handling the sudoers file with terraform-provider-system, make it losing right to sudo.

Please consider unlimit the service unit type in system_service_systemd

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.