summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-01-18 09:51:12 +0000
committerGerrit Code Review <review@openstack.org>2019-01-18 09:51:12 +0000
commite68af4b1a46cb6b91120eebd7387262560de40ce (patch)
treeb0509a4a427ce6206f807c7e13ef85cb958f6fdc
parent1c827e4761216506cd77db21b232402ff27a9332 (diff)
parentfd8ffc6711d6481e2fcd40d158255f297156a1ff (diff)
Merge "Fix upload-puppetforge role"
-rw-r--r--roles/upload-puppetforge/tasks/main.yaml30
1 files changed, 29 insertions, 1 deletions
diff --git a/roles/upload-puppetforge/tasks/main.yaml b/roles/upload-puppetforge/tasks/main.yaml
index 52fa288..d8e7fc7 100644
--- a/roles/upload-puppetforge/tasks/main.yaml
+++ b/roles/upload-puppetforge/tasks/main.yaml
@@ -1,14 +1,42 @@
1- name: Install ruby dependencies on RedHat/Suse based
2 package:
3 name:
4 - ruby-devel
5 - gcc-c++
6 - make
7 state: present
8 when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
9
10- name: Install ruby dependencies on Debian based
11 package:
12 name:
13 - ruby-dev
14 - g++
15 - make
16 state: present
17 when: ansible_os_family == "Debian"
18
1- name: Install required gems 19- name: Install required gems
2 gem: 20 gem:
3 name: "{{ item }}" 21 name: "{{ item }}"
22 user_install: no
4 with_items: 23 with_items:
5 - rake 24 - rake
6 - puppetlabs_spec_helper 25 - puppetlabs_spec_helper
7 - puppet-blacksmith 26 - puppet-blacksmith
8 27
28# NOTE(tobias.urdin): The build task is needed because puppet-blacksmith
29# doesn't provide a build task so it fails, we don't need one anyway since
30# we have already built the module before this role is called.
9- name: Install new Rakefile 31- name: Install new Rakefile
10 copy: 32 copy:
11 content: "require 'puppet_blacksmith/rake_tasks'" 33 content: |
34 namespace 'module' do
35 task 'build' do
36 end
37 end
38
39 require 'puppet_blacksmith/rake_tasks'
12 dest: "{{ puppet_module_dir }}/Rakefile" 40 dest: "{{ puppet_module_dir }}/Rakefile"
13 41
14- name: Publish puppet module 42- name: Publish puppet module