ansible-role-jenkins-slave icon indicating copy to clipboard operation
ansible-role-jenkins-slave copied to clipboard

Installing slave agent insufficiently documented

Open hasufell opened this issue 5 years ago • 2 comments

TASK [lean_delivery.jenkins_slave : Install slave jenkins agent] ***********************************************************************
fatal: [test]: FAILED! => {"changed": false, "msg": "HTTP error 401 HTTP Error 401: Invalid password/token for user: ********", "output": ""}

Configuration is:

    - name: Install jenkins slave
      become: yes
      import_role:
        name: lean_delivery.jenkins_slave
      vars:
        master_host: xxx.com
        master_port: 80
        master_url: https://xxx.com
        slave_linux_home: /home/build
        slave_linux_jenkins_cred_id: xxx-id
        slave_linux_jenkins_username: build
        slave_linux_user_group: build
        slave_linux_jenkins_public_key: "xxx"

The jenkins master uses google oauth for authentication. I'm not sure what kind of configuration this ansible role expects. The jar files are perfectly accessible via wget.

hasufell avatar Nov 22 '19 08:11 hasufell

@hasufell thanks for raising the issue!

tgadiev avatar Nov 27 '19 19:11 tgadiev

@hasufell it's not completely clear what credentials you provide to the role during installation. There are required parameters master_username and master_password mentioned in role's README. But I don't see these parameters in the example below. Did you define these parameters anywhere else?

tgadiev avatar Nov 27 '19 19:11 tgadiev