puppet

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

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

How do I change the puppet version installed by vagrant

旧城冷巷雨未停 提交于 2019-12-03 08:12:55
I use vagrant 1.0.1 on a precise32 base box to play with puppet. Provisioning works fine, my manifests are being executed. By default vagrant installs puppet 2.7.14 under /opt/vagrant_ruby/bin/puppet on the guest. How can I configure vagrant (or who ever installs puppet on the guest) to use a more recent version like puppet 3.0 or 3.1? You need to rebuild the basebox that you are using in vagrant and install whatever version of Puppet you want. I did the same for Cent 6.3 w/puppet 3.0. The Veewee gem is a great utility to building and managing Vagrant baseboxes for Oracle Virtualbox. Also you

How do you concatenate strings in a Puppet .pp file?

江枫思渺然 提交于 2019-12-03 08:06:04
问题 Here is my naive approach: # puppet/init.pp $x = 'hello ' + 'goodbye' This does not work. How does one concatenate strings in Puppet? 回答1: Keyword variable interpolation: $value = "${one}${two}" Source: http://docs.puppetlabs.com/puppet/4.3/reference/lang_variables.html#interpolation Note that although it might work without the curly braces, you should always use them. 回答2: I use the construct where I put the values into an array an then 'join' them. In this example my input is an array and

Calling puppet defined resource with multiple parameters, multiple times

我只是一个虾纸丫 提交于 2019-12-03 07:29:48
I've got a simple puppet defined resource that looks like this: define mything($number, $device, $otherthing) { file{"/place/${number}": ensure => directory } mount { "/place/${number}": device => $device, ensure => mounted, require => File["/place/${number}"] } file {"/place/${number}/${otherthing}": ensure => directory, require => Mount['/place/${number}'] } } I need to call this resource a number of times with different parameters, but can't figure out how to do this without explicitly calling mything() repeatedly. Ideally, I'd have all the parameters for the stored in some sort of array,

Auto setting xdebug.remote_host ip address with vagrant/puppet

折月煮酒 提交于 2019-12-03 07:13:59
I'm in the process of setting up a Vagrant environment using puppet for provisioning. I'm stuck with one issue, I would like xdebug to 'just work' when running vagrant up however I need to specify the host machines ip address in the php.ini file xdebug.remote_host , obviously this is going to be different on each machine the config is used so I would like a way to automatically update that value when issuing vagrant up . VagrantFile: config.vm.network :forwarded_port, guest: 9000, host: 9000 .ini settings: 'xdebug.default_enable=1', 'xdebug.remote_enable=1', 'xdebug.remote_handler=dbgp',

Vagrant Share - Accessing Virtual Hosts and accessing those that are not in the default web root

主宰稳场 提交于 2019-12-03 07:02:48
I have Vagrant setup and running CentOS 6.5 x64 and it runs great. No issues running multiple sites within this one VM. All sites are running from the /var/www/public folder with the exception of PhpMyAdmin which runs from /var/www/html . I am trying to use vagrant share to gain access to any of the vhost sites that are running. The problem is that vagrant share is only displaying the contents of the /var/www/html folder. Is there something further that I need to do in order to gain access to my newly created /var/www/public folder? I have tried editing the hosts file, on another machine, to

Setting environment variables with puppet

大兔子大兔子 提交于 2019-12-03 02:39:27
I'm trying to work out the best way to set some environment variables with puppet. I could use exec and just do export VAR=blah . However, that would only last for the current session. I also thought about just adding it onto the end of a file such as bashrc. However then I don't think there is a reliable method to check if it is all ready there; so it would end up getting added with every run of puppet. myitcv I would take a look at this related question . *.sh scripts in /etc/profile.d are read at user-login time (as the post says, at the same time /etc/profile is sourced) Variables export

Git error when pushing: object 15abe3addde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm not sure how I have got myself into this mess. But I am running into error: object 15abe3addde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null when trying to push my repository to GitHub. The full push: [ashinn@puppet1 puppet]$ git push Counting objects: 27, done. Delta compression using up to 2 threads. Compressing objects: 100% (11/11), done. Writing objects: 100% (16/16), 5.67 KiB, done. Total 16 (delta 6), reused 14 (delta 4) error: object 15abe3addde5ad5f7d25e8f0f220d2e9faf3cb22:contains entries pointing to null sha1

Vagrant provisioning shell vs puppet vs chef

我的梦境 提交于 2019-12-03 01:21:40
问题 I have the following setup: Many different projects which are separate git repositories, but all have mostly the same server configuration Each project in turn depends on many other projects and we use the composer dependency manager to get them together (PHP language here). I want to use Vagrant and include a Vagrant file in each repository, so my team members can clone a repository, run vagrant up and be ready to go. My question is now directed towards the provisioning. I need to install

自动化运维工具――puppet详解(二)

匿名 (未验证) 提交于 2019-12-02 23:40:02
一、模块介绍   1、什么是模块     通常情况把manifest文件分解成易于理解得结构,例如类文件,配置文件分类存放,并通过某种机制整合使用,这种机制就是模块,有助于结构化、层次化的方式使用puppet,puppet则基于模块自动装载器     从另一个角度来说,模块实际就是按约定的预约定的结构存放了多个我呢见或子目录,目录里的这些文件或子目录必须遵循命令规范   2、模块的命令规范,如下范例 [root@web1 redis]# tree . ├―― files │ ├―― redis-master.conf │ └―― redis-sentinel.conf ├―― lib ├―― manifests │ ├―― init.pp │ ├―― master.pp │ └―― slave.pp ├―― spec ├―― templates │ └―― redis-slave.conf.erb └―― test      MODULE NAME     manifests/:必须存在       init.pp 必须一个类定义,类名称必须与模块名称相同     files/:静态文件       每个文件的访问路径遵循:puppet:///modules/MODULE_NAME/FILE_NAME;     templates       每个文件的访问路径遵循:tempate