puppet-enterprise

Windows Puppet agent does not connect to the AWSOpsWorks Puppet Enterprise master

不打扰是莪最后的温柔 提交于 2019-12-30 10:52:58
问题 I have created the puppet master using aws opsworks. and I am able to add ami linux nodes automatically to the puppet master. I am having issues when I tried to to add a windows 64 bit node to my puppet master by following this link https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package I copied the puppet-agent-x64.msi from the puppet master present in location to the windows node and /opt/puppetlabs/server/data/packages/public/

Windows Puppet agent does not connect to the AWSOpsWorks Puppet Enterprise master

╄→尐↘猪︶ㄣ 提交于 2019-12-30 10:52:23
问题 I have created the puppet master using aws opsworks. and I am able to add ami linux nodes automatically to the puppet master. I am having issues when I tried to to add a windows 64 bit node to my puppet master by following this link https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package I copied the puppet-agent-x64.msi from the puppet master present in location to the windows node and /opt/puppetlabs/server/data/packages/public/

Windows Puppet agent does not connect to the AWSOpsWorks Puppet Enterprise master

本秂侑毒 提交于 2019-12-30 10:52:21
问题 I have created the puppet master using aws opsworks. and I am able to add ami linux nodes automatically to the puppet master. I am having issues when I tried to to add a windows 64 bit node to my puppet master by following this link https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package I copied the puppet-agent-x64.msi from the puppet master present in location to the windows node and /opt/puppetlabs/server/data/packages/public/

How to store linux command output into a variable in puppet

我们两清 提交于 2019-12-18 16:45:09
问题 Is it possible to store a linux command result in variable? I am trying to store an encrypted value in a variable. To encrypt I am using base64 command. To store it in variable, I am using generate method. But I am not able to store a value. $secretvalue = generate("/bin/bash","-c","/usr/bin/echo ${password} | /usr/bin/base64") 回答1: If you want to execute any command on Puppet Master server you can use inline_template function with ERB template inside and Ruby code for execute shell command:

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

How to secure copy using Puppet?

随声附和 提交于 2019-12-12 01:34:42
问题 I have been trying to copy a directory from my master to different hosts. I have a script that checks out a code and puts it in certain directory. My script looks like below. #!/bin/bash export CVSROOT=:pserver:anonymous@server101:2401/cvs/PXI/ cvs checkout -r 2_a Jcode mv Jcode /etc/example/puppettest/ Now I want to copy this Jcode to my hosts. 回答1: Assuming you are trying to copy /etc/example/puppettest to your nodes you would have to create a mount point in ${configdir}/fileserver.conf

Fetch variable from yaml in puppet manifest

拈花ヽ惹草 提交于 2019-12-11 05:13:40
问题 I'm doing one project for puppet, however currently stuck in one logic. Thus, want to know can we fetch variable from .yaml, .json or plain text file in puppet manifest file. For example, My puppet manifest want to create user but the variable exist in the .yaml or any configuration file, hence need to fetch the varibale from the outside file. The puppet manifest also can do looping if it exist multiple users in .yaml file. I read about hiera but let say we are not using hiera is there any

How to use setm in puppet

邮差的信 提交于 2019-12-02 02:18:04
问题 I would like to change a one property name ( " modcluster.proxylist " ) with setm Command in Puppet. My following code is not working. Any help is much appreciated. augeas { "jboss_domain_config": incl => "/opt/domain.xml", lens => "Xml.lns", context => "/files/opt/domain.xml", onlyif => "match /files/opt/domain.xml/domain/server-groups/*/system-properties/*/#attribute/name modcluster.proxylist" changes => "setm /files/opt/domain.xml/domain/server-groups server-group[.]/system-properties

Windows Puppet agent does not connect to the AWSOpsWorks Puppet Enterprise master

佐手、 提交于 2019-12-02 00:31:46
I have created the puppet master using aws opsworks. and I am able to add ami linux nodes automatically to the puppet master. I am having issues when I tried to to add a windows 64 bit node to my puppet master by following this link https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package I copied the puppet-agent-x64.msi from the puppet master present in location to the windows node and /opt/puppetlabs/server/data/packages/public//windows-x86_64-/ and ran the installer to install the agent. the installation is successful and the Start

How to store linux command output into a variable in puppet

谁说我不能喝 提交于 2019-11-30 13:54:04
Is it possible to store a linux command result in variable? I am trying to store an encrypted value in a variable. To encrypt I am using base64 command. To store it in variable, I am using generate method. But I am not able to store a value. $secretvalue = generate("/bin/bash","-c","/usr/bin/echo ${password} | /usr/bin/base64") If you want to execute any command on Puppet Master server you can use inline_template function with ERB template inside and Ruby code for execute shell command: $password = "12345" $secretvalue = inline_template("<%= `/bin/echo ${password} | /usr/bin/base64` %>")