code_deploy

contributions requested
pdk
tasks
A Puppet Task for Puppet Code Deployments

10,066 downloads

5,342 latest version

4.6 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.4 (latest)
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0 (deleted)
released Dec 12th 2018
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

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'tspy-code_deploy', '1.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tspy-code_deploy
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tspy-code_deploy --version 1.0.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

tspy/code_deploy — version 1.0.4 Dec 12th 2018

Puppet Forge

Puppet Code Deploy

This module adds a Task for running puppet code deploy 'environment'.

Requirements

This module is compatible with Puppet Enterprise.

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.