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:
parent
0b4ed70366
commit
16fe7bbd3f
@ -2,6 +2,7 @@ Puppet Roles
|
||||
============
|
||||
|
||||
.. zuul:autorole:: build-puppet-module
|
||||
.. zuul:autorole:: install-pdk-dependencies
|
||||
.. zuul:autorole:: ensure-pdk-dependencies
|
||||
.. zuul:autorole:: fetch-puppet-module-output
|
||||
.. zuul:autorole:: install-pdk-dependencies
|
||||
.. zuul:autorole:: upload-forge
|
||||
|
@ -5,7 +5,7 @@ Development Kit (PDK).
|
||||
|
||||
This role requires installed Ruby, Ruby development and build tools
|
||||
(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**
|
||||
|
||||
|
5
roles/ensure-pdk-dependencies/README.rst
Normal file
5
roles/ensure-pdk-dependencies/README.rst
Normal 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.
|
19
roles/ensure-pdk-dependencies/tasks/main.yaml
Normal file
19
roles/ensure-pdk-dependencies/tasks/main.yaml
Normal 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"
|
@ -1,5 +1 @@
|
||||
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.
|
||||
.. warning:: Deprecated, use ensure-pdk-dependencies instead.
|
||||
|
@ -1,19 +1,3 @@
|
||||
- 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"
|
||||
- name: Include ensure-pdk-dependencies.
|
||||
include_role:
|
||||
name: ensure-pdk-dependencies
|
||||
|
@ -1,11 +1,11 @@
|
||||
- job:
|
||||
name: zuul-jobs-test-install-pdk-dependencies
|
||||
description: Test the install-pdk-dependencies role
|
||||
name: zuul-jobs-test-ensure-pdk-dependencies
|
||||
description: Test the ensure-pdk-dependencies role
|
||||
files:
|
||||
- roles/install-pdk-dependencies/.*
|
||||
- roles/ensure-pdk-dependencies/.*
|
||||
run: test-playbooks/simple-role-test.yaml
|
||||
vars:
|
||||
role_name: install-pdk-dependencies
|
||||
role_name: ensure-pdk-dependencies
|
||||
|
||||
# -* AUTOGENERATED *-
|
||||
# The following project section is autogenerated by
|
||||
@ -15,6 +15,6 @@
|
||||
- project:
|
||||
check:
|
||||
jobs: &id001
|
||||
- zuul-jobs-test-install-pdk-dependencies
|
||||
- zuul-jobs-test-ensure-pdk-dependencies
|
||||
gate:
|
||||
jobs: *id001
|
||||
|
Loading…
Reference in New Issue
Block a user