{"id":15022570,"url":"https://github.com/puppetlabs/puppetlabs-exec","last_synced_at":"2025-04-06T09:08:04.167Z","repository":{"id":25793755,"uuid":"103271935","full_name":"puppetlabs/puppetlabs-exec","owner":"puppetlabs","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-04T02:36:53.000Z","size":345,"stargazers_count":3,"open_issues_count":3,"forks_count":23,"subscribers_count":93,"default_branch":"main","last_synced_at":"2025-03-30T08:07:58.888Z","etag":null,"topics":["hacktoberfest","module","supported"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puppetlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-12T13:08:33.000Z","updated_at":"2024-12-16T05:29:34.000Z","dependencies_parsed_at":"2024-06-19T17:11:28.139Z","dependency_job_id":"e6664951-85a5-4e0a-9d5f-495e49985bc3","html_url":"https://github.com/puppetlabs/puppetlabs-exec","commit_stats":{"total_commits":217,"total_committers":44,"mean_commits":4.931818181818182,"dds":0.8755760368663594,"last_synced_commit":"4a6c4d50d0b2f625eb3d854b85c60f548e0816c8"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puppetlabs","download_url":"https://codeload.github.com/puppetlabs/puppetlabs-exec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457801,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","module","supported"],"created_at":"2024-09-24T19:58:07.733Z","updated_at":"2025-04-06T09:08:04.150Z","avatar_url":"https://github.com/puppetlabs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# exec\n\n#### Table of Contents\n\n1. [Description](#description)\n2. [Requirements](#requirements)\n3. [Usage - Configuration options and additional functionality](#usage)\n4. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n5. [Limitations - OS compatibility, etc.](#limitations)\n6. [License](#license)\n7. [Getting help - Some Helpful commands](#getting-help)\n\n## Description\n\nThis module provides the exec task. This task allows you to run an arbitary command with arguments.\n\n## Requirements\nThis module is compatible with Puppet Enterprise and Puppet Bolt.\n\n* 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.\n\n* 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.\n\n## Usage\n\nTo run an exec task, use the task command, specifying the command to be executed.\n\n* With PE on the command line, run `puppet task run exec command=\u003cCOMMAND\u003e`.\n* With Bolt on the command line, run `bolt task run exec command=\u003cCOMMAND\u003e`.\n\nFor example, to view the free disk space of a host, run:\n\n* With PE, run `puppet task run exec command=\"df -h\" --nodes neptune`.\n* With Bolt, run `bolt task run exec command=\"df -h\" --nodes neptune --modulepath ~/modules`.\n\nThis example is specifically for Windows using Powershell and returns a list of features installed on the server:\n`puppet task run exec command='powershell -command \"Get-WindowsFeature  | Where Installed | Format-List -Property Name\"' --nodes neptune`\n\nYou can also run tasks in the PE console. See PE task documentation for complete information.\n\n## Reference\n\nFor detailed reference information, see the [REFERENCE.md](https://github.com/puppetlabs/puppetlabs-exec/blob/main/REFERENCE.md)\n\n## Limitations\n\nFor an extensive list of supported operating systems, see [metadata.json](https://github.com/puppetlabs/puppetlabs-exec/blob/main/metadata.json)\n\n## License\n\nThis 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://opensource.org/license/agpl-v3/), [BSD-2](https://opensource.org/license/bsd-2-clause/), [BSD-3](https://opensource.org/license/bsd-3-clause/), [GPL2.0](https://opensource.org/license/gpl-2-0/), [LGPL](https://opensource.org/license/lgpl-3-0/), [MIT](https://opensource.org/license/mit/) and [MPL](https://opensource.org/license/mpl-2-0/) Licensing.\n\n## Getting Help\n\nTo display help for the package task, run `puppet task show package`\n\nTo show help for the task CLI, run `puppet task run --help` or `bolt task run --help`\n\n## Development\n\nAcceptance tests are ran using[puppet_litmus](https://github.com/puppetlabs/puppet_litmus).\nTo run the acceptance tests follow the instructions [here](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).\nYou can also find a tutorial and walkthrough of using Litmus and the PDK on [YouTube](https://www.youtube.com/watch?v=FYfR7ZEGHoE).\n\nIf you run into an issue with this module, or if you would like to request a feature, please file an issue on the repo.\n\nIf you have problems getting this module up and running, please [contact Support](http://puppetlabs.com/services/customer-support).\n\nIf you submit a change to this module, be sure to regenerate the reference documentation as follows:\n\n```bash\npuppet strings generate --format markdown --out REFERENCE.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-exec/lists"}