Add role to build Puppet module
This patch adds an Ansible role which can be used to build Puppet modules. Change-Id: I45761c2d111640733ddec8b4c08066655b6944e2
This commit is contained in:
parent
560a907b06
commit
d0851b0b4a
9
roles/build-puppet-module/README.rst
Normal file
9
roles/build-puppet-module/README.rst
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
An ansible role to build a Puppet module. This role assumes that Puppet is
|
||||||
|
already installed on the target system (either manually or using bindep).
|
||||||
|
|
||||||
|
**Role Variables**
|
||||||
|
|
||||||
|
.. zuul:rolevar:: puppet_module_chdir
|
||||||
|
:default: {{ zuul.project.src_dir }}
|
||||||
|
|
||||||
|
The folder to switch into in order to build the Puppet module
|
1
roles/build-puppet-module/defaults/main.yaml
Normal file
1
roles/build-puppet-module/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
puppet_module_chdir: "{{ zuul.project.src_dir }}"
|
4
roles/build-puppet-module/tasks/main.yaml
Normal file
4
roles/build-puppet-module/tasks/main.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- name: Build puppet module
|
||||||
|
command: puppet module build .
|
||||||
|
args:
|
||||||
|
chdir: "{{ puppet_module_chdir }}"
|
Loading…
Reference in New Issue
Block a user