Re: Problem with data

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
thierry thunot <[email protected]> writes:

      Hi there, I'm telling you about a concern I have regarding
      the use of data in variables. I want to automate (see
      previous post) the creation of debian sources.list files for
      example by creating a json array then using it for the
      creation of sources.list .

      When an entry is simple, a bed name, a gpg key and a single
      url everything works fine. But when I have two url for the
      same source list (ex mogodb) in the variable allowing me to
      create the list remains with the same value
      (repos_complet_$(nom)) the reporting does show 4 index
      entries but uses a single value for ""le nom de l'url
      formatee" is the same for both mongodb entries when they
      must be different how can i force cfengine to evaluate the
      variable for each value???

Hi Thierry,

I have only skimmed this but the first thing that jumped out at me was
the use of `edit_line' vs using a template.

Are you dealing with files that you are not fully controlling? I see
that there is some use of `empty_file_before_editing => "true";' which
indicates to me that you are doing full file management, so why not
render the full file instead of building it up with `edit_line'?

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/877d4yazut.fsf%40northern.tech.

-- 
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/877d4yazut.fsf%40northern.tech.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.