0
В /etc/puppetlabs/code/modules/send/manifests/init.ppКукольный файл URL приводит к 'Имя или служба не известны'
class send {
file { '/tmp/hello.txt':
owner => 'root',
group => 'root',
mode => '0644',
source => 'puppet://modules/send/hello.txt',
}
}
В/и т.д./puppetlabs/код/модули/отправить /files/hello.txt
puppet agent -t
отчеты
[[email protected] tmp]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for consul-test-02
Info: Applying configuration version '1438919627'
Error: /Stage[main]/Send/File[/tmp/hello.txt]: Could not evaluate: Could not retrieve file metadata for puppet://modules/send/hello.txt: getaddrinfo: Name or service not known
Notice: Applied catalog in 0.03 seconds
спасибо. Это работает. Но я не понимаю, почему тройная косая черта. – david
Хост-часть URL-адреса должна оставаться пустой, так что Puppet автоматически подключится к ведущему, который скомпилировал каталог. Вы также можете вставить действительное имя хоста здесь, если хотите, например. 'Кукольный: //my.puppet.server/modules/...'. –
Я вижу. Еще раз спасибо за помощь. – david