cfengine / design-center

CFEngine community-contributed content
http://cfengine.com/
Other
80 stars 68 forks source link

VCS::vcs_mirror accepting default runas value for paramerter produces invalid syntax #232

Open nickanderson opened 11 years ago

nickanderson commented 11 years ago
cf-sketch> list

The following sketches are installed:

1. CFEngine::stdlib (library)
2. VCS::vcs_mirror (not configured)

Use list -v to show the activation parameters.

cf-sketch> configure VCS::vcs_mirror

Entering interactive configuration for sketch VCS::vcs_mirror.
Please enter the requested parameters (enter STOP to abort):

Parameter 'vcs' must be a PATH.
Please enter vcs: /usr/bin/git

Parameter 'path' must be a PATH.
Please enter path: /tmp/testclone

Parameter 'origin' must be a HTTP_URL|PATH.
Please enter origin: git://github.com/cfengine/design-center.git

Parameter 'branch' must be a NON_EMPTY_STRING.
Please enter branch [master]: master

Parameter 'runas' must be a NON_EMPTY_STRING.
Please enter runas [getenv("USER", "128")]: getenv("USER", "128")

Parameter 'umask' must be a OCTAL.
Please enter umask [022]: 022

Parameter 'parent_dir' must be an array.
Please enter each key and value in turn, empty key to finish.
Please enter next key: 

Parameter 'activated' must be a CONTEXT.
Please enter activated [any]: any

Parameter 'nowipe' must be a CONTEXT.
Please enter nowipe [!any]: !any
Configured: VCS::vcs_mirror #1

cf-sketch> run

Generated standalone run file /home/cmdln/.cfagent/inputs/standalone-cf-sketch-runfile.cf

Now executing the runfile with: /var/cfengine/bin/cf-agent  -f /home/cmdln/.cfagent/inputs/standalone-cf-sketch-runfile.cf

cf3> /home/cmdln/.cfagent/inputs/standalone-cf-sketch-runfile.cf:28,59: syntax error, near token 'USER'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:1,5: syntax error, near token ', "'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:1,8: syntax error, near token '128'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:1,11: syntax error, near token ')"'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:1,12: syntax error, near token ';'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:2,35: syntax error, near token '_001_VCS__vcs_mirror'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:2,42: syntax error, near token 'string'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:2,45: syntax error, near token '=>'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:2,51: syntax error, near token '022"'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:2,52: syntax error, near token ';'
cf3> /home/cmdln/.cfagent/inputs/sketches/CFEngine/stdlib/cfengine_stdlib.cf:3,49: syntax error, near token '_001_VCS__vcs_mirror'
Fatal CFEngine error: Too many errors
CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
Was not able to copy /home/cmdln/.cfagent/bin/cf-monitord to /usr/local/sbin/cf-monitord
I: Made in version 'Community Failsafe.cf 1.0.0' of '/home/cmdln/.cfagent/inputs/failsafe.cf' near line 145
I: Comment: Ensure cfengine binaries were copied to /usr/local/sbin

Was not able to copy /home/cmdln/.cfagent/bin/cf-agent to /usr/local/sbin/cf-agent
I: Made in version 'Community Failsafe.cf 1.0.0' of '/home/cmdln/.cfagent/inputs/failsafe.cf' near line 145
I: Comment: Ensure cfengine binaries were copied to /usr/local/sbin

Was not able to copy /home/cmdln/.cfagent/bin/cf-serverd to /usr/local/sbin/cf-serverd
I: Made in version 'Community Failsafe.cf 1.0.0' of '/home/cmdln/.cfagent/inputs/failsafe.cf' near line 145
I: Comment: Ensure cfengine binaries were copied to /usr/local/sbin

cf-sketch> 
tzz commented 11 years ago

I think this is resolved in @zzamboni latest work on cf-sketch.