search for: namevar

Displaying 20 results from an estimated 22 matches for "namevar".

2012 Dec 05
10
Slight oversight in the type documentation
So I was looking at the type reference, and noticed that for a lot of the types, no namevar was listed. When I checked the types in the code, for each of those omissions, the namevar was simply "name". Now, it might be self evident that this is the case, but a little documentation couldn''t hurt, If not in each type, at least in the section where it describes what na...
2010 Dec 16
2
how to us a var in define as $namevar
...e a type name, so I could use it like: software_mount { [''vo_name1'' , ''vo_name2'', ..., ''vo_nameN'' ] } or even: software_mount { [''vo_name1'' , ''vo_name2'', ..., ''vo_nameN'' ] : vo_name => $namevar } I''ve been playing with $namevar inside the define, but all my tries fail (I have a collection of errros and has no sense to post all of them). Anyone could give a hand on this? TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet User...
2007 Dec 10
7
Sweave : change value in rnw file to generate multiple "single" reports ?
...<-dbSendQuery(con, statement="select * from treatdata where name='Device1'") But of course my colleagues have many devices and don't want to enter the rnw file to change the name of the device. Is there a way to pass arguments to Sweave like Sweave("myfile.rnw", namevar="Device2") and it will change namevar by Device2 into the file myfile.rnw before creating the .tex file ? Or is it possible to do it via another language, that is: loading the rnw file, modifying it, saving it and finally calling Sweave ? Whatever the solution, I need you help. In advanc...
2012 Jul 25
7
cwd dot folders
Hi, I am trying to exec { myexectest: path => "/bin:/usr/bin:/usr/sbin", cwd => "/home/user/.ssh", command =>"echo test > test.txt", onlyif => "test -f test.txt" } it doesnt work any clues why? I think it cannot change directory to a DOT directory please HELP!! --Nikos Hatzopoulos -- You received
2012 Jul 12
11
Announce: PuppetDB 0.9.2 Available
...uninstall, we now check to see if this is part of an upgrade or not, and we only stop and disable the service if this is *not* part of an upgrade. Also, we stop the service before we install the new package, and restart it after we finish removing the old package. * (#15321) Add aliases for namevars that are munged via `title_pattern` When we are creating aliases for resources (in order to ensure dependency resolution in the catalog), we need to take into account the case where the resource type defines one or more title_patterns, which, when used to set the value of the namevar, may...
2010 Jun 06
19
Collecting _all_ ssh keys
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello, I read and find a way (well, there seems to be several equal implementations) to collect the ssh keys of machines. However they all give only the choice to choose between the key formats. But is there a way to collect both keys of a machine, the rsa _and_ the dss key (and maybe the rsa1 too)? I didn''t find a way to solve this as
2012 Oct 10
0
Announce: PuppetDB 1.0.1 Available
...ntually be removed from the catalog before being sent to the agent, and thus aren''t eligible for participation in a relationship. We now check whether the resource is virtual rather than exported, for correct behavior. (#16535) Properly find edges that point at an exec by an alias During namevar aliasing, we end up changing the :alias parameter to ''alias'' and using that for the duration (to distinguish "our" aliases form the "original" aliases). However, in the case of exec, we were bailing out early because execs aren''t isomorphic, and not ad...
2008 Dec 12
2
Puppet keeps trying to install packages
Hi all, I''m trying to setup a puppet installation on FreeBSD. So far I have only one puppetmaster and one puppetclient, both with 0.24.4 from FreeBSD ports. On the master I''ve defined a couple of classes including this: class apache22 { package { apache22: ensure => installed, source => "http://x.x.x.x/packages/apache-2.2.9_5.tbz", provider =>
2011 Mar 02
4
networkinterface type proposal
...et=192.168.1.254''" } # slave interfaces for the bond networkinterface { "eth0": ensure => enabled, bond_master => bond0, } networkinterface { "eth1": ensure => enabled, bond_master => bond0, } ### ip aliases # this requires a unique namevar so you couldn''t model solaris # or iproute2-style secondary addresses without composite keys networkinterface { "bge0:1": ensure => enabled, ipaddress => "10.0.0.5", netmask => "255.255.255.0", gateway => "10.0.0.1", } -...
2010 Dec 15
3
having trouble with puppet 0.25.5 on openbsd 4.8 on amd64
My manifest includes this snippet class app_client_openbsd { $app_client_pkgs_obsd = [ ''glib2-2.24.1p2'', ''gtar-1.23p1'' ] package { "${app_client_pkgs_obsd}": ensure => ''installed'', source => "http://${installserver}/openbsd/${operatingsystemrelease}/packages/${hardwaremodel}/${name}.tgz", } This
2008 Nov 19
1
Builtin Nagios types
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I''me using nagios builtin types and I''m very surprised that the parameter *name* is not available for type nagios_host ?!? This parameter is required to use inheritance (http://nagios.sourceforge.net/docs/3_0/objectinheritance.html) and I don''t understand why it is not included in all nagios types ? Maybe someone has
2011 Feb 24
1
augeas - add to beginning of file
Hi: Using augeas, how do you add a comment to the beginning of a file. I know you can use ins but you need to specify a path to insert before or after. In my case I can''t with 100% certainty say I will no what the first line. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to
2012 Nov 14
4
firewallchain issues w/ 1.0.0 release
Hi, First, some software versions, just to get them out of the way: - CentOS 5.x through Centos 6.2 - Ruby 1.8.5 - 1.8.7 - Puppet 2.7.19 - Facter 1.6.11 Just a note - we''re working from the EPEL repos almost exclusively. I am working with the firewall module, and so far I am unable to use firewallchain. Some digging suggests that it''s not completely user error (though I
2007 May 24
2
Reusing definitions - need to pass variable in the title
I recently tidied up a class/definition combo that sets /etc/issue and /etc/issue.net. This failed: define issuefile($path) { file { issue: owner => root, group => root, mode => 0644, content => template("issue_conf") } } class issue { issuefile { "issue": path => "/etc/issue" } } class
2011 Jan 03
23
Managing cronjobs as a file in solaris with appendifnosuchline for specific servers
I want to manage cronjobs as a " file " in solaris through puppet and not using the puppet cron resource. I will be managing the file /var/spool/cron/crontabs/root. I want the cron file to be same across all servers except some servers will have additional cron entries. How can I append to the file /var/spool/cron/crontabs/root , something like appendifnosuchline in cfengine? Can
2013 Jan 27
5
Extending a standard type
I''m trying to extend the standard ''user'' type to add maintenance of some of the contents of a user''s home directory, and I''m trying to avoid creating an entirely new custom type if I can. The approach I''m taking is to create a site::user defined type which in turns calls the standard user type. I''m having a problem figuring out
2007 Jan 23
20
"Found a bug" message when purging services
I attempted the following: resources { service: purge => true, noop => true } service { sshd: ensure => running; iptables ensure => running; } And got the following message: notice: Starting configuration run err: Found a bug: uninitialized constant Parse notice: Finished configuration run in 0.47 seconds When I remove the ''resources'' line, everything works
2012 Jul 25
3
manifest variable with sed - problem
Hello, i have a problem in my sudo manifest file, because in the variable $name comes sometimes usernames like user.lastname, but i need for sudo (includedir */etc/sudoers.d/*) file names with no dots (like user_lastname). I need a new variable, where is the dots change by underscores. My first try was like this, but it isn''t working well. $name_underscore = "`echo $name | sed
2012 Feb 15
21
puppetlabs-firewall stages and persistence
Hi all, I''m attempting to use the puppetlabs-firewall module. In testing, rules are enabled in a random order, so it seems necessary to utilize puppet stages to guarantee proper ordering. I created a module to organize my firewalling. It consists of localfw::pre to open the INPUT chain for established and related connections, localfw::default for most normal rules, and localfw::post to
2007 Jul 21
5
Some ''in service'' questions
Hi, Just a quick query about some things that crop up when I run ''puppetd --test''. Every time I run this command I always see the following output, which I think is strange as the ''man'' package has been installed previously and the firewall service is definitely running. Has anybody got any suggestions as to why puppet thinks it needs to install the man