Puppet error in buildfarm master reconfiguration.bash
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
Asked by venkisagunner on 2018-05-05 20:58:26 UTC
Answers
It may be a copy/paste error but it looks like the final single quote (. Edit: resolved.'
) is missing on the autoreconfigure::command
value. The config value itself is single quoted and contains literal double quotes.
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.
Asked by nuclearsandwich on 2018-05-07 18:36:24 UTC
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.
Asked by venkisagunner on 2018-05-07 18:40:13 UTC
line 33 looks something like -----BEGIN RSA PRIVATE KEY-----. Also in my edited file, Im still having it. Is that a problem ?
Asked by venkisagunner on 2018-05-07 18:51:31 UTC
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.
Asked by gvdhoorn on 2018-05-06 05:26:11 UTC
I have edited my question and I have posted the yaml files.
Asked by venkisagunner on 2018-05-07 18:07:17 UTC