Rename install-pdk-dependencies to ensure-pdk-dependencies for consistency

The old role will be kept and include ensure-pdk-dependencies for backwards-compatability.

Change-Id: Ia269db36655685fe3f4dc54c60ae4bc09a913f52
This commit is contained in:
vass 2020-04-01 20:00:36 +02:00 committed by Mohammed Naser
parent 0b4ed70366
commit 16fe7bbd3f
7 changed files with 36 additions and 31 deletions

View File

@ -2,6 +2,7 @@ Puppet Roles
============ ============
.. zuul:autorole:: build-puppet-module .. zuul:autorole:: build-puppet-module
.. zuul:autorole:: install-pdk-dependencies .. zuul:autorole:: ensure-pdk-dependencies
.. zuul:autorole:: fetch-puppet-module-output .. zuul:autorole:: fetch-puppet-module-output
.. zuul:autorole:: install-pdk-dependencies
.. zuul:autorole:: upload-forge .. zuul:autorole:: upload-forge

View File

@ -5,7 +5,7 @@ Development Kit (PDK).
This role requires installed Ruby, Ruby development and build tools This role requires installed Ruby, Ruby development and build tools
(gcc/g++ and make) packages, they can be installed using the (gcc/g++ and make) packages, they can be installed using the
:zuul:role:`install-pdk-dependencies` role. :zuul:role:`ensure-pdk-dependencies` role.
**Role Variables** **Role Variables**

View File

@ -0,0 +1,5 @@
Ensure dependencies for Puppet Development Kit are installed
This role installs all dependencies for Puppet Development Kit (PDK)
so that puppet modules can be build with the PDK and published to the
forge.

View File

@ -0,0 +1,19 @@
- name: Install ruby dependencies on Red Hat/SUSE based distribution
package:
name:
- ruby-devel
- gcc-c++
- make
state: present
become: yes
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- name: Install ruby dependencies on Debian based distribution
package:
name:
- ruby-dev
- g++
- make
state: present
become: yes
when: ansible_os_family == "Debian"

View File

@ -1,5 +1 @@
Ensure dependencies for Puppet Development Kit are installed .. warning:: Deprecated, use ensure-pdk-dependencies instead.
This role installs all dependencies for Puppet Development Kit (PDK)
so that puppet modules can be build with the PDK and published to the
forge.

View File

@ -1,19 +1,3 @@
- name: Install ruby dependencies on Red Hat/SUSE based distribution - name: Include ensure-pdk-dependencies.
package: include_role:
name: name: ensure-pdk-dependencies
- ruby-devel
- gcc-c++
- make
state: present
become: yes
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- name: Install ruby dependencies on Debian based distribution
package:
name:
- ruby-dev
- g++
- make
state: present
become: yes
when: ansible_os_family == "Debian"

View File

@ -1,11 +1,11 @@
- job: - job:
name: zuul-jobs-test-install-pdk-dependencies name: zuul-jobs-test-ensure-pdk-dependencies
description: Test the install-pdk-dependencies role description: Test the ensure-pdk-dependencies role
files: files:
- roles/install-pdk-dependencies/.* - roles/ensure-pdk-dependencies/.*
run: test-playbooks/simple-role-test.yaml run: test-playbooks/simple-role-test.yaml
vars: vars:
role_name: install-pdk-dependencies role_name: ensure-pdk-dependencies
# -* AUTOGENERATED *- # -* AUTOGENERATED *-
# The following project section is autogenerated by # The following project section is autogenerated by
@ -15,6 +15,6 @@
- project: - project:
check: check:
jobs: &id001 jobs: &id001
- zuul-jobs-test-install-pdk-dependencies - zuul-jobs-test-ensure-pdk-dependencies
gate: gate:
jobs: *id001 jobs: *id001