Browse Source

Use become for packages in upload-puppetforge

The upload-puppetforge role when executed as a
unprivileged user fails to install system packages
and the gems in the system gem home, see failure [1].

This adds become to the calls so that it becomes the
privileged user and executes these which will make them
have system access like the bindep role [2].

[1] http://logs.openstack.org/61/617ffad84b633618490ca1023f8a31d9694b31a9/release/release-openstack-puppet/c6e519d/job-output.txt.gz#_2019-01-21_20_53_17_207155
[2] https://git.openstack.org/cgit/openstack-infra/zuul-jobs/tree/roles/bindep/tasks/packages.yaml#n6

Change-Id: I4f11319727a4a5694f11abad4ded69ee554326f2
changes/63/632163/1
Tobias Urdin 5 months ago
parent
commit
db1629dc97
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      roles/upload-puppetforge/tasks/main.yaml

+ 3
- 0
roles/upload-puppetforge/tasks/main.yaml View File

@@ -5,6 +5,7 @@
5 5
       - gcc-c++
6 6
       - make
7 7
     state: present
8
+  become: yes
8 9
   when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
9 10
 
10 11
 - name: Install ruby dependencies on Debian based
@@ -14,6 +15,7 @@
14 15
       - g++
15 16
       - make
16 17
     state: present
18
+  become: yes
17 19
   when: ansible_os_family == "Debian"
18 20
 
19 21
 - name: Install required gems
@@ -24,6 +26,7 @@
24 26
     - rake
25 27
     - puppetlabs_spec_helper
26 28
     - puppet-blacksmith
29
+  become: yes
27 30
 
28 31
 # NOTE(tobias.urdin): The build task is needed because puppet-blacksmith
29 32
 # doesn't provide a build task so it fails, we don't need one anyway since

Loading…
Cancel
Save