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:: 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
|
||||||
|
@ -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**
|
||||||
|
|
||||||
|
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
|
.. 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.
|
|
||||||
|
@ -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"
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user