David Simas wrote:> I''m trying to use Puppet 0.19.3 to manage Yum repositories, using
the
> ''yumrepo'' type. Our repository configuration files
currently have a line
>
> baseurl=file:///net/yum/CentOS4.1/$basearch/
>
> where "$basearch" gets interpreted by ''yum''.
I''ve tried the line
>
> baseurl => "file:///net/yum/CentOS4.1/$basearch/"
>
> in my manifest, but ''puppet'' doesn''t put the
literal string "$basearch"
> into the Yum repository file it creates. How can I get
''puppet'' to
> write out that string? Or does ''puppet'' provide an
architecture variable
> in the same way it provides "$operatingsystem" that I can use for
selection
> in my manifest?
You can use a single-quoted strong for that value, or you can escape the
$ with a backslash.
Depending on what you mean by "architecture", you could probably
create
one from the different facts provided by Puppet. You can figure out
what facts are available by running ''facter'' with no
arguments.
--
Ah, but I am more perceptive than most of the universe. Especially
the parts of the universe that are vacuum. -- James Alan Gardner
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com