Version information
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x
- Puppet >= 5.0.0 < 6.0.0
- RedHat, CentOS, OracleLinux, Scientific, SLES, Ubuntu
Tasks:
- code_deploy
Start using this module
Add this module to your Puppetfile:
mod 'tspy-code_deploy', '1.0.4'
Learn more about managing modules with a PuppetfileDocumentation
Puppet Code Deploy
This module adds a Task for running puppet code deploy 'environment'.
Requirements
This module is compatible with Puppet Enterprise.
- To run tasks with Puppet Enterprise, PE 2017.3 or later must be used.
Usage
Puppet Enterprise Tasks
With Puppet Enterprise 2017.3 or higher, you can run this task from the console or the command line.
Here's a command line example where we deploy the production
code enviroment on the Puppetmaster, master.corp.net
:
[tommy@workstation]$ puppet task run code_deploy environments=production -n master.corp.net
Starting job ...
New job ID: 66
Nodes: 1
Started on master.inf.puppet.vm ...
Finished on node master.inf.puppet.vm
production :
result : Successfully deployed the production environment
Job completed. 1/1 nodes succeeded.
Duration: 15 sec
Here's a command line example where we deploy the production
and dev
code enviroment on the Puppetmaster, master.corp.net
:
puppet task run code_deploy environments=production,dev -n master.inf.puppet.vm
Starting job ...
New job ID: 69
Nodes: 1
Started on master.inf.puppet.vm ...
Finished on node master.inf.puppet.vm
dev :
result : Successfully deployed the dev environment
production :
result : Successfully deployed the production environment
Job completed. 1/1 nodes succeeded.
Duration: 30 sec
Parameters
environments
: A comma-separated list of Puppet environments. Note: The --all feature is not allowed.
What are tasks?
Modules can contain tasks that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Tasks in this module release
Change Log
[1.0.0] First attempt at converting Nate's Purge Node task(2018-01-31)
- Initial release
[1.0.1] Fixed documentation issues
[1.0.2] Added @maju6406 changes, refreshing the classes in the UI
- The task now uses the puppetclassify gem to do the refresh. https://github.com/tspeigner/puppet-code_deploy/pull/1/commits/1ab007a8456661dd27a3cd4ed9ca9fd89ba299a2
[1.0.3]
- PDK Convert
[1.0.4]
- Fully qualify
puppet
command for console refresh #3 - PR https://github.com/tspeigner/puppet-code_deploy/pull/3