[katello] Any way to access lifecycle environment from puppet?

I'd like create cron jobs with puppet based on the katello lifecycle
environment for the host. Is there any way to access this variable as a
facter fact?

Thanks.

I should clarify: I want to create a facter fact for lifecycle
environement…Any ideas how to do this? I"m not sure how to access
lifecycle environment from the command line on a content-host.

Not as a fact, but it's similarly exposed via the ENC parameters in your
manifests as $::kt_env, there's also $::kt_cv for the Content View, and
$::kt_org for the Organization.

Hope that helps.

··· On Wed, Nov 05, 2014 at 10:08:39AM -0800, Garrett DeMarco wrote: > I'd like create cron jobs with puppet based on the katello lifecycle > environment for the host. Is there any way to access this variable as a > facter fact? > > Thanks.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters

Perfect. This is what I needed. Thanks for the help.

··· On Thursday, November 6, 2014 5:29:32 AM UTC-5, Stephen Benjamin wrote: > > On Wed, Nov 05, 2014 at 10:08:39AM -0800, Garrett DeMarco wrote: > > I'd like create cron jobs with puppet based on the katello lifecycle > > environment for the host. Is there any way to access this variable as a > > facter fact? > > > > Thanks. > > Not as a fact, but it's similarly exposed via the ENC parameters in your > manifests as $::kt_env, there's also $::kt_cv for the Content View, and > $::kt_org for the Organization. > > Hope that helps. > > > > -- > Stephen Benjamin > > ______________________________________________________ > Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn > Handelsregister: Amtsgericht München, HRB 153243 > Geschäftsführer: Charles Cachera, Michael Cunningham, > Michael O'Neill, Charles Peters > > >