Re: [Puppet Users] Augeas and custom lenses?

2017-02-16 Thread otheus uibk
Ah, documented bug: https://tickets.puppetlabs.com/browse/FACT-696

On Thu, Feb 16, 2017 at 8:48 PM, otheus uibk  wrote:

> Dom, Sorry about resurrecting the old thread. About facts:  `facter -p`
> (2.4.6) shows puppet facts, but not the ones loaded via puppet modules in
> /var/lib/puppet/facts.d (unless --external-dir is specified). For that
> reason, perhaps, we started putting ours in /etc/facter.
>



-- 
Otheus
otheus.u...@gmail.com
otheus.shell...@uibk.ac.at

-- 
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/CALbQNd2A6YEFhRG8jp3kAvBPEgQK10frdpazhyyy3G2ZaMigjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Augeas and custom lenses?

2017-02-16 Thread otheus uibk
Dom, Sorry about resurrecting the old thread. About facts:  `facter -p`
(2.4.6) shows puppet facts, but not the ones loaded via puppet modules in
/var/lib/puppet/facts.d (unless --external-dir is specified). For that
reason, perhaps, we started putting ours in /etc/facter.

-- 
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/CALbQNd1VfgZtKcKkHbEfkQv7PP2KZA1FAKsbi-YDdVoampTi1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Augeas and custom lenses?

2017-02-15 Thread Dominic Cleal
On 15/02/17 10:38, otheus uibk wrote:
> Hi Dom,
> 
> The puppet documentation you references is just slight on details (well,
> that could be said about lots of projects these days). 

If you're replying to a five year old thread(!), some context would be
handy. For reference:
https://docs.puppet.com/puppet/latest/plugins_in_modules.html

> Does puppet put such lenses in its own directory?

Yes, in the agent's libdir, under augeas/lenses/.

> Does puppet ensure such lenses override the "default" ones mentioned in the 
> augtool
> page?

Yes. The agent directory is specified as an include directory to Augeas,
which always has precedence over Augeas' default directories.

> All that is mentioned is "Facts and Augeas lenses are used solely
> by Puppet agent."  But that's not really true of facts, as their
> visibility, once installed, are global.

Custom facts from Puppet are read only when the additional agent
directory is included (i.e. with Facter's -p flag). Lenses work in a
very similar way - they are not installed globally.

-- 
Dominic Cleal
domi...@cleal.org

-- 
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/c6104d3d-026e-04d9-c795-1592cc20a58b%40cleal.org.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Augeas and custom lenses?

2017-02-15 Thread otheus uibk
Hi Dom,

The puppet documentation you references is just slight on details (well, 
that could be said about lots of projects these days). 
Does puppet put such lenses in its own directory? Does puppet ensure such 
lenses override the "default" ones mentioned in the augtool page? All that 
is mentioned is "Facts and Augeas lenses are used solely by Puppet agent." 
 But that's not really true of facts, as their visibility, once installed, 
are global.

-- 
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/9d03a137-c8b6-493f-80ad-5d7ebc4af642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Augeas and custom lenses?

2012-11-07 Thread Dominic Cleal
On 06/11/12 22:31, Jakov Sosic wrote:
 Hi
 
 I want to modify one of the existing lenses to better suit my needs, but
 I don't know where to put it on the filesystem?
 
 It seems wrong to overwrite file in /usr/share/augeas/lenses/dist or to
 rebuild augeas-libs, is there any other way to distribute modifications
 of existing lenses or completely new lenses?

You can deploy them as file resources or packages (as Ian suggested)
into /usr/share/augeas/lenses, which takes precedence over the dist
subdirectory.

If you are using 2.7.18 or higher, you can also pluginsync lenses in the
same way as facts etc.  This should take precedence over dist lenses
too.  Store the lens at:

  modulename/lib/augeas/lenses/custom.aug

(http://docs.puppetlabs.com/guides/plugins_in_modules.html)

-- 
Dominic Cleal
Red Hat Engineering

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Augeas and custom lenses?

2012-11-06 Thread Ian Mortimer

On 07/11/12 08:31, Jakov Sosic wrote:


I want to modify one of the existing lenses to better suit my needs, but
I don't know where to put it on the filesystem?


I build an rpm which installs custom lenses in /usr/share/augeas/lenses


It seems wrong to overwrite file in /usr/share/augeas/lenses/dist or to
rebuild augeas-libs, is there any other way to distribute modifications
of existing lenses or completely new lenses?


It would be nicer to put them in /usr/share/augeas/lenses/local but
that doesn't work (or didn't the last time I tried).


--
Ian
 i.morti...@uq.edu.au Ian Mortimer
 Tel: +61 7 3346 8528 Science IT
  University of Queensland

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.