Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Kubernetes | Hiera | Values not fetched #491

Closed
bitvijays opened this issue Mar 2, 2021 · 0 comments 路 Fixed by #494
Closed

Installation Kubernetes | Hiera | Values not fetched #491

bitvijays opened this issue Mar 2, 2021 · 0 comments 路 Fixed by #494

Comments

@bitvijays
Copy link
Contributor

bitvijays commented Mar 2, 2021

Dear Puppet Team,

Hope you are doing well and had a good weekend. Thank you for the continuous support 馃憤

Currently trying to install Kubernetes using Puppetlabs-Kubernetes and getting an error related to Hiera. My apologies, my knowledge of Hiera is None.

What you expected to happen?

Kubernetes installed

What happened?

It seems that Puppet did not find the location of Debian.yaml and cloudcore.bitvijays.local.

root@cloudcore:/tmp# puppet agent -t
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Kubernetes]:
  parameter 'api_server_count' expects an Integer value, got Undef
  parameter 'token' expects a String value, got Undef
  parameter 'discovery_token_hash' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 162, column: 3) on node cloudcore.bitvijays.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

How to reproduce it?

Install fresh puppetserver on Debian OS.

Anything else we need to know?

As suggested in the Documentation, Added the {$OS}.yaml and {$hostname}.yaml files to Hiera (data) folder.

Files in the data directory:

root@puppet:/etc/puppetlabs/code/environments/production/modules/kubernetes# ls data/
cloudcore.bitvijays.local.yaml  common.yaml  Debian.yaml
@bitvijays bitvijays changed the title Installation Kubernetes | Hiera | Location of YAML files Installation Kubernetes | Hiera | Values not fetched Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant