yumrepo still not working ?

34 views
Skip to first unread message

Fabrice Bacchella

unread,
Aug 25, 2017, 9:20:08 AM8/25/17
to Puppet Users
I tried to create a yumrepo for elasticsearch, and like many years ago, puppet seems to be unable to create it in the requested files:

    yumrepo {'elasticsearch-5.x':
        name       =>  'elasticsearch-5.x',
        baseurl    => 'https://artifacts.elastic.co/packages/5.x/yum',
        mirrorlist => 'absent',
        gpgcheck   => true,
        gpgkey     => 'https://artifacts.elastic.co/GPG-KEY-elasticsearch',
        descr      => 'Elasticsearch repository for 5.x packages',
        target     => '/etc/yum.repos.d/elasticsearch.repo',
    }

And puppet running:
Notice: /Stage[pre]/Bigdatademo::Yum/Yumrepo[elasticsearch-5.x]/ensure: created

What target then is good for ? see https://docs.puppet.com/puppet/latest/types/yumrepo.html

target

The filename to write the yum repository to.

Rob Nelson

unread,
Aug 25, 2017, 2:10:39 PM8/25/17
to puppet...@googlegroups.com
The puppet log shows the resource name only. Did you check for the presence of the file at all?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/65CB405A-C426-4823-88BE-F71A8B3CB779%40orange.fr.
For more options, visit https://groups.google.com/d/optout.
--
Rob Nelson

Fabrice Bacchella

unread,
Aug 25, 2017, 5:52:40 PM8/25/17
to puppet...@googlegroups.com

Tomáš Krasničan

unread,
Aug 26, 2017, 10:37:40 AM8/26/17
to Puppet Users

Fabrice Bacchella

unread,
Aug 26, 2017, 6:36:45 PM8/26/17
to puppet...@googlegroups.com
Open since june 2014...

Le 26 août 2017 à 16:37, Tomáš Krasničan <to...@krasnican.cz> a écrit :

--
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.

Justin DynamicD

unread,
Aug 31, 2017, 12:37:36 PM8/31/17
to Puppet Users
In the case of elasticsearch, that team has a rather robust module on the forge that will manage that for you (and is regularly updated, so it's very current)... which means you may be able to dig through their module and see how they are adding repos then run with that for other repos you want to manage?
Reply all
Reply to author
Forward
0 new messages