Some questions about r10k with hiera
Hi all! I newbie in use puppet + hiera + r10k and i have some questions:
1) Double declarations. For example, i have 2 hiera files: puppet.local.yaml and common.yaml . In both i write
classes: - ntp
and, as expected, i get an error
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Ntp] is already declared; cannot redeclare at /etc/puppetlabs/code/environments/production/site/profile/manifests/base.pp:2 at /etc/puppetlabs/code/environments/production/site/profile/manifests/base.pp:2:3 on node puppetdb.local
So, i can trace and rectify this 2 files, then clear all double declarations, but what can i do, if this files - 1000 and many more?
2) R10k modules dependings. How to install modules dependings with r10k & Puppetfile? For example, i want to install puppetdb and i write my Puppetfile for r10k:
mod 'puppetlabs/puppetdb', :latest
But it does not install any dep's
Warning: Missing dependency 'puppetlabs-firewall': 'puppetlabs-puppetdb' (v5.1.2) requires 'puppetlabs-firewall' (>= 1.1.3 <2.0.0) Warning: Missing dependency 'puppetlabs-inifile': 'puppetlabs-puppetdb' (v5.1.2) requires 'puppetlabs-inifile' (>= 1.1.3 <2.0.0) Warning: Missing dependency 'puppetlabs-postgresql': 'puppetlabs-puppetdb' (v5.1.2) requires 'puppetlabs-postgresql' (>= 4.0.0 <5.0.0)
and i dont know what it's needed. So, i can somehow say to him, what he must install puppetdb and all dependency?