Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Roles/Profiles

$
0
0
Hi, I am trying to get roles/profiles working for the first time, so any guidance is appreciated **Error:** Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::role::{::web} for testpuppet.tech.mydomain.com (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 4, column: 3) on node testpuppet.tech.mydomain.com /etc/puppetlabs/code/environments/production/hiera.html --- version: 5 defaults: hierarchy: - name: "Per-node data (yaml version)" path: "nodes/%{::trusted.certname}" - name: "Per-node roles (yaml version)" path: "roles/%{::role}}" - name: "Common and fallback data" path: "common.yaml" defaults: data_hash: yaml_data /etc/puppetlabs/code/environments/production/manifests/site.pp node default { if $::role { include "role::{::web}" } else { include profile::base notify { "Node ${::fqdn} has no role set.": } } } /etc/puppetlabs/code/environments/production/modules/roles/default.pp #role/manifests/default.pp class role::default { include profile::base } /etc/puppetlabs/code/environments/production/modules/profile/manifests/web.pp #role/manifests/web.pp class role::web { include profile::base include profile::lamp } [root@testpuppet ~]# facter -p role web

Viewing all articles
Browse latest Browse all 6104

Trending Articles