From 581c0c6def012af01f281070d7cea8f468ec929f Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 27 Oct 2017 20:44:32 -0400 Subject: [PATCH] Create build-openstack-puppet-tarball This job we'll be able to add into check / gate pipelines for projects that want to test building a puppet tarball. Change-Id: I9e62a4a68db94e1d3d1e718edf340aeb9fbaba2e Signed-off-by: Paul Belanger --- playbooks/puppet-tarball/pre.yaml | 7 +++++++ playbooks/puppet-tarball/run.yaml | 6 ++++++ zuul.d/jobs.yaml | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 playbooks/puppet-tarball/pre.yaml create mode 100644 playbooks/puppet-tarball/run.yaml 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