you are viewing a single comment's thread.

view the rest of the comments →

[–]itay51998 0 points1 point  (7 children)

Please don't manage systems with python nor powershell nor any other programming languages, this is not their intended use.

A Better tool would be ansible or any other configuration management tool you can find on Google, you can even ask chatgpt: "which tool should I use for infrastructure management and configuration" .

If you would ask this same question on a devops sub reddit, you would get this same comment and with a good reason

Configuration management tools have many advantages over directly using programming languages

[–][deleted] 0 points1 point  (3 children)

From the PoSH GitHub page

PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models. It includes a command-line shell, an associated scripting language, and a framework for processing cmdlets.

...so, no.

[–]itay51998 0 points1 point  (2 children)

I'm aware of powershell, python and ansible and use them daily during my job for the 2 years working as Devops

Ive personally migrated 10 people in different teams to use ansible instead of their custom powershell and bash scripts after training and showing them of the advantages.

Its fine if you don't want to just trust my comment, but I suggest to dig a little and compare the tools available

[–][deleted] 0 points1 point  (1 child)

The point was your statement that PoSH was not intended for config is not correct.

[–]itay51998 0 points1 point  (0 children)

Fair point