Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Package install_options

Received: by 10.224.223.14 with SMTP id ii14mr3122021qab.3.1350065991077;
        Fri, 12 Oct 2012 11:19:51 -0700 (PDT)
X-BeenThere: puppet-users@googlegroups.com
Received: by 10.229.172.131 with SMTP id l3ls4150221qcz.1.gmail; Fri, 12 Oct
 2012 11:19:25 -0700 (PDT)
Received: by 10.224.59.83 with SMTP id k19mr957099qah.9.1350065965486;
        Fri, 12 Oct 2012 11:19:25 -0700 (PDT)
Date: Fri, 12 Oct 2012 11:19:25 -0700 (PDT)
From: Ellison Marks <gty...@gmail.com>
To: puppet-users@googlegroups.com
Message-Id: <4a9770fe-b261-42bc-89d3-db754907f4b8@googlegroups.com>
Subject: Package install_options
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_184_22987017.1350065965105"

------=_Part_184_22987017.1350065965105
Content-Type: multipart/alternative; 
	boundary="----=_Part_185_30626898.1350065965105"

------=_Part_185_30626898.1350065965105
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Now that the install_options parameter can be applied to all package 
providers, does anyone have advice on the best way to specify options to 
yum?

For example, considering the common pattern of leaving a repo disabled most 
of the time, if I wanted to pass

--enablerepo=epel

to yum, would I set

install_options => ['--enablerepo=epel']

or

install_options => [{'--enablerepo' => 'epel'}]

or

install_options => {'--enablerepo' => 'epel'}

or something completely different?

------=_Part_185_30626898.1350065965105
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Now that the install_options parameter can be applied to all package providers, does anyone have advice on the best way to specify options to yum?<br><br>For example, considering the common pattern of leaving a repo disabled most of the time, if I wanted to pass<br><br>--enablerepo=epel<br><br>to yum, would I set<br><br>install_options =&gt; ['--enablerepo=epel']<br><br>or<br><br>install_options =&gt; [{'--enablerepo' =&gt; 'epel'}]<br><br>or<br><br>install_options =&gt; {'--enablerepo' =&gt; 'epel'}<br><br>or something completely different?<br>
------=_Part_185_30626898.1350065965105--

------=_Part_184_22987017.1350065965105--