search for: memoryfree

Displaying 12 results from an estimated 12 matches for "memoryfree".

Did you mean: memoryfile
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 %> operating system = <% operatingsystem %> This is the puppet res...
2009 Jun 30
6
Variable named "memory" in templates
I tried to use a Puppet variable named "$memory" and access it from a template, like this: $memory = 4711 file { "/tmp/test.txt": content => inline_template("memory = <%= memory %>\n"); } One would think that my file would contain "memory = 4711" after that, but instead the memory variable seems to hold a
2007 Dec 21
2
Any magic to the name ''memory'' in templates?
I tried using it in a template: <%= memory %> and it put "0" in my file when i switched the variable name to the_memory, it worked Eugene Ventimiglia Director of Systems GridApp Systems e: eventi@gridapp.com o: 646 452 4081 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
...interfaces => eth0,sit0 ipaddress => 1.2.1.5 ipaddress_eth0 => 1.2.1.5 is_virtual => true kernel => Linux kernelmajversion => 2.6 kernelrelease => 2.6.18-164.6.1.el5 kernelversion => 2.6.18 macaddress => 00xxxx macaddress_eth0 => 00xxxx manufacturer => VMware, Inc. memoryfree => 811.50 MB memorysize => 1.98 GB netmask => 255.255.255.240 netmask_eth0 => 255.255.255.240 network_eth0 => 1xxxxx operatingsystem => RedHat operatingsystemrelease => 5.4 path => /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/...
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
...}.to_yaml %>"), #content => inline_template("<%= { \"a\" => 1, \"b\"=> 2}.to_yaml %>"), content => inline_template("<%= facts = {}; scope.to_hash.each_pair {|k,v| facts[k.to_s] = v.to_s unless k.to_s =~ /pkg_|_hours|_seconds|memoryfree|plugin_|config|_timestamp/ }; facts.to_yaml.sort %>"), } After a run the content is indented with 2 spaces and some facts give me garbage values. If I verify this on e.g. http://yamllint.com/ I have a syntax error with the 2 leading spaces. Snippet from ''/etc/mcollective/facts....
2008 Jul 01
6
OpenVZ configuration of networking with puppet - big crash
I am trying to streamline the current distribution specific setup and creation of VE''s within OpenVZ with puppet. My first attempt has gone horribly wrong as you will see below. Here''s the script I wrote to replace the redhat specific setup that OpenVZ used: [jleggett@lxp6d15m3 scripts]$ cat redhat-add_ip.sh #!/bin/bash # # Debug - take out later set -x
2012 Aug 23
1
Puppet Agent VS User
...assword = puppet dbport = "" dbserver = localhost dbsocket = "" dbuser = puppet deviceconfig = /etc/puppet/device.conf devicedir = /var/lib/puppet/devices diff = diff diff_args = -u dns_alt_names = "" document_all = false downcasefacts = false dynamicfacts = memorysize,memoryfree,swapsize,swapfree environment = production evaltrace = false external_nodes = none factdest = /var/lib/puppet/facts/ factpath = /var/lib/puppet/lib/facter facts_terminus = facter factsignore = .svn CVS factsource = puppet://puppet/facts/ factsync = false fileserverconfig = /etc/puppet/fileserver.co...
2007 May 10
3
Bug or misconfiguration? Trying to add local user in NIS environment
...dwareisa => i686 hardwaremodel => i686 hostname => puppetserver id => root ipaddress => 10.10.10.15 kernel => Linux kernelrelease => 2.6.16.27-0.9-bigsmp macaddress => 00:10:18:17:BF:E6 00:10:17:17:BF:E6 00:10:18:18:BF:E6 00:10:18:16:BF:D5 00:10:18:17:BF:E6 00:14:5E:69:80:8D memoryfree => 5.26 GB memorysize => 5.94 GB operatingsystem => SuSE operatingsystemrelease => 2.6.16.27-0.9-bigsmp processor0 => Intel(R) Xeon(TM) CPU 2.80GHz processor1 => Intel(R) Xeon(TM) CPU 2.80GHz processor2 => Intel(R) Xeon(TM) CPU 2.80GHz processor3 => Intel(R) Xeon(TM) CPU 2.8...
2012 Dec 14
11
Puppet and Mcollective yaml file changing when it shouldn't
Has anyone else ran into this? debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: Executing ''diff -u /var/tmp/facts.yaml /tmp/puppet-file20121214-13448-933j3r-0'' notice: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: --- /var/tmp/facts.yaml 2012-12-14 00:53:20.000000000 +0000 +++ /tmp/puppet-file20121214-13448-933j3r-0 2012-12-14
2011 Jun 30
4
using memorysize fact in manifests
Hi, I want some config depending on memorysize. What I tried was if ($memorysize >= 256 * 1024*1024) { ... } But this fails because $memorysize is a string (and contains a "G") and can''t be compared to an int. Are all facts strings? How do I work with numbers? regards, Andreas -- Andreas Kuntzagk SystemAdministrator MDC Berlin / BIMSB Tel.: +49 30 9406 2997 --
2011 Nov 04
1
Storeconfigs and nagios and foreman
...alconfig''. localconfig = /var/lib/puppet/state/localconfig # Facts that are dynamic; these facts will be ignored when deciding whether # changed facts should result in a recompile. Multiple facts should be # comma-separated. # The default value is ''memorysize,memoryfree,swapsize,swapfree''. # dynamicfacts = memorysize,memoryfree,swapsize,swapfree # The directory in which serialized data is stored on the client. # The default value is ''$vardir/client_data''. client_datadir = /var/lib/puppet/client_data # Where FileBuck...
2013 Apr 18
4
fact_stomp_server
Does anyone have any insight into this error message? err: Could not retrieve catalog from remote server: Error 400 on SERVER: The fact named fact_stomp_server does not appear to be a valid hostname. The value of '''' does not match ''^[a-zA-Z0-9.-]+$''. A common cause of this problem is running puppet agent as a normal user instead of root, or the fact is