通过ssh在远程服务器上执行puppet文件

时间:2021-03-22 02:48:22

Is it possible to execute a puppet in a remote server using SSH? I don't want to have to install ruby on the remote server.

是否可以使用SSH在远程服务器中执行puppet?我不想在远程服务器上安装ruby。

2 个解决方案

#1


2  

To my knowledge, only Puppet can interpret Puppet files. I think it is easier to install Puppet's dependencies (including Ruby) than finding/developing a Puppet replacement.

据我所知,只有Puppet可以解释Puppet文件。我认为安装Puppet的依赖项(包括Ruby)比查找/开发Puppet替换更容易。

#2


1  

Puppet (and facter) needs to be able to inspect the filesystem, process tables and other kernel tables (to mention just a few things) of the remote server. To to this, it has to be executed on the remote server. ssh does not offer a way to run a command on host A in such a way that it executes on host B with access to host B's resources; it does offer a way to execute a program installed on host B from host A, but that is not what you want.

Puppet(和facter)需要能够检查远程服务器的文件系统,进程表和其他内核表(仅举几例)。为此,它必须在远程服务器上执行。 ssh不提供在主机A上运行命令的方法,使得它在主机B上执行,可以访问主机B的资源;它确实提供了一种从主机A执行安装在主机B上的程序的方法,但这不是你想要的。

Puppet comes with an overhead (the space required to install it and its dependencies, plus the memory and CPU time that it consumes); if you don't like the overhead, don't use Puppet.

Puppet带有开销(安装它所需的空间及其依赖性,加上它消耗的内存和CPU时间);如果你不喜欢开销,不要使用Puppet。

Note: if it were possible to do what you want, then you'd have saved a small amount of space on host B but would have three new problems:

注意:如果可以执行您想要的操作,那么您已经在主机B上节省了少量空间,但会遇到三个新问题:

  1. Significant increase of the load on your puppetmaster, if it has do to all the work.
  2. 如果它对所有工作都做了,那么你的木偶大师的负担会显着增加。
  3. Still a lot of work on the remote server, as it provides access to the resources
  4. 远程服务器上还有很多工作,因为它提供了对资源的访问
  5. Large increase in network traffic.
  6. 网络流量大幅增加。

#1


2  

To my knowledge, only Puppet can interpret Puppet files. I think it is easier to install Puppet's dependencies (including Ruby) than finding/developing a Puppet replacement.

据我所知,只有Puppet可以解释Puppet文件。我认为安装Puppet的依赖项(包括Ruby)比查找/开发Puppet替换更容易。

#2


1  

Puppet (and facter) needs to be able to inspect the filesystem, process tables and other kernel tables (to mention just a few things) of the remote server. To to this, it has to be executed on the remote server. ssh does not offer a way to run a command on host A in such a way that it executes on host B with access to host B's resources; it does offer a way to execute a program installed on host B from host A, but that is not what you want.

Puppet(和facter)需要能够检查远程服务器的文件系统,进程表和其他内核表(仅举几例)。为此,它必须在远程服务器上执行。 ssh不提供在主机A上运行命令的方法,使得它在主机B上执行,可以访问主机B的资源;它确实提供了一种从主机A执行安装在主机B上的程序的方法,但这不是你想要的。

Puppet comes with an overhead (the space required to install it and its dependencies, plus the memory and CPU time that it consumes); if you don't like the overhead, don't use Puppet.

Puppet带有开销(安装它所需的空间及其依赖性,加上它消耗的内存和CPU时间);如果你不喜欢开销,不要使用Puppet。

Note: if it were possible to do what you want, then you'd have saved a small amount of space on host B but would have three new problems:

注意:如果可以执行您想要的操作,那么您已经在主机B上节省了少量空间,但会遇到三个新问题:

  1. Significant increase of the load on your puppetmaster, if it has do to all the work.
  2. 如果它对所有工作都做了,那么你的木偶大师的负担会显着增加。
  3. Still a lot of work on the remote server, as it provides access to the resources
  4. 远程服务器上还有很多工作,因为它提供了对资源的访问
  5. Large increase in network traffic.
  6. 网络流量大幅增加。