puppetlabs-exec

所属分类:DevOps
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2023-07-17 16:36:56
上 传 者sh-1993
说明:  木偶实验室执行官,,
(puppetlabs-exec,,)

文件列表:
.devcontainer/ (0, 2023-12-20)
.devcontainer/Dockerfile (234, 2023-12-20)
.devcontainer/devcontainer.json (248, 2023-12-20)
.fixtures.yml (458, 2023-12-20)
.pdkignore (517, 2023-12-20)
.pmtignore (223, 2023-12-20)
.puppet-lint.rc (11, 2023-12-20)
.rspec (31, 2023-12-20)
.rubocop.yml (16761, 2023-12-20)
.rubocop_todo.yml (388, 2023-12-20)
.sync.yml (433, 2023-12-20)
.vscode/ (0, 2023-12-20)
.vscode/extensions.json (79, 2023-12-20)
.yardopts (18, 2023-12-20)
CHANGELOG.md (10435, 2023-12-20)
CODEOWNERS (62, 2023-12-20)
CONTRIBUTING.md (211, 2023-12-20)
Gemfile (3742, 2023-12-20)
HISTORY.md (975, 2023-12-20)
LICENSE (11358, 2023-12-20)
NOTICE (585, 2023-12-20)
REFERENCE.md (1329, 2023-12-20)
Rakefile (337, 2023-12-20)
data/ (0, 2023-12-20)
data/common.yaml (7, 2023-12-20)
... ...

# exec #### Table of Contents 1. [Description](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#description) 2. [Requirements](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#requirements) 3. [Usage - Configuration options and additional functionality](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#usage) 4. [Reference - An under-the-hood peek at what the module is doing and how](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#reference) 5. [Limitations - OS compatibility, etc.](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#limitations) 6. [License](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#license) 7. [Getting help - Some Helpful commands](https://github.com/puppetlabs/puppetlabs-exec/blob/master/#getting-help) ## Description This module provides the exec task. This task allows you to run an arbitary command with arguments. ## Requirements This module is compatible with Puppet Enterprise and Puppet Bolt. * To run tasks with Puppet Enterprise, PE 2018.1 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must be Puppet agents. * To run tasks with Puppet Bolt, Bolt 1.0 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must have SSH or WinRM services enabled. ## Usage To run an exec task, use the task command, specifying the command to be executed. * With PE on the command line, run `puppet task run exec command=`. * With Bolt on the command line, run `bolt task run exec command=`. For example, to view the free disk space of a host, run: * With PE, run `puppet task run exec command="df -h" --nodes neptune`. * With Bolt, run `bolt task run exec command="df -h" --nodes neptune --modulepath ~/modules`. This example is specifically for Windows using Powershell and returns a list of features installed on the server: `puppet task run exec command='powershell -command "Get-WindowsFeature | Where Installed | Format-List -Property Name"' --nodes neptune` You can also run tasks in the PE console. See PE task documentation for complete information. ## Reference For detailed reference information, see the [REFERENCE.md](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://github.com/puppetlabs/puppetlabs-exec/blob/main/REFERENCE.md) ## Limitations For an extensive list of supported operating systems, see [metadata.json](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://github.com/puppetlabs/puppetlabs-exec/blob/main/metadata.json) ## License This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of [AGPL](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/agpl-v3/), [BSD-2](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/bsd-2-clause/), [BSD-3](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/bsd-3-clause/), [GPL2.0](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/gpl-2-0/), [LGPL](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/lgpl-3-0/), [MIT](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/mit/) and [MPL](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://opensource.org/license/mpl-2-0/) Licensing. ## Getting Help To display help for the package task, run `puppet task show package` To show help for the task CLI, run `puppet task run --help` or `bolt task run --help` ## Development Acceptance tests are ran using[puppet_litmus](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://github.com/puppetlabs/puppet_litmus). To run the acceptance tests follow the instructions [here](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://github.com/puppetlabs/puppet_litmus/wiki/Tutorial:-use-Litmus-to-execute-acceptance-tests-with-a-sample-module-(MoTD)#install-the-necessary-gems-for-the-module). You can also find a tutorial and walkthrough of using Litmus and the PDK on [YouTube](https://github.com/puppetlabs/puppetlabs-exec/blob/master/https://www.youtube.com/watch?v=FYfR7ZEGHoE). If you run into an issue with this module, or if you would like to request a feature, please file an issue on the repo. If you have problems getting this module up and running, please [contact Support](https://github.com/puppetlabs/puppetlabs-exec/blob/master/http://puppetlabs.com/services/customer-support). If you submit a change to this module, be sure to regenerate the reference documentation as follows: ```bash puppet strings generate --format markdown --out REFERENCE.md ```

近期下载者

相关文件


收藏者