マスターレス システムで r10k/puppet を実行するとモジュールが実行されない

マスターレス システムで r10k/puppet を実行するとモジュールが実行されない

私はフォローしていたこのガイドマスターレスの Puppet マシンをセットアップして、Puppet を使用して自分自身を管理できるようにします (ノードを追加して後でこれをマスターとして使用できるようにしますが、これは今は関係ありません)。また、nginx がインストールされ、サイト構成ファイルが存在することを確認するための基本モジュールをセットアップしました。ただし、を使用して環境を実行するとsudo r10k deploy environment -p -v、すべてが更新されているように見えますが、モジュールは適切に実行されていないようです。

私のモジュールは見つかりましたここ私のコントロールリポジトリはここ

私のモジュールの構造が間違っているのでしょうか? 何か見落としているのでしょうか? Puppet サービスのステータスを確認すると、ファイルsudo service puppet statusにいくつかのエラーが出力されるためでしょうかheira.yaml?

● puppet.service - Puppet agent
   Loaded: loaded (/lib/systemd/system/puppet.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-02-22 23:07:06 UTC; 3min 0s ago
 Main PID: 19319 (puppet)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/puppet.service
           └─19319 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent --no-daemonize

Feb 22 23:07:06 puppeteer systemd[1]: Started Puppet agent.
Feb 22 23:07:07 puppeteer puppet-agent[19319]: Starting Puppet client version 5.4.0
Feb 22 23:07:09 puppeteer puppet-agent[19327]: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Lookup of key 'classes' failed:  The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, entry 'hierarchy' index 0 expects a Struct value, got String
Feb 22 23:07:09 puppeteer puppet-agent[19327]:   The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, entry 'hierarchy' index 1 expects a Struct value, got String
Feb 22 23:07:09 puppeteer puppet-agent[19327]:   The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, entry 'hierarchy' index 2 expects a Struct value, got String
Feb 22 23:07:09 puppeteer puppet-agent[19327]:   The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, unrecognized key 'backends'
Feb 22 23:07:09 puppeteer puppet-agent[19327]:   The Lookup Configuration at '/etc/puppetlabs/puppet/hiera.yaml' has wrong type, unrecognized key 'yaml' (file: /etc/puppetlabs/code/environments/production/site.pp, line: 1, column: 1) on node puppeteer.c.personal-server-193919.internal
Feb 22 23:07:09 puppeteer puppet-agent[19327]: Applied catalog in 0.03 seconds

の内容heira.yaml

---
# Hiera 5 Global configuration file

version: 5

# defaults:
#   data_hash: yaml_data
# hierarchy:
#  - name: Common
#    data_hash: yaml_data
#hierarchy: [] (tried with and without this commented out)
:backends:
  - yaml
:hierarchy:
  - "%{clientcert}"
  - "%{environment}"
  - global
:yaml:
  :datadir: '/etc/puppetlabs/puppet/environmets/%{environment}/hieradata'

関連情報