diff --git a/playbooks/puppet-tarball/pre.yaml b/playbooks/puppet-tarball/pre.yaml new file mode 100644 index 00000000..1b64383d --- /dev/null +++ b/playbooks/puppet-tarball/pre.yaml @@ -0,0 +1,7 @@ +- hosts: all + roles: + - role: bindep + # NOTE(pabelanger): puppet modules use the build profile to manage + # dependencies for puppet module build. + bindep_profile: build + - revoke-sudo diff --git a/playbooks/puppet-tarball/run.yaml b/playbooks/puppet-tarball/run.yaml new file mode 100644 index 00000000..26fe7dd5 --- /dev/null +++ b/playbooks/puppet-tarball/run.yaml @@ -0,0 +1,6 @@ +- hosts: all + tasks: + - name: Build puppet module + command: puppet module build . + args: + chdir: "{{ zuul.project.src_dir }}" diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 69f6004c..bd25a6e1 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -364,6 +364,13 @@ vars: tox_envlist: compare-cover +- job: + name: build-openstack-puppet-tarball + description: | + Build a puppet tarball but do not upload it anywhere. + pre-run: playbooks/puppet-tarball/pre.yaml + run: playbooks/puppet-tarball/run.yaml + - job: name: publish-openstack-python-tarball parent: publish-openstack-artifacts