diff --git a/doc/source/puppet-roles.rst b/doc/source/puppet-roles.rst index 7ac9e64e0..3d0da8b6d 100644 --- a/doc/source/puppet-roles.rst +++ b/doc/source/puppet-roles.rst @@ -2,5 +2,6 @@ Puppet Roles ============ .. zuul:autorole:: build-puppet-module +.. zuul:autorole:: install-pdk-dependencies .. zuul:autorole:: fetch-puppet-module-output .. zuul:autorole:: upload-forge diff --git a/roles/install-pdk-dependencies/README.rst b/roles/install-pdk-dependencies/README.rst new file mode 100644 index 000000000..4893ee70f --- /dev/null +++ b/roles/install-pdk-dependencies/README.rst @@ -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. diff --git a/roles/install-pdk-dependencies/tasks/main.yaml b/roles/install-pdk-dependencies/tasks/main.yaml new file mode 100644 index 000000000..032cd2e32 --- /dev/null +++ b/roles/install-pdk-dependencies/tasks/main.yaml @@ -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"