Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.74 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.74 KB

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.