V
V
Victor2015-03-30 21:29:40
linux
Victor, 2015-03-30 21:29:40

How to add key to ubuntu repository using puppet?

I made my repository and the key to it. I'm trying to add this key with a directive:

apt::source { 'reposerv':
                comment         => '<i>comment</i>',
                location        => 'http://reposerv.localdomain',
                release         => 'stable',
                repos           => 'main',
                architecture    => 'amd64',
                include_src     => false,
                key             => <i>key_name</i>,
                key_source      => 'puppet:///modules/videoserver/repository-sign.key'
        }

I am getting an error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: validate_re(): "puppet:///modules/videoserver/repository-sign.key" does not match ["\\Ahttps?:\\/\\/", "\\Aftp:\\/\\/", "\\A\\/\\w+"] at /etc/puppet/modules/apt/manifests/key.pp:68 on node puppettest2.localdomain

It turns out I can not specify the source through puppet:///modules/..?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rionnagel, 2016-11-24
@rionnagel

Through auth.conf it seems possible to resolve.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question