FAQ
We have RPMs which requires an environment variable to be set prior to
installation (contains conf information). What is the best way to do
this? I'd like to avoid setting this environment var in each systems'
profile. It would be nice to have an option to do this within the package
type, but I think that's not very likely.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Nikola Petrov at Jun 20, 2013 at 2:53 pm
    You can get the environment variable from puppet.conf or if it is
    another variable, you can use facter. As long as you are controlling
    your packages you can check those after that.

    --
    Nikola
    On Wed, Jun 19, 2013 at 10:08:46AM -0700, Kevin Lange wrote:
    We have RPMs which requires an environment variable to be set prior to
    installation (contains conf information). What is the best way to do
    this? I'd like to avoid setting this environment var in each systems'
    profile. It would be nice to have an option to do this within the package
    type, but I think that's not very likely.

    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users.
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Michael Dodwell at Jun 21, 2013 at 12:37 am
    Another method is to use exec {} instead of package {} to install the rpm.
    This will enable you to set environment => 'BATCH=myval', path => ['/bin',
    '/usr/bin'] etc

    use unless to check if the package is installed so it doesn't try to
    install it multiple times.
    On Friday, June 21, 2013 12:53:38 AM UTC+10, nikolavp wrote:

    You can get the environment variable from puppet.conf or if it is
    another variable, you can use facter. As long as you are controlling
    your packages you can check those after that.

    --
    Nikola
    On Wed, Jun 19, 2013 at 10:08:46AM -0700, Kevin Lange wrote:
    We have RPMs which requires an environment variable to be set prior to
    installation (contains conf information). What is the best way to do
    this? I'd like to avoid setting this environment var in each systems'
    profile. It would be nice to have an option to do this within the package
    type, but I think that's not very likely.

    --
    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...@googlegroups.com <javascript:>.
    To post to this group, send email to puppet...@googlegroups.com<javascript:>.
    Visit this group at http://groups.google.com/group/puppet-users.
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    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+unsubscribe@googlegroups.com.
    To post to this group, send email to puppet-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/puppet-users.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJun 19, '13 at 5:18p
activeJun 21, '13 at 12:37a
posts3
users3
websitepuppetlabs.com

People

Translate

site design / logo © 2021 Grokbase