ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Puppet error in buildfarm master reconfiguration.bash

asked 2018-05-05 20:58:26 -0600

venkisagunner gravatar image

updated 2018-05-08 04:31:26 -0600

gvdhoorn gravatar image

This is in continuation with this question. I performed all the steps and now I'm facing this error when I'm running the reconfiguration.bash script for master.

Puppet (err): Evaluation Error: Error while evaluating a Function Call, Error from DataBinding 'hiera' while looking up 'ntp::autoupdate': (<unknown>): could not find expected ':' while scanning a simple key at line 33 column 1 at /root/buildfarm_deployment/modules/profile/manifests/ros/base.pp:8:3 on node ubuntu.localdomain

Can anyone help me out on what is actually going on ?

EDIT - 1

Common.yaml

jenkins::slave::ui_user: 'admin'
jenkins::slave::ui_pass: 'password' #some password
jenkins::slave::masterurl: 'http://master:8080'
master::ip: 192.168.182.xxx
repo::ip: 192.168.182.yyy
timezone: 'America/Los_Angeles'
ssh_keys:
    'jenkins-agent@my-buildfarm':
        key: #generated public key
        type: ssh-rsa
        user: jenkins-agent
    require: User[jenkins-agent]
autoreconfigure: false
autoreconfigure::command: 'bash -c "cd /root/buildfarm_deployment_config && git fetch origin xenialize && git reset --hard origin/xenialize && ./reconfigure.bash"'
docker::manage_kernel: false

Master.yaml

user::admin::name: admin
user::admin::password_hash: 'password' #password from jenkins::slave::ui_pass in common.yaml
credentials::jenkins-slave::username: jenkins-agent
credentials::jenkins-slave::id: 1e7d4696-7fd4-4bc6-8c87-ebc7b6ce16e5
credentials::jenkins-slave::passphrase: 4lRsx/NwfEndwUlcWOOnYg==
jenkins_java_args: '-XX:MaxPermSize=512m -Xmx20g'
jenkins::nodeMonitor::minimum_disk_space: 50G
jenkins::lts: true
jenkins::version: '2.89.4'
jenkins::slave::executors: 1
jenkins::slave::install_java: false
jenkins::slave::labels: agent_on_master
jenkins::slave::slave_mode: exclusive
jenkins::slave::slave_name: agent_on_master
jenkins::private_ssh_key: | #generated private key paired with public key in common.yaml.
jenkins::github::username: ros-pull-request-builder
jenkins::github::token: somegithubtoken
edit retag flag offensive close merge delete

Comments

Most likely you've got an error in one of the yaml files you've edited. If you can't show us the files, try some on-line/off-line yaml syntax checkers.

gvdhoorn gravatar image gvdhoorn  ( 2018-05-06 05:26:11 -0600 )edit

I have edited my question and I have posted the yaml files.

venkisagunner gravatar image venkisagunner  ( 2018-05-07 18:07:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-07 18:36:24 -0600

nuclearsandwich gravatar image

updated 2018-05-11 12:14:25 -0600

It may be a copy/paste error but it looks like the final single quote (') is missing on the autoreconfigure::command value. The config value itself is single quoted and contains literal double quotes.. Edit: resolved.

We discussed this offline and it was most likely a YAML syntax issue. When embedding SSH keys and other long values in YAML text blocks make sure the indentation level is correct.

edit flag offensive delete link more

Comments

Sorry. I missed the single quote while copy pasting. Apart from that I edited the files based on the previous question where you helped me out.

venkisagunner gravatar image venkisagunner  ( 2018-05-07 18:40:13 -0600 )edit

line 33 looks something like -----BEGIN RSA PRIVATE KEY-----. Also in my edited file, Im still having it. Is that a problem ?

venkisagunner gravatar image venkisagunner  ( 2018-05-07 18:51:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-05-05 20:58:26 -0600

Seen: 224 times

Last updated: May 11 '18