Displaying 20 results from an estimated 200 matches similar to: "Python yaml help"
2010 Sep 28
13
Reading Puppet reports with Python
Has anyone got/seen Python code to read puppet reports?
I added a bunch of these:
class PuppetReport(yaml.YAMLObject):
yaml_tag = u''!ruby/object:Puppet::Transaction::Report''
def __init__(self, host, logs, metrics, records, time):
self.host = host
self.logs = logs
self.metrics = metrics
self.records = records
self.time = time
However, the Python YAML
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 19
2
Facter Windows: domain is "none"
I could swear this worked fine earlier.. Now facter, and hence puppet,
do not see the domain name anymore:
What could cause this?
C:\Temp>facter --version
1.6.2
C:\Temp>facter | findstr kernel
kernel => windows
kernelmajversion => 6.1
kernelrelease => 6.1.7601
kernelversion => 6.1.7601
C:\Temp>facter fqdn
NCS-VDI-05.none
C:\Temp>facter hostname
NCS-VDI-05
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 18
10
msi package provider: Invalid parameter install_options
C:\Users\ml623>puppet --version
2.7.7
Puppet complains about a package resource I am trying to use saying:
Invalid parameter install_options
The resource is defined as:
package { "splunk":
name => $gu_splunk::client::splunk_package,
provider => ''msi'',
ensure => installed,
source =>
2011 Nov 28
4
Puppet Windows: Spaces in file paths a problem?
I thought I read somewhere in Puppet docs/wiki... that it is
"recommended" to avoid spaces in file paths, or some similar verbiage,
but now I cant find it.
Does Puppet have any known issues with spaces in file paths? It would
of course scare Windows admins away... So I hope I am wrong in
thinking I read that.
Thanks a lot,
Mohamed.
--
You received this message because you are
2011 Feb 10
3
Unwanted whitespace generated by template
I have this in a template:
===============cut here=====================
# Allow ICMP traffic
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
<% if netbackup_master_servers %>
<% netbackup_master_servers.each do |master_server| -%>
# Allow communication with NetBackup master server <%= master_server[0] %>
-A RH-Firewall-1-INPUT -p tcp -m tcp -s <%= master_server[1]
2011 Apr 13
17
Deploy puppet via NFS?
In our environ, there are several services that are deployed via an
NFS mount, so that the executables and configs are consistent across
the board.
Is there any reason why this couldn''t be done with Puppet? For
example, each individual system would contain its own /etc/puppet and
rc.d and pid files -- but the primary deployment would come from
NFS.
For that matter, as Enterprise
2010 Oct 06
5
How do you ensure safety from errors/bugs in large deployments?
Hello all,
This is not a puppet proper issue of course.. but I was wondering if
any of you could share some thoughts...
When you deploy a system like Puppet at a large park of systems, you
instantly increase the efficacy of mistakes and bugs in destroying the
environment....
How do you deal with that? I would be interested in any experience or
input, especially puppet proper best practices...
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 Jan 07
4
facter --puppet does not report "environment"
Is it normal that "facter --puppet" does not show the environment
variable? is there a way to have it include it?
Thanks a lot,
Mohamed.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
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 Jan 25
5
puppet ca: Invalid method to apply
What does this message mean:
[root@pirates puppet]# rm -rf /var/lib/puppet/ssl/
[root@pirates puppet]# puppet cert --version
2.6.3
[root@pirates puppet]# puppet cert
notice: Signed certificate request for ca
notice: Rebuilding inventory file
Invalid method to apply
It seems to have created the ca and other things just fine.
Thanks,
Mohamed.
--
You received this message because you are
2011 Mar 15
2
How do you distribute ruby-augeas for ruby-entreprise?
We are using ruby-entreprise, instead of redhat''s default ruby.... I
was trying to deploy the needed gem using:
/opt/ruby-enterprise/bin/gem install --no-rdoc --no-ri
/tmp/ruby-augeas-0.3.0.gem
But found out this would require gcc to be installed!
How can I preb-build this gem to remove the need for gcc on the nodes?
is there an option of the gem command to generate a distributable
2010 Oct 05
32
puppet push mode
Hello All,
I am trying to put puppet into push mode only. The instructions I''ve seen
have said to put listen=true in puppet.conf but that doesn''t seem to have
stopped the pull every 30 minutes. What else needs to be set?
Thanks,
Jim
--
“Twenty years from now you will be more disappointed by the things that you
didn’t do than by the ones you did do. So throw off the bowlines.
2011 Apr 07
4
$environment in File source not working
am I doing something wrong?
this seems to never find my .$env file:
source => [
"puppet:///modules/gu_puppet/puppet.conf.$fqdn",
"puppet:///modules/gu_puppet/puppet.conf.$environment",
"puppet:///modules/gu_puppet/puppet.conf.$operatingsystem",
"puppet:///modules/gu_puppet/puppet.conf"
]
It
2012 Mar 12
10
Use onlyif in EXEC
Hi guys!
I need configure one command exec with onlyif parameter.
I want test file size exist or no.
Ho i do this?
Tks in advanced.
Douglas
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
2011 Nov 18
5
Puppet on windows: File resource problem
Anybody knows what this error, bellow, means, the target file,
C:/Splunk/etc/system/local/inputs.conf, does exist.
sometimes, if I delete the file, it does actually create it, but never
update it if it exists and changed...
The resource is defined as:
file { "splunk_inputs": owner => SYSTEM, group
=> SYSTEM, mode => 664, require =>
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
I have 2 RHEL 5.4 systems where all facter lsb* items are missing. Any
ideas?
Sanitized facter output:
architecture => i386
domain => missyou.edu
facterversion => 1.5.7
fqdn => broken.missyou.edu
hardwareisa => i686
hardwaremodel => i686
hostname => broken
id => root
interfaces => eth0,sit0
ipaddress => 1.2.1.5
ipaddress_eth0 => 1.2.1.5
is_virtual => true
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 %>