cern-it-sdc-id / puppet-lcgdm

The repo contains the puppet module implementing the installation and configuration of lcgdm components: DPM and LFC.
1 stars 10 forks source link

shift augeas: deploy augeas shift lens using pluginsync #5

Closed gwarf closed 8 years ago

gwarf commented 8 years ago

Deploy augeas shift lens with pluginsync in order to be compatible with new puppet versions/packaging, as with puppet 4 all-in-one-package augeas is packaged too and lenses are located in /opt/puppetlabs/puppet/share/augeas/lenses instead of /usr/share/augeas/lenses. See https://docs.puppetlabs.com/guides/plugins_in_modules.html#module-structure and https://docs.puppetlabs.com/puppet/latest/reference/types/augeas.html#augeas-attribute-load_path for official documentation.

andrea-manzi commented 8 years ago

Hello, is this change compatible with puppet 3.x? thanks! Andrea

gwarf commented 8 years ago

HI Andrea, Yes it is compatible with both puppet 4 and 3.8 (I don't know exactlly when it was added, but I presume it is quite old), please see the Puppet 3.8 documentation: https://docs.puppetlabs.com/puppet/3.8/reference/types/augeas.html#augeas-attribute-load_path Thanks! Baptiste

andrea-manzi commented 8 years ago

Ok i will make some tests, cause could be that people is still using old versions ( like 2.7 from EPEL6) and see if this change is fine thanks! Andrea

gwarf commented 8 years ago

OK, thanks. Sometimes adminstrating grids feels like doing some time travel ;) Let's hope that it will work, it would be cleaner than using tests in the manifests to find the puppet version/augeas facts location.

andrea-manzi commented 8 years ago

we have documented to use puppet 3.x at minimum , so this change can be merged

andrea-manzi commented 7 years ago

Hello, just to say that i need to readd part of the code cause this PR broke the augeas for shift.conf when running puppet in standalone mode

i made this changes

https://github.com/cern-it-sdc-id/puppet-lcgdm/commit/b3a336e7988d7c712eddce237766d9fe16d80af0

which should work both for puppet3 and 4 and both using a puppet master or not