Re: [Puppet Users] Getting the location of the manifest file

2021-08-17 Thread Ben Ford
Hiera provides an environment hierarchy. Is that what you're looking for?
https://puppet.com/docs/puppet/latest/hiera_config_yaml_5.html

On Mon, Aug 16, 2021 at 7:33 PM Go Iwai  wrote:

> Hello Martin,
>
> Let's say we have three directories:
>
> preproduction/  preproduction/  private/
>
> There are different manifest files saved in the same name, like
> service-deploy.pp.
>
> In the manifest service-deploy.pp, I want to get the absolute path to
> itself, then determine the variable of env like:
>
> $dir = dirname($file)  # $file is absolute path to service-deploy.pp
> like: '/path/to/manifests/preproduction/service-deploy.pp'
> $env = split($dir, '/')[-1]
>
> Then, hiera dynamically maps the correspond yaml file under the $env like:
>
> mapped_paths: [services, svc, "environments/%{env}/%{svc}.yaml"]
>
> This is what I want to realise. I know puppet has already provided a
> switch in response to $environment, e.g.,
> /etc/puppetlabs/code/environments/production. In this way, I have to
> maintain some branches in parallel. That is what I don't want to do.
>
> Kind regards,
> Go
>
> On Mon, Aug 16, 2021 at 7:53 PM Martin Alfke  wrote:
> >
> > Hi Go,
> >
> > what do you want to achieve?
> > When using puppet apply, a manifest can be anywhere on the filesystem.
> >
> > Best,
> > Martin
> >
> >
> > > On 16. Aug 2021, at 03:18, Go Iwai  wrote:
> > >
> > > Hello,
> > >
> > > I want to know the location where puppet-apply locally applied the
> > > manifest file.
> > >
> > > $ pwd
> > > /path/to/manifests
> > > $ puppet apply file.pp
> > >
> > > In this case above, can I anyhow get the location of
> > > /path/to/manifests/file.pp within file.pp?
> > >
> > > Kind regards,
> > > Go
> > >
> > > --
> > > 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/CAAyfkv-2dC--QR_1tz1ux%2BrgYaVsqjseB4oTEZ-EnkZPNXnn1w%40mail.gmail.com
> .
> >
> > --
> > 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/2E04526A-7F74-4F84-99E4-4C1D675FC67C%40gmail.com
> .
>
> --
> 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/CAAyfkv_qCcfWG5tcqkD%2BTAaSRPhr%3DsfCYYUP3q1MXToULxXyJw%40mail.gmail.com
> .
>

-- 
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/CACkW_L7XSALCjA67chyTjD%2Bpsx0-72kOOf%3D5HTC1kBjdGd3H%2BA%40mail.gmail.com.


[Puppet Users] puppet-agent 6 & 7 nightly builds for Ubuntu 18.04 Bionic ARM64 architecture

2021-08-17 Thread Gabriel Nagy
Hello,

We are happy to announce that puppet-agent nightly builds for Ubuntu 18.04
Bionic ARM64 (aarch64) architecture are now available under
nightlies.puppet.com/apt. Stable builds will also be available on
apt.puppet.com starting with a future puppet-agent release.

Please try them out and let us know if you have any questions!

Gabriel Nagy
Software Engineer - Puppet

-- 
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/CAALo1wHK31DWgdPOqEGRAwQ_yyDNHQ4CjC%2B1mM-xMv8616UY5A%40mail.gmail.com.


Re: [Puppet Users] puppet-agent 6 & 7 nightly builds for Ubuntu 18.04 Bionic ARM64 architecture

2021-08-17 Thread 'Dirk Heinrichs' via Puppet Users
Am Dienstag, den 17.08.2021, 18:36 +0300 schrieb Gabriel Nagy:

> We are happy to announce that puppet-agent nightly builds for Ubuntu
> 18.04 Bionic ARM64 (aarch64) architecture are now available under
> 
> nightlies.puppet.com/apt. Stable builds will also be available on 
> apt.puppet.com starting with a future puppet-agent release.

What about 20.04? Any plans for Debian (10, 11) arm64 packages? See 
https://tickets.puppetlabs.com/browse/PA-3840

Bye...

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/58d376240908e43a28aa8bb8bca917315b16a88b.camel%40opentext.com.


signature.asc
Description: This is a digitally signed message part