Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

cf-sketch unable to generate parameter set #456

Open
hubert-krause opened this issue Jun 25, 2015 · 1 comment
Open

cf-sketch unable to generate parameter set #456

hubert-krause opened this issue Jun 25, 2015 · 1 comment

Comments

@hubert-krause
Copy link

I've got a problem to use cf-sketch on debian jessie. I am unable to generate parameter set.
Exact OS-Version:

cat /etc/debian_version 
8.1

I am using the newest cf-engine version installed from:

cat /etc/apt/sources.list.d/cfengine-community.list 
deb http://cfengine.com/pub/apt/packages stable main

I try to remove traces from old design-center install at first,
by removing Files not tracked by my git-repository I use on
/var/cfengine/masterfiles. I have followed this guide to install:

https://docs.cfengine.com/docs/master/guide-design-center-configure-sketches-community.html

I put the right values into http_proxy and https_proxy for my environmen
and Installed: libjson-perl, libjson-pp-perl, libjson-multivalueordered-perl,
libterm-readline-gnu-perl, wget and curl.

First strange thing appeared after calling ./cf-sketch.pl:

Possible precedence issue with control flow operator at /root/source/design-center/tools/cf-sketch/perl-lib/JSON-2.53/lib/JSON/backportPP.pm line 1570.

Everything else is as expected. From that poin I have installed System::motd
as discribed in documentation the list command gives different output to what
is described in documentation:

list

The following sketches are installed:

CFEngine::sketch_template Standard template for Design Center sketches
System::motd Configure the Message of the Day

Then I start to set the Parameter. I use the default name for the parameter
set (System::motd-entry-000). The first value is 'Hello there!' but entering
the motd_path ends in

Error: Invalid validate command: unknown validation key

Only rescue is the use of STOP and return which gives:

Use of uninitialized value $ret in string eq at /root/source/design-center/tools/cf-sketch/perl-lib/Parser/Commands/17define.pl line 264.
Cancelling configuration.

If you need aditional information, please ask.

@tzz
Copy link
Contributor

tzz commented Jun 29, 2015

Hi,

the "precedence issue" is not a problem, just Perl being too cautious.

The interactive mode of cf-sketch is not maintained and currently not usable (I am not working on it, but maybe @nickanderson or others can comment). Right now, you can either:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants