puppetlabs-apache

Puppet error : could not retrieve catalog from remote server: SSL_connect returned=1 errno=0

人盡茶涼 提交于 2019-12-12 02:11:23
问题 I am trying to setup puppet master and puppet agent in aws ec2 instances-linux ami. when i run my puppet agent to generate the certificate for the master to sign i encounter the below error. Puppet Master: [root@ip-10-**-*-*** /]# sudo yum install puppet-server [root@ip-10-**-*-*** /] sudo service puppetmaster start Starting puppetmaster: [ OK ] Puppet Agent: [root@ip-10-**-*-*** /]# sudo yum install puppet [root@ip-10-**-*-*** /] File excerpt /etc/puppet/puppet.conf [main] server = hostname

Cannot create files inside defined type

牧云@^-^@ 提交于 2019-12-11 23:11:53
问题 I want to create files inside a defined type. I have tried it several ways but couldn't solve the issue. Let me explain you my case. I am creating some files using temapltes and I could do that operation perfectly. I am using below ruby function to gather filename, location kind of data require 'rexml/document' include REXML module Puppet::Parser::Functions newfunction(:getConfigFileDetails, :type => :rvalue ) do |args| fileDetails= [] doc = REXML::Document.new args[0] doc.elements.each("node

Cannot parse array into defined type

会有一股神秘感。 提交于 2019-12-11 10:46:37
问题 I am using following puppet class class myclass{ $foo = [{"id" => "bar", "ip" => "1.1.1.1"}, {"id" => "baz", "ip" => "2.2.2.2"}] map {$foo:} define map () { notify {$name['id']: } } } But this gives me err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Change_config::Map[ip1.1.1.1idbar]" warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run What is the reason for

Is there a way to define relationships between create_resources

泄露秘密 提交于 2019-12-11 08:33:24
问题 In my puppet class i use 3 create_resources. I want to execute these create_resources in order. Thus there are relationships between each other create_resources(change_config::cr1, $resource) create_resources(change_config::cr2, $resource) create_resources(change_config::cr3, $resource) cr3 should be executed after cr2 and cr2 should be after cr1 . Is there a way to do this ? Regards, Malintha 回答1: You can use Puppet Collectors here. Simply add this line into your manifest: Change_config::Cr1

Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3

泄露秘密 提交于 2019-12-08 02:49:36
问题 I can see following error in puppet Enterprise Console:: Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate revoked Also I followed following steps:: I ran puppet agent -t on Windows puppet Enterprise client. I ran puppet cert list and sign client certificate from master. Again I ran puppet agent -t but I am getting following error on console :: Warning: Unable to fetch my node definition, but the

Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3

让人想犯罪 __ 提交于 2019-12-06 13:23:01
I can see following error in puppet Enterprise Console:: Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate revoked Also I followed following steps:: I ran puppet agent -t on Windows puppet Enterprise client. I ran puppet cert list and sign client certificate from master. Again I ran puppet agent -t but I am getting following error on console :: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: SSLconnect returned=1 errno=0 state=SSLv3 read server certificate B: c