Displaying 20 results from an estimated 40000 matches similar to: "Using regex to ensure package version"
2011 Nov 29
5
puppetlabs-firewall: source param as array
Hi,
am trying this rule:
firewall { ''100 allow ssh from GUNET'':
proto => ''tcp'',
dport => ''22'',
source => [''10.0.0.0/8'',''192.168.0.0/16'',],
action => accept,
}
and it only seems to add a rule for the first subnet. The second is
silently
2011 Nov 22
3
Puppet Windows: msi packages removal
I noticed that is if I uninstall an MSI that was installed by Puppet,
Puppet does not notice.
Looking at the source I see it might be checking for a state file to
know whether a package is installed or not:
C:\ProgramData\PuppetLabs\puppet\var\db\package\msi\SplunkForwarder.yml
So one has to rememebr to delete that too.... Is this design not a problem?
Thanks,
Mohamed.
--
You received this
2011 Nov 29
2
template does not print variables
Hello list,
I am having a problem with template file. Why are variables not interpolated?
[root@puppet manifests]# cat /etc/motd
memory free = <%= memoryfree %>
domain = <%= domain %>
operating system = <%= operatingsystem %>
This is the template file
[root@puppet manifests]# cat ../templates/motd.erb
memory free = <%= memoryfree %>
domain = <% domain %>
2011 Nov 09
4
Starting out with puppet and capistrano
Hey guys.
I am starting out with puppet and am in the process of writing a
bootstrap script for the clients and a capistrano recipe for the
server. I have the client bootstrap done which installs ruby, puppet,
sets a host name, and then points the client at the puppet server and
now I am in the process of setting up the puppet server.
My first attempt was to set up a git project for puppet, an
2011 Nov 18
4
puppet agent 2.7 on windows
Hi Team,
Tried following the steps here http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
for deploying an agent on windows (windows server 2008 r2) but really
finding it hard to make it work (the agent deployment itself went fine
after following the steps). I have a working puppet-server on RH 6 and
have tested few RH clients which work fine.
The very first hurdle is that i
2011 Jul 12
4
Possible bug? Can't remove and then put back a file?
This happens to Puppet 2.7.1 (both master and client). I have a file
resource that I set to ensure => absent, Puppet removed it correctly
with info line that it has a duplicate entry in the filebucket. I then
changed the ensure => present, the agent run gave me following error:
/usr/bin/puppet:19
err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/ensure:
change from
2011 Oct 12
4
Python yaml help
Sorry for being off topic. am trying the following and yaml fails to
construct the object:
The inventory document, from Puppet dashboard inventory service, looks like:
--- !ruby/object:Puppet::Node::Facts
name: pirates.uis.example.com
values:
productname: VMware Virtual Platform
kernelmajversion: "2.6"
My code:
class PuppetFacts(yaml.YAMLObject):
yaml_tag =
2011 Mar 18
4
Inventory service and dashboard 1.1.0 rc1
I just set up the latest dashboard release candidate in hopes of
trying out the new inventory service. After modifying the puppet-
dashboard config to use the inventory service and after changing my
auth.conf I gave it a whirl but ran into some issues..
I initially tried using fact_terminus = yaml and was able to do some
queries via curl. I''m currently using storeconfigs so setting up
2011 Jun 20
13
confused about file ensure/require
my base/default includes this ntp manifest
# cat modules/ntp/manifests/ntp.pp
# ntp.pp
class ntp {
case $operatingsystem {
centos, redhat: {
$service_name = ''ntpd''
$conf_file = ''ntp.conf.el''
}
debian, ubuntu: {
$service_name = ''ntp''
$conf_file = ''ntp.conf.debian''
}
}
package {
2011 Nov 01
4
2.7.6 yumrepo not working
Just upgraded to 2.7.6 and the yumrepo type does not write out our yum
configs correctly, anyone experiencing this? Documentation hasn''t changed
from what I can tell for this type.
# facter -version
1.6.2
# puppetd --version
2.7.6
# facter architecture
x86_64
# facter operatingsystem
Fedora
# facter operatingsystemrelease
14
==== My manifest ====
yumrepo {
2011 May 26
1
Changing up some things around Puppet Labs's Open Source Software
One of the largest challenges we''ve continually faced at Puppet labs is
trying to find a good balance in splitting the development team''s time
between the (currently small amount of) commercial software, and the
(much larger amount of) open source software. This balancing act has,
unfortunately, affected being able to get a number of the excellent
contributions from people
2011 Jun 23
12
Turn off client autoupdate
Hello!
By default puppet node connects to server periodically and looks if
there is something execute. I''m wondering is it possible to make
puppet clients not connect to server themselves? So that it would be
possible to update a node only with puppetrun nodename.
---
WBR, Sergey
--
You received this message because you are subscribed to the Google Groups "Puppet Users"
2012 Oct 21
1
use regex to ensure multiple directories are absent or exist
Is it possible to use regex to ensure directories are deleted.....
I want to be able to do something like:
file { ''/var/directory[1-9]'':
ensure => absent,
}
Would also be nice to use regex to ensure directories are present...
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web
2011 Jun 07
2
Changes on master applied only on second run on nodes
Hi!
If I change manifest on master and then immediately run "puppet agent
--no-daemonize --report --pluginsync --onetime" then it still uses old
version of manifest. When I run it second time it sees changes and
applies them.
Why is it like that? Is it intended to be so?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To
2010 Oct 15
1
Dashboard and passenger under /dashboard path
I''m currently running a dashboard as a separate process and have a
proxy in apache with authentication to access as http://puppet.ourhost.com/dashboard/
I have to start the dashboard with "-P /dashboard" option to make it
work.
I''m wondering how to achieve this with passenger. The config I found
in ext/passanger seems to run the dashboard under the root of the
virtual
2012 Mar 19
3
spaceship operator with a regex!?
Hi! Anyone knoe if it''s possible to realize resources with the spaceship
operator checking for regex equality?
Something like:
User<| group =~ /(qa|prod)/ |>
If not, anyone know of another way to do this sort of thing?
Thanks a lot!
Guy
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send
2011 Jul 14
2
Puppet 2.6.x fate
It was decided earlier this week that the 2.6 series will have it''s
last release at 2.6.10 (we''re currently at 2.6.9). However, we are
not doing a 2.6.10 RC/release this month. That will wait until
August.
If you have patches waiting on some final tweaks or any other work
that you feel like just *has* to be in the 2.6 series, please get it
filed with us ASAP. Right now the
2011 May 20
5
Does the puppet module tool work with ruby1.9.2?
puppet-module changelog
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/util/log/destinations.rb:99:
warning: class variable access from toplevel
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/application/kick.rb:
/opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/application/kick.rb:107:
Invalid next (SyntaxError)
I''m running
puppet-module
2011 Aug 18
10
Circular RPM dependencies...
Hi.
I encountered a following problem, if I state for example:
package{"aspell-en": ensure => absent, }
package{"aspell": ensure => absent, }
I get error in logs because of dependencies. It seems that puppet uses
''yum'' for installation on CentOS and ''rpm -e'' for removal of packages,
so it cannot handle this kind of dependencies:
2011 Aug 21
1
dashboard 1.1.1 with filebucket doesn't show contents of the new file
Am using dashboard 1.1.1 with the use_file_bucket_diffs option.
When clicking on the links within a report it will show the old md5
file (on the left) but not the new md5 file (on the right)
like;
content content changed ''{md5}26a3112822d01f2ce6b3f052bf2809de'' to
''{md5}dd97364ab0559344d73231f517951595''
26a3112822d01f2ce6b3f052bf2809de ==> is displayed