> To make it clearer, my primary concern is per-environment facts (and
> thus plugins)
>
>
> So here's how things stand as far as I can see:
>
> * factsyncing is deprecated for 0.25.x
>
> * plugins in modules with environments won't be working for 0.25.x
> so we can't distribute facts that way
Plugin distribution per-environment should work just fine in 0.25, and
as far as I've ever heard it does.
The only thing that doesn't work per-environment, AFAIK, is anything
that loads into memory in the puppetmaster, which means functions,
resource types, and providers.
>
> * We can no longer create a 'plugins' module per-environment and
> serve out of plugins/files/ as it always falls back to the
> autogenerated mount point
>
> * If we try to override this by defining a path for the plugins
> mount, Puppet ignores your attempt to set it.
These two seem to be a similar problem and definitely what I would
call a bug.
>
> The only workaround I have right now to allow you to have separate
> facts per environment is to create another module, say 'custom' and
> store all your plugins there, so a fact would be at:
>
> custom/files/facter/foo.rb
>
> and then the clients have:
>
> --pluginsync
> --factpath $vardir/facter
> --pluginsource puppet://$server/custom
>
>
> This is pretty crappy. I missed watching the relevant bug, so didn't
> notice Luke bumping it to 0.26.0
>
> http://projects.reductivelabs.com/issues/1175
>
>
> Am I missing something?
A bunch of bug reports?
--
I am not young enough to know everything. -- Oscar Wilde
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
Plugin distribution per-environment should work just fine in 0.25, and
On Aug 14, 2009, at 4:39 PM, Nigel Kersten wrote:
> To make it clearer, my primary concern is per-environment facts (and
> thus plugins)
>
>
> So here's how things stand as far as I can see:
>
> * factsyncing is deprecated for 0.25.x
>
> * plugins in modules with environments won't be working for 0.25.x
> so we can't distribute facts that way
as far as I've ever heard it does.
The only thing that doesn't work per-environment, AFAIK, is anything
that loads into memory in the puppetmaster, which means functions,
resource types, and providers.
These two seem to be a similar problem and definitely what I would
>
> * We can no longer create a 'plugins' module per-environment and
> serve out of plugins/files/ as it always falls back to the
> autogenerated mount point
>
> * If we try to override this by defining a path for the plugins
> mount, Puppet ignores your attempt to set it.
call a bug.
A bunch of bug reports?
>
> The only workaround I have right now to allow you to have separate
> facts per environment is to create another module, say 'custom' and
> store all your plugins there, so a fact would be at:
>
> custom/files/facter/foo.rb
>
> and then the clients have:
>
> --pluginsync
> --factpath $vardir/facter
> --pluginsource puppet://$server/custom
>
>
> This is pretty crappy. I missed watching the relevant bug, so didn't
> notice Luke bumping it to 0.26.0
>
> http://projects.reductivelabs.com/issues/1175
>
>
> Am I missing something?
--
I am not young enough to know everything. -- Oscar Wilde
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
So to be absolutely clear, we should be able to have plugins in
modules in environments and have them work correctly?
I just don't see any other way we get to specify plugin sources on a
per-environment basis without using $environment in $pluginsource on
the clients.
> * plugins loaded into memory on the server (e.g., functions) do not
> correctly work in environments
>
> Is that clear enough? Are the other behaviours unspecified here?
>
> If you can spend time on this, great, otherwise Markus or I can try to
> track it down.
looking today.
>
> On Sun, Aug 16, 2009 at 5:19 PM, Luke Kanies<lu...@madstop.com> wrote:
>> On Aug 14, 2009, at 6:38 PM, Nigel Kersten wrote:
>>> I'm more than happy to work on getting this fixed. It's just been
>>> unclear to me what is the expected behaviour in 0.25.x in this area.
>>
>> Expected behaviour is this:
>>
>> * plugins should correctly download from specific environments (and I
>> could swear I tested this and they did)
>
> So to be absolutely clear, we should be able to have plugins in
> modules in environments and have them work correctly?
If by "work" you mean "download to the client and work there", then yes.
>
> I just don't see any other way we get to specify plugin sources on a
> per-environment basis without using $environment in $pluginsource on
> the clients.
All fileserving, including plugin downloading, includes the
environment in the URI; something like:
/$environment/$datatype/$thin
It's all handled internally by the REST support, you should never have
to specify it.
>
>> * plugins loaded into memory on the server (e.g., functions) do not
>> correctly work in environments
>>
>> Is that clear enough? Are the other behaviours unspecified here?
>>
>> If you can spend time on this, great, otherwise Markus or I can try
>> to
>> track it down.
>
> looking today.
Awesome.
--
Everything that is really great and inspiring is created by the
individual who can labor in freedom. -- Albert Einstein