diff --git a/roles/build-puppet-module/README.rst b/roles/build-puppet-module/README.rst new file mode 100644 index 000000000..edf50c5e4 --- /dev/null +++ b/roles/build-puppet-module/README.rst @@ -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 diff --git a/roles/build-puppet-module/defaults/main.yaml b/roles/build-puppet-module/defaults/main.yaml new file mode 100644 index 000000000..c71e5e299 --- /dev/null +++ b/roles/build-puppet-module/defaults/main.yaml @@ -0,0 +1 @@ +puppet_module_chdir: "{{ zuul.project.src_dir }}" diff --git a/roles/build-puppet-module/tasks/main.yaml b/roles/build-puppet-module/tasks/main.yaml new file mode 100644 index 000000000..a8188696c --- /dev/null +++ b/roles/build-puppet-module/tasks/main.yaml @@ -0,0 +1,4 @@ +- name: Build puppet module + command: puppet module build . + args: + chdir: "{{ puppet_module_chdir }}"