问题 Windows上的Puppet已经从Windows7上的2.7.22升级到3.5.1。 当puppet apply被执行时,它看起来像木偶卡住了。 重试显示了同样的行为,并在几分钟后完成运行,而傀儡表示运行花了0.17 seconds 。 在Windows上没有发现一个关于Puppet性能下降的错误,也没有发现包括时间分析在内的相同的问题。 有一个相关的问题被发现。 分析 一个相同的木偶适用( puppet apply "C:\temp\puppettest\site.pp" )是在Windows版本上使用多个Puppet执行的。 结果如下: 2.7.23:X <10s 3.0.2:X <15s 3.1.1:X <15s 3.2.4:X <15s 3.3.2:X> 420s 3.4.3:X> 420s 3.5.1:X> 420s 结果 Puppet自3.3版以来,在Windows上应用速度超过了28倍(420/15) 题 如何解决这个问题?
我需要构build一个模块来pipe理我们的Red Hat虚拟机上的/etc/sssd/sssd.conf。 在伪造上发布的sssd模块似乎没有做我想要的,我也不想分叉它们中的任何一个。 我想保留Hiera的common.yaml文件中的所有configuration数据。 以下是我的sssd.conf文件。 [sssd] config_file_version = 2 services = nss, pam domains = default [nss] filter_groups = root filter_users = root reconnection_retries = 3 entry_cache_timeout = 300 entry_cache_nowait_percentage = 75 [pam] [domain/default] auth_provider = ldap ldap_id_use_start_tls = True chpass_provider = ldap cache_credentials = True ldap_search_base = dc=ederp,dc=com id_provider = ldap ldap_uri = ldaps://lvldap1.lvs01.ederp.com/ […]
我对傀儡来说相当陌生,所以这可能只是我没有看到明显的。 我想用puppetlabs-firewall模块,写一个我自己的小模块。 init.pp看起来像这样: class cmmfirewall { resources { 'firewall': purge => true, } Firewall { before => Class['cmmfirewall::postv4', 'cmmfirewall::postv6'], require => Class['cmmfirewall::prev4', 'cmmfirewall::prev6'], } class { ['cmmfirewall::prev4', 'cmmfirewall::postv4']: } class { ['cmmfirewall::prev6', 'cmmfirewall::postv6']: } } 当我将这个类应用到节点时,我收到以下消息: err: Failed to apply catalog: Parameter name failed on Resources[firewall]: Could not find resource type 'firewall' at /etc/puppet/environments/testing/modules/cmmfirewall/manifests/init.pp:42 我在代理上的puppet.conf如下所示: […]
我在64bit的Ubuntu Precise上没有这样的问题,但是一旦我尝试启动32位机器,它在这个命令上失败: # /usr/bin/apt-get -q -y -o DPkg::Options::=–force-confold –force-yes install nginx=1.6.0-1+precise0 Reading package lists… Building dependency tree… Reading state information… Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been […]
我想pipe理运行embedded式Linux的几个设备的configuration。 我的环境中有一个Web服务器,它有一个SOAP接口,可以用来获取/设置每个要configuration的设备的所有参数。 Web服务器通过发送SNMP消息与embedded式Linux设备通信,这是我控制它们的唯一选项。 我想使用一个configurationpipe理工具来定义每个embedded式设备,然后使用SOAP服务器来对它们进行绑定,但是我似乎无法find任何我想要做的事情的Puppet / Ansible的例子(但是也许我会“一直在错误地使用Googlesearch)。 木偶设备听起来有点像我想要做的,似乎是用来configuration某些types的networking设备,但它仍然使用ssh与设备节点交谈,并在节点上的shell中运行命令,而不是使用中间代理获取/设置参数。 我希望我将不得不编写一个自定义提供程序(或非Puppet CM工具的等价物),有没有一种方法可以在任何configurationpipe理工具中实现? 我确信必须有一个合理的方式来做这件事,但我正在努力寻找这种情况的例子。
我正在使用Puppet Enterprise 3.3的股票安装来运行Amazon Linux。 当我启动命令时: puppet module install puppetlabs-ntp 根据木偶实验室文档,它不会显示在我的可用class级列表中。 我安装了Puppet Enterprise作为sudo,但puppet命令只能从ec2用户获得。 其他一切似乎都在起作用。 命令以root身份运行: [root@puppet bin]# ./puppet module install puppetlabs-ntp Notice: Preparing to install into /home/ec2-user/.puppet/modules … Notice: Downloading from https://forgeapi.puppetlabs.com … Notice: Found at least one version of puppetlabs-ntp compatible with PE (3.3.0); Notice: Skipping versions which don't express PE compatibility. To install the […]
我需要更精细地调整由example42/kibana Puppet模块生成的Apache vhost文件。 在Puppet中是否有可能通过example42/kibana插件“直达”并直接configurationpuppetlabs/apache模块? 例如,我需要以某种方式修改apache::vhost.vhost_name设置为"*" ( https://forge.puppetlabs.com/puppetlabs/apache#defined-type-apachevhost )。 以下是我现在的Kibanaconfiguration。 class { 'kibana': install_url => 'https://download.elasticsearch.org/kibana/kibana/kibana-3.1.0.zip', elasticsearch_url => "http://elastic.${::domain}:9200", webserver => 'apache', virtualhost => "logs.${::domain}", }
我有一套运行在docker主机上的Beakertesting。 我不知道Docker如何处理交换文件的复杂性,但它似乎并不喜欢它。 Puppet代码如下所示: exec { 'Create swap file': command => "/bin/dd if=/dev/zero of=${swapfile} bs=1M count=${swapfilesize_mb}", creates => $swapfile, } exec { 'Attach swap file': command => "/sbin/mkswap ${swapfile} && /sbin/swapon ${swapfile}", require => Exec['Create swap file'], unless => "/sbin/swapon -s | grep ${swapfile}", } if $add_mount { mount { 'swap': ensure => present, fstype => […]
我已经看到了一些hprof转储,说明崩溃。 虽然我调查,有没有办法将该转储位置configuration为其他地方。 虽然我在/ var / log上有空间限制 – 我不想只增加/ var / log分区。
我是Puppet Enterprise的新手,但是尝试学习如何将自定义类文件部署到Windows服务器。 我正在尝试使用opentable / windowsfeature模块,但是当我的类尝试在节点上运行时出现错误。 它看起来像是在windowsfeature模块中抛出这个错误 – 错误:无法从远程服务器检索目录:SERVER上的错误400:“true”不是布尔值。 它看起来是一个string在/etc/puppetlabs/puppet/environments/production/modules/windowsfeature/manifests/init.pp:64节点test-server-02.testdomain.local警告:不使用caching失败的目录错误:无法检索目录; 跳过跑步 有没有人看过这个错误之前,或知道如何解决它? 模块代码尝试初始化variables为false,但我很困惑,为什么当它尝试做一个validate_bool($重新启动),错误是说它被设置为“真正的”string值。 以下是我已安装的模块列表: [root @ testserver01〜]#puppet模块列表 的/ etc / puppetlabs /木偶/环境/生产/模块 ├──linux_base_config(???) ├──nanliu-staging(v1.0.2) ├──opentable-windowsfeature(v1.0.0) ├──puppetlabs-concat(v1.1.2) ├──puppetlabs-powershell(v1.0.4) ├──puppetlabs-registry(v1.0.3) ├──puppetlabs-stdlib(v4.4.0) ├──puppetlabs-tomcat(v1.2.0) └──windows_base_config(???) / etc / puppetlabs / puppet / modules(没有安装模块) 的/ opt /木偶/共享/木偶/模块 ├──puppetlabs-pe_accounts(v2.0.2-6-gd2f698c) ├──puppetlabs-pe_concat(v1.1.2-4-g2b7bba2) ├──puppetlabs-pe_console_prune(v0.1.1-4-g293f45b) ├──puppetlabs-pe_inifile(v1.1.4-16-gcb39966) ├──puppetlabs-pe_java_ks(v1.2.4-35-g44fbb26) ├──puppetlabs-pe_postgresql(v3.4.4-15-g32e56ed) ├──puppetlabs-pe_razor(v0.2.1-9-g8d78ec2) ├──puppetlabs-pe_repo(v0.7.7-51-g5ba0427) ├──puppetlabs-pe_staging(v0.3.3-2-g3ed56f8) ├──puppetlabs-puppet_enterprise(v3.7.1-5-ga436912) └──puppetlabs-reboot(v0.1.8)