Re: [Puppet Users] Problem with exported ressource file.

2024-04-12 Thread 'Dirk Heinrichs' via Puppet Users
Am Freitag, dem 12.04.2024 um 09:38 +0200 schrieb Albert Shih:

Well...I'm not a dev maybe it's way I don't understand if I export to
two differents host/tags those files are on two differents hosts. How can
they be in conflict ?

That's not the point. Puppet doesn't know your usecase. In general, exported 
resources are used to distribute data from one set of hosts to another one. 
Most prominent example being SSH host keys, which are usually exported by all 
your hosts and then imported by all others.

So it is generally possible that an exported file resource is being


  1.  exported by multiple hosts
  2.  used by multiple (other) hosts

Thus, Puppet needs to take some precautions to avoid possible conflicts. That 
being said, I don't think that "file" resources are a good fit for exporting at 
all.

HTH...

Dirk

--

Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Phone: +49 2226 15966 18
Email: dhein...@opentext.com
Website: 
www.recommind.de
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f4de896f2ef7118668efc3f63043e07176001a97.camel%40opentext.com.


Re: [Puppet Users] Problem with exported ressource file.

2024-04-12 Thread Albert Shih
Le 09/04/2024 à 09:01:42-0700, Mike Langhorst a écrit
Hi, 

> So, assuming that you were to export this resource on 2 different hosts.  How
> could you collect it <<| |>>, as there could only be one /etc/something.conf 
> on
> that collecting host.  That's why the exported resource path needs to be
> unique, can't just name it something unique if the resulting file would be in
> conflict.

Well...I'm not a dev maybe it's way I don't understand if I export to
two differents host/tags those files are on two differents hosts. How can
they be in conflict ? 

For example, if I have «something» let's say a service/daemon running on 

  «master-host»

and for each 

  «slave-host»

I need to put a config file who depend on a token distributed by the
master. For me the most «natural» method would be to exported the «token»
to each slave host from the master.

I don't see how can that be conflict. 

regards
-- 
Albert SHIH 🦫 🐸
France
Heure locale/Local time:
ven. 12 avril 2024 09:32:07 CEST

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/Zhjk_vTwGh1QTu9b%40io.chezmoi.fr.