Разметил новое окружение
# tree
.
├── manifests
│ └── site.pp
└── modules
└── asterisk
├── files
│ ├── extensions.conf
│ ├── extensions-macro.conf
│ ├── extensions-menu.conf
│ ├── queues.conf
│ ├── sip.conf
│ └── users.conf
└── manifests
└── init.pp
5 directories, 8 files
# cat manifests/site.pp
node 'nodename' {
class {'asterisk':}
}
cat modules/asterisk/manifests/init.pp
class asterisk {
##############################################
### ###
### Asterisk ###
### ###
##############################################
$asterisk_packages = [ asterisk ]
package { $asterisk_packages:
ensure => present,
}
file { '/etc/asterisk':
ensure => directory,
source => "puppet:///asterisk/",
audit => 'content',
owner => 'asterisk',
group => 'asterisk',
purge => 'false',
}
}
На попытку создать в директории /etc/asterisk файлы получаю в агенте ошибку:
Error: /Stage[main]/Asterisk/File[/etc/asterisk]: Could not evaluate: Could not retrieve file metadata for puppet:///asterisk: Error 400 on SERVER: Not authorized to call find on /file_metadata/asterisk with {:links=>"manage", :source_permissions=>"use"}
Wrapped exception: Error 400 on SERVER: Not authorized to call find on /file_metadata/asterisk with {:links=>"manage", :source_permissions=>"use"}